stata

  1. U

    Testing heteroskedasticity in a bootstrapped quantile regression

    Hi, I am currently using stata to perform some regressions, and need help on how to perform specific tests on bootstrapped quantile regressions. I have a dataset with 31variables, most of which are dummies, and 1600 obs. I am looking to perform quantile regressions as the distribution is...
  2. P

    Cross-sectional regression for a certain date

    Hello everybody, I have Panel data consisting of 35 companies. For each company I have dependent values for three years. My question is if there is a way to tell Stata to run a cross-sectional regression for a certain date (e.g. 01/01/2013) and show the results before moving on to the next...
  3. amsavage

    SEM using survey data and maximum likelihood estimation - fit statistics?

    I have estimated an SEM model in STATA based on survey data. Once I identify the data as survey by including sample weight and bootstrap weight variables I can no longer get fit statistics. Not even the basic X2 and associated p value. The message I receive is: model was fit with svy: prefix...
  4. amsavage

    Consolidating multiply imputed data into a single dataset

    If one uses multiple imputation in STATA to derive 5 complete datasets, could the newly imputed values simply be averaged to create a substitute value? EG. 'mi impute mvn' is used to generate 5 possible values for one missing value. Can I average those 5 values and use the result by itself in...
  5. C

    calculating time difference between sub groups in a data set

    Calculat time difference between two events in data set Hi everyone, I am a beginner and I have a data set that I want to analyze, but I don't know if it is possible to do what I want using stata. I have data in the format No time event user network 1 9:02:01...
  6. E

    How can I drop observations when a variable is equal to any number from a sequence?

    I have a variable in a data set that has numbers between 0 and 1000. I want to drop observations where the variable is equal to any number from the sequence S=42 + k*12 k=(0,infinity) Right now the only way I know to do this is by typing out drop if var == 42 | var == 54 | etc...
  7. S

    Direct Standardization in Stata using dstdize command

    Hi everyone, I've directly standardized injury events in 17 US states using the stata command "dstdize total_injuries population age_group, by(state) using(Standard_US_Dataset) (output attached). Is there a way to increase the number of decimal places reported, or to directly output rates...
  8. A

    Getting values larger than 1 for a logit test?

    I have run a logit test on a binary dependent variable "gambled?" against "Age" in STATA. I have the dependent variable coded as 0 for no and 1 for yes. However I have a coefficient of 1.54 on the independent variable "Age". How can this be in a logistic regression that is meant to be between 0...
  9. K

    Stata: ml versus nl

    I need to estimate an equation using some iterative method to optimally choose the coefficients. I won't go into the reasons that I can't use a simpler methods like OLS, GLS or instrumental variables (it's a long, sad story). My question is about weather I can expect equivalent results from...
  10. T

    Match firms by sic code and ipo date in state

    Hi, I am currently researching the US Ipo market and due to stata being completely new for me I encountered the following problem: I have two data sets in which each the variables company name, ipo date and sic code are given. one data set is called: IPO firms. The other one is called peers...
  11. K

    Exporting results of the -table- command to Excel?

    Hi, is there any easy way to automate exporting a table command (with the content() option) to excel? I know about the various 'mouse' methods of "Copy Table", "Copy Table as HTML", with the "Table Copy Options", but I'm looking for the table equivalent as outreg2 is for regress. tabout...
  12. W

    Merging data in STATA, Panel Data problem. A real challenge!

    Hy! I have one database with companies who did a specific event on a specific date. I also have their company codes. Some of these companies are twice or more in this database because they did this event more then once during the observed period. In my second database I have other company...
  13. B

    QIC Program for Stata

    Does anybody know where I can download the QIC program for Stata? I've looked all over online and cannot find it.
  14. R

    STATA - Splitting panel data into quartiles

    I am new to this stuff so please excuse me if an answer already exists but I certainly can't find it. I have a large panel dataset in STATA and want to know how I can split the data into quantiles (deciles preferably) of a certain variable, but by year. To be more specific, I have data on...
  15. A

    metareg - need help calculating hedges q in STATA

    Novice STATA user here... I ran a meta-regression to analyze how prevalence rates of personality disorders vary according to differences in study design (e.g., gender of participants m/f). In order to see if there is enough variability within each of my dependent variables (10 different...
  16. D

    prediction accuracy mlogit

    Hi, I am trying to perform a multilogistic model using stata. I used the command : mlogit TargetGroup PA_Score cigarweek cigwee age3 qw2 In standard logistic regression the solution would be the command class estat I have found this script online : // mlogit webuse sysdsn1...
  17. J

    Proportion command: calculating unemployment rates

    Hello, I'm trying to calculate unemployment rates from survey data. I've used the command proportion to obtain monthly rates, per region. Thing is I get this horrible table, which I can copy to excel and manipulate it there. How could I save it as stata data? Also, is there a way I...
  18. S

    Random effects model in stata - how sensitive to non parametric assumptions

    Hi, I am using a random effects model to analyse a 4 point time series longitudinal data to compare the effects of an intervention and control, some of my independent variables are non-parametrically distributed - how sensitive is random effects model to this? can i use it or should i perform a...
  19. C

    Combining rows (all vars are same except for one. want to combine & ignore that one)

    Hi Stata helpers, I have something that should be a super simple one line command. I have a bunch of rows that are disaggregated simply because one variable is different. That one variable isn't important, so I want to combine all of the rows into one and just have NA or whatever for...
  20. M

    Stata - selecting data to go into a panel

    I am fairly new to stata and I am trying to run a cross country panel data analysis. my data comes from a variety of sources e.g. World Bank, UN etc. I have imported the data for each variable seperately into Stata but I have noticed that for each variable I have data for different years and...