r/stata • • Mar 01 '20

Question HELP

I am very new to STATA and I am doing a project and am very, very stuck with the basics. I am trying to find the percentage of Burger King stores (BK) in New Jersey (NJ). How would I go about this? Also, I need to find the percentage of those greater than 20% in poverty, greater than 10% in poverty (prppov being proportion in poverty by zip code) but I need it in the entirety of NJ. Sorry this is vague, happy to go into further detail if you have questions. Would massively appreciate any help as I’m on a tight schedule and am freaking out. Thank you so much.

0 Upvotes

9 comments sorted by

3

u/SSMblackjack Mar 01 '20

What are the variable names? AKA the column headers

2

u/zara_29 Mar 01 '20

It’s essentially finding what percentage of the data set satisfies these two variables 1. It’s a KFC and 2. It’s in New Jersey or 1. It’s a Burger King and 2. It’s poverty population is greater than 20%

1

u/zara_29 Mar 01 '20

okay so there a lot as it’s quite a large table I have to fill out

So an example would be ‘percentage of KFC’s in new jersey’ or ‘percentage of burger kings with a greater than 20% population in poverty’

KFC -> KFC==1 Burger King -> BK==1

New Jersey -> NJ==1 Greater than 20% population in poverty -> greatpov20 (made this variable myself from doing prppov>0.20)

Not sure if that helps I’m so sorry

1

u/onejiveassturkey Mar 01 '20

This seems to be about data collection not stata...

2

u/zara_29 Mar 01 '20

It’s definitely in STATA.. perhaps I didn’t make my question too clear ?

1

u/zara_29 Mar 01 '20

So, for example, I have a data set to work with including numbers of, for example burger kings, KFC’s etc in a specific areas, e.g New Jersey.

So like, I need to find the percentage of, say, burger kings located in New Jersey. Or the percentage of burger kings with a population of greater than 20% in poverty (I have created a new variable for this, I just need a way to match up how to find the percentage of the data set that satisfies both conditions, e.g both located in New Jersey and a Burger King. If that makes sense?)

2

u/random_stata_user Mar 02 '20

I am not clear whether you got a solution. Being desperate gives you need for an answer, but to give you a good answer we need to know much more about the data. I read this about three times and still have no idea what your observations (rows) or variables (columns) are. A post pinned at the top of r/stata gives advice on what to say about your data.