stata

  1. B

    generating average with missing more than X values

    hi all, let's say i want to take the average of 5 scores for class tests for each student in a class. the data looks like the below EXCEPT averagescore. That is the column I want to generate! student test1 test2 test3 test4 test5 averagescore 1 7 8 NA 7 9...
  2. G

    Calculate HHI

    Hi Guys, i am pretty new when it comes to using stata, since i need it to finish my master thesis. Now i have to to calculate the HHI for over 2000 observations. My data is structured as follows Bank Year Albania Andorra Armenia Austria Belarus Bank of China...
  3. S

    Increasing variables decreases DFs?

    I'm sorry if this is a total noob question, but I cannot figure it out. When I'm adding variables into my regression into STATA, the degrees of freedom (and observations) decreases significantly. In particular, adding one variable decreases them by about 1,000. I am only looking at the same 6...
  4. S

    Stepwise Logit Regression - Drop of variables

    Dear All, I have a small question I hope you could help me with. I am trying to find a predictive model for a dataset doing a stepwise logit regression. I have a few variables with info that is included in another variable. E.g. "income" (0-9 with 0=income is missing) and "income...
  5. C

    Pie chart and percentage Stata

    Hello, I'm starting with Stata 13 and I'm trying to make a pie chart with the %s included. I have "press" all the "buttons" but nothing... It`s possible to do?? Somebody knows it?? Thanks!!
  6. P

    Latent Class Analysis with lclogit and gllamm-wrapper lclogitml

    Latent Class Analysis in Stata (llclogit, lclogitml, gllamm) Hi all, I am having trouble fitting a latent class model with Stata. I have a panel data set from an online discrete choice experiment. Each respondent was represented 12 choice sets with 2 alternatives and, therefore, had to...
  7. V

    ARDL model in STATA

    Hi to all, I am also using the ARDL in my model. So I used the varsoc variable to determine the optimum lag for my variables, than I used the ADF to test whether my variables have a unit root or not and also I used the Zivot-Andrews test for structural breaks. Now I am struggling with the...
  8. A

    how does stata calculate confidence intervals for age standardised means/proportions

    Dear Stat Talkers! I'm using the following Stata command (see help mean): mean x, std(a) stdw(b) over(c) to get age-standardised mean or proportion of a variable of interest x. a= variable for age-group and b= variable for weights for each group. x can be a continuous variable or a...
  9. F

    Problems Fitting Latent Growth Curve Model for BMI

    Hi all, I have a question regarding panel data--collected biennially--from the National Longitudinal Study of Youth. (I use STATA 13.0 for Mac.) I've been trying--and failing--to fit a latent growth curve model for respondent Body Mass Index (BMI). Respondents were empaneled as children...
  10. J

    Gravity model with fixed effects - controlling for the heterogeneity

    Hi Stata users, I'm quite new to Stata and econometric packages in general, so I'd like to get some hints on how to specify a gravity model for international trade between different countries. My panel consists of 133 countries over 19 years - thus we have 17556 combinations of importers (ci)...
  11. M

    Guideline to generate a table of Zero Leverage companies

    Dear all, I'm new to Stata and i'm trying to learn it. I'm currently working on a research about zero leverage companies and i need to generate a table like the one attached. Since it is my first time i'm experiencing some difficulties. [/url][/IMG] Can anyone give me some...
  12. J

    Help with interpreting results of a bivariate probit regression please

    I have recently run this regression using Stata and the command biprobit. However, I am a complete newbie to statistics and I need some help interpreting the results. I am mostly confused by the Rho and Wald Chi2 results. A simple explanation would be much appreciated. I have attached a...
  13. J

    Urgent help- statistically significant mean differences

    My task is to Test whether there are statistically significant mean differences in the log returns between the y stock and the S&P. The data for which is attached. I have to do all of the analysis in Stata. The data is not normal so I need to do a non-parametric test, I think a Ranksum or...
  14. J

    Stats Project - Navigating and using Stata.

    I am currently attempting a statistics project, using stata, my dataset has four variables and I have the following brief. The data can be seen attached. I have posted the questions, and in brackets said how I think I may go about it. I know this is a lengthy post so sorry for that but any...
  15. G

    Leontief Inverse using stata - mata

    Dear all, We can't manage to generate a Leontief Inverse matrix, below an example. Given for example the following matrix converted from stata. A=st_data(.,("a", "b","c", "d", "e","f")) 1 2 3 4 5 6 +-------------------------------+ 1 | 8 4 5...
  16. A

    interactions not allowed

    i am using a fixed effects model with log of wage as the dependent variable when i try xi: xtreg logwage i.d08##c.yrschool exp2 married, i(id) fe where i.d08##c.yrschool is an interaction term with d08 being a dummy for the year 2008 and yrschool being a continuous variable for years of...
  17. B

    Help with hazard function plot

    Hi, I'm looking for help with hazard function plot. Sample of dataset of 1200 obs: ID Age Drugduration Hypertension Event EventDay Censored 1 76 200 1 0 83 1 2 80 180 0 1 214 0 3 85 120 1 0 275 1 I used these codes: ​ stset EventDay, failure(Event) id(ID) stcox Age...
  18. E

    Use of holdout cases generated in SPSS in STATA

    I am working on consumer preferences for fish, using conjoint analysis. My experimental design was generated in spss using orthogonal design, but my analysis has to be done in STATA. I need clarification if STATA will recognize the holdout cases that would have been used to validate the model in...
  19. amsavage

    Generating standardized standard errors

    I am testing a structural equation model using Stata. I need to report standardized direct, indirect and total effects with associated standard errors (effects decomposition). While I can get the standardized effects, Std. Err. are only generated in relation to the unstandardized coefficients...
  20. A

    Matrix Multiplication + Save Result by group

    Bonjour a tous, I'm trying to achieve the following multiplication VAR = W*S*W' w: [n,1] S: [n,n] s: [n,1] I have the following variables in Stata: date W s In my case, S is a square matrix [n,n] with 1 in the diagonal and a constant (per period) "s" in the diagonal. The...