# stata

1. ### Stata - SPSS Wilcoxon Signed-Rank Test

***closed****
2. ### question about time fixed effects model

Dear all, I am running an OLS model in Stata and one of the explanatory variables is the interaction between another explanatory variable and time dummies. My question is: if I want to run an OLS with time fixed effects is it enough to run the usual OLS with that interaction variable (because...
3. ### CI and Odds-ratios calculation for 2x2 tables.

Hi, I am currently trying to see if there is an association between a specific haplotype and and disease i two population. So far i have managed to do a Fisher´s exact test however i would also like to calculate the odds-ratio and see the CI if its possible. Using the command: tab rowvar...
4. ### A complicated Variable: IMO

For a project, I would like to create a variable, which in my opinion is pretty complex. But I'm very new to Stata, and hope one of you can help me out. My data has 3 vars: country, and city, pop. E.G: Country City Pop U.S City 1 200M U.S...
5. ### Panel Logistic Regression

Hi all, I am trying to run a logistic regression and would really appreciate any help. I have a list of unique companies (with a binary dependent variable 1=international operations / 0=local operations) both across countries and year and several firm-level and country-level independent...
6. ### Logistic Regression (time series + cross-section)

Hi all, I am trying to run a logistic regression and would really appreciate any help. I have a list of company (with a binary dependent var. 1=fail / 0=succeed) both across countries and year (please see attached small file). From what I understand so far, I need to have: - fixed...
7. ### Repeated Measures ANOVA - syntax is hard

Hello I am trying to run a rm anova in STATA. I have a dependent variable Y, a grouping variable (independent) X, which is my treatment variable, and each subject is measured twice, so the repeated measures variable is R. The subject variable is S (R=1,2 S=1,2,3,.... X=1,2,3) I can't...
8. ### Multi-level models: xtmixed vs. xtreg, re

Hi all, I am dealing with a panel and multi-level data. Specifically, I have data (prices, etc...) related to numerous items (each identified by a unique id) within a product category in a given period. The measurements for the same item are repeated several times in this period: that is, for...
9. ### Sobel-Goodman test in STATA 11.1

Hello All: I'm working in a multivariate linear regression, after I calculated interactions in the model the researcher I am working with would like to know the impact of mediators variables in the relationship between the IVs and the DVs. I read about the Sobel-Goodman test also I find help at...
10. ### Bar graph with two variables

Hey guys. So I'm pretty good with the non-graphic part of STATA now, but I fail to understand how to make this specifik bar graph. What I have, for example, is two variables: var1 = 3 categories: high, mid, low var2 = 2 categories: yes, no What I'd like what to have a bar graph...
11. ### GJR GARCH in Stata

Hello, I am doing a research paper on finding the asymmetric volatility 14 stock indexes from around the world, and for this I am using EGARCH and GJR GARCH, the problem which i am facing at the moment is that in EGARCH (1,1) it show the asymmetry effect, while in GJR GARCH is does not show...
12. ### More observations than individuals - convert rows to variables - reshape????

Dear everyone, I have a HH dataset consiting of about 50 or so subsets which I am trying to merge together. The following problem occures. In some of these datasets there are more observations then individuals in the survey because data on jobs has been coded as job1, job2, job3 etc... each...
13. ### Interpreting regression results

Could someone please help me interpret this regression model? . regress _changein4yrMath _Overalldaysattended school1 school2 school3 school4 school5 note: school5 omitted because of collinearity Source | SS df MS Number of obs = 721...
14. ### 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...
15. ### 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...
16. ### 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...
17. ### 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. |...
18. ### 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...
19. ### 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...
20. ### 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...