# stata

1. ### How to analyze if there is a difference between grades?

Hi, Could you please help me which stata command I should use to see if there is a difference in improvements by grade level? I am thinking chi-square, but not 100% sure. Thank you for your help! 6th Grade 7th Grade 8th Grade Frequency Percent Frequency Percent...
2. ### Stated choice experiment with different questions for each respondent

I have a discrete choice survey experiment as follows: id genre income id question next crowding waittime choice 1 male 3 1 -3 2 0 1 male 3 2 -5 4 1 1 male 3 3 -1...
3. ### Test whether assumptions for cluster estimator of VCE are fulfilled

Dear all, I am running a regression on a dataset which I think shows correlation between observations of a cluster. Therefore I use the cluster-robust-VCE estimator by adding -cluster(group)- to the regression command. As this estimator requires the disturbances between groups to be...
4. ### Max Help Question

Hello everyone, I have data that looks like this: ------------------------------+ | dup_no year_TDI compan~2 | |------------------------------| 23. | 1 1989 9 | 27. | 1 1990 8 | 29. | 1 1990 9 | 2094. |...
5. ### Multiple Logistic Regression: Interpreting Insignificant Variables

I ran a multiple regression, using the following categorical dependent variables which ranked current job satisfaction: 0=not satisfied at all 1=somewhat not satisfied 2=neutral (base outcome) 3=somewhat satisfied 4=definitely satisfied one of my independent variables is job_number (# of jobs...
6. ### Frequency Count Question

Hey everyone, I have a question involving counting frequencies. I have a variable x that takes on values between 1 and 5. And some of them occur more than once, so x= 1 1 1 2 3 3 4 5 5 5 I want to create a dummy variable that equals one when a number only occurs once in the...
7. ### Loop Question for Data Cleaning.

Hi guys, First time posting. I have a question as I have just started doing some data cleaning with Stata. I have had to personally identify certain numbers I want to change in Stata from another dataset. And for these numbers, I want to make a dummy variable=1. My current code...
8. ### Using Stata for Card and Krueger's minimum wage: need help with "reshape" variables.

I have this question about the where I have a data set based on Card and Krueger's minimum wage study in New Jersey and Pennsylvania and how it effects employment. I've done these commands. rename psoda psoda1 rename pfries pfries1 rename hrsopen hrsopen1 rename emp emp1 rename NJ NJ1...
9. ### Obtaining population estimates for multiply imputed survey data

My data is mi set (multiply imputed) and I am analyzing it using the mi commands. It is survey data, so it is also svyset. I can see that mi commands allow one to obtain proportions, ratios, and means using the command structure "mi estimate: svy: [proportion/mean/ratio]" but the command I...
10. ### r (2000) code Stata. HELP!!!!!!!!!!!!!!! please

We are currently running a probit model based on the determination of the probability of blue collar workers applying for unemployment benefits using Mccalls 1995 data set as a restricted model using the following variables: bluecol: dummy, 1 if blue collar worker stateur: state...
11. ### Panel Data Regression with Few Observations

Hello! I know very little of statistics but I need help to do my thesis. I'm running a regression with fixed and random effects in a panel data of 5 countries with 11 years of data. The number of variables I'm using are 5 and I need to analyze also a model with 6. Is this feasible? If not...
12. ### Stata - Merging 2 datasets

Hi all, How can I merge Dataset1 and Dataset2 to create Dataset3? Merge m:m Group doesn't provide the result expected... Thanks for your help. StdDev. Dataset1 Group Elt A 01 A 02 A 03 B 04 B 05 C 06 C 07 Dataset2 Group Type A CP A CM B CB B TD C CA...
13. ### Ranked Data analysis Help

Hi I need help analyzing data from a survey. i am looking at consumers shopping venue and their confidence in regulation by various industry players. Shopping venues question: please choose your top 3 shopping venues (1 for each and zero for those not chosen) Confidence questions: How...
14. ### merging datasets with population weights in STATA

I would like to compare means and percentages from a small sample dataset to a large population national dataset. The population dataset has population weights. I have stset the population dataset but I need to merge the two datasets in order to run analyses. I am wondering how I can...
15. ### Comparative study and too many variables

Hey guys. I've been sociology for quite some time but I'm still pretty inexperienced in statistics and Stata. Here's my problem: I'm working on a comparative study between Poland and Denmark in regards to social life and education. What I'd like to do, is to compare the respondents level...
16. ### Survey data and STATA svy functions

Hi! I'm working with a large dataset which is heavily weighted. I need to produce the distribution of weights by key variables in our dataset (region, race, etc). This may be an elementary question, but to produce the distributions do I use the "summarize" and "tab" functions, or do I need to...
17. ### Logistic Regression: Testing for interaction effects with many covariates

Hello everyone! As topic states, I am running a logistic regression with quite a lot of independent variables (23). There are a lot more candidate variables but this is the best model I ended up with. I would like to know if there are any possible interaction/synergy effects among them, but...
I have created a loop to generate a counter variable values that will then be entered into an OUTPUT matrix. Everything except for 1 line seems to be working. The line is here: matrix OUTPUT[i', j']=counter *STATA writes: counter not found. But then I write: display...