# stata 12

1. ### test difference in marginal effects for a dummy variable, different computations

Dear Talk Stats readers, I have a Stata problem. I would like to test whether the difference between the marginal effects of a dummy varaible, obtained first by computing the difference and then by taking the derivative, is statistically significant. I want to implement this test in order...
2. ### Loop do-file with a few adjustments

Hey guys. So I've made a long do-file and I was wondering if there were a clever way to repeat parts of the do-file with a few changes? I'm doing a series of cross-national tests and I want to see what happens if I drop a single country and run all the tests again. Basicly I want this...
3. ### GLLAMM help please? 3-level, random coefficient at level 3

Dear Talk Stats, I have a question regarding the use of gllamm for multi-level modelling of ordinal variables in STATA. A brief description of my data and aim. I have individuals nested in schools nested in cities i.e. 3-levels. My dependent variable is 4-options from 1 to 4 on...
4. ### Stata Graph

Morning, I am using stata for doing graph with command : "twoway line variable1 variable2 timeVariable" In my database, i have a lot of countries and, when stata do this graph for all the countries, the first point of every curve is joined to the last point of this same curve. Here you...
5. ### How to estimate one coefficient for several independent variables?

Hello, I want to make a regression in Stata with some of the independent variables constituting a dimension for which I want to estimate just one coefficient. So I somehow have to merge the variables into one variable or possibly a vector(?), but I have no clue how to do this. Can someone...
6. ### Help with mixed effects logistic regression in STATA

Hello, I'm new to using mixed effects modeling, and I'm running a mixed effects logistic regression in STATA as my data were collected at different schools. Everything looked good when I ran the model, but after using multiple imputation to handle missing data, the random effects portion of the...
7. ### Time Series Analysis/ Datetime Business Calendars

Hi all, I am doing a time-series analysis of the S&P500, and I have imported all of my variables in from excel. I am having trouble converting the date variable from excel into business calendar form while still retaining the accurate dates. Thus far, I have performed the commands (as per...
8. ### Monthly total in calculation in Stata

Hi there ! I have time series as year and monthly ( 1975m1 24.2 1975m2 22.2 and so on) ( also as attached). Now i want to calculate the total and average of each months value i e i want to know the average of 1975m1 , 1976m1 1977m1 ...so on and similarly for other months too. Also want o...
9. ### Likert Scale Help

Hello everyone! I am in a statistics course and writing my first research paper using my own data analysis and I could really use some help determining what statistical test to use. I am using STATA and ANES data. All of my variables are likert scale variables which I have coded -3 to 3...
10. ### Arch to estimate volatility of equity

Hi, I'm using stata 12 to estimate volatility of equity. My series is non-stationary and I want to use a arch(p,q) arch(1) model to estimate it. Equity = stock price x number of stocks I have 1500 observations divided into 23 quarters. I want to estimate volatility of equity per quarter. How...