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...
View Articlequestion 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...
View ArticleStore mfx after xtlogit
Hey there, I am trying to save the marginal effects of a random-effects logit model. I ran the following code: xtlogit work worklim $x_1 $x_2 quietly mfx, predict(pu0) estimates store mfx_Logit But...
View Articlehow can I deflate my variables in stata?
dear all, how can I deflate the variables with average total assets in stata program? thanx
View ArticleWhat's wrong with this set of logit commands?
I'm trying to set up a prediction model using logistic regression and I'd like to try several methods of variable selection with different cutoffs for inclusion/exclusion. I'm using the following set...
View ArticleSeveral questions regarding probit regression results and the margins in Stata
Hi everyone, my first post at StataList, so be nice :) I have a set of questions regarding the margins command, and marginal effects in general. I have a unbalanced paneldataset of 4124 observations,...
View ArticleChanging/generating variable
Dear all, first of all please forgive my ignorance I am very new to this! I have a variable called v221, I need to create a new variable from this where by 0 is of the respondent scored 1-5 and 1 if...
View ArticleHow to calculate the Cohen's kappa statistic in Stata?
I have a database of 5513 observations, and I have 10 different predictors. How can I obtain an unique value of the kappa statistic? May I consider all the predictors in the matrix?? And another...
View ArticleMonte Carlo simulation for AR(1)
Hi, I'm currently a new user of stata and I would like to know how to create a very basis Monte Carlo simulation to show the unbiasedness of the estimator in a univariate model ; Y = B0 + B1*x + e ,...
View ArticleHow can I create my own logistic regression model??
How can I tell stata to use some certain odds ratios (fixed) for the variables and create my model? I have my coefficients (for example 3,6,2,12 ecc) and I want to create a logistic reg model to be...
View ArticleHow do you obtain and interpret odds ratio from Logit?
Please consider logit job year i.sex i.school where job (0=not employed, 1=employed), year (year of graduation, numerical), sex (0=boy, 1=girl), and school (1=school A, 2=school B, 3=school C, 4=school...
View ArticleHow to use stata to research the earnings rate of stock based on EGARCH model
First I set up an AR(4) model to estimate the earnings rate, and then I plan to use EGARCH model to research the volatility of AR(4) model. So the command I putted in is arch r, ar(1/4) earch(1)...
View ArticleHow can I calculate the area of ROC curve of a Cox model?
I have created a Cox regression model on a dataset. Now I want to test its performance with the ROC curves, but I don't find any command in stata to do that. How can I do? is there another method to...
View Articlefamamacbeth regression with stata help
i really need some help. i'm trying to perform famamacbeth regression with stata, i'm using xtfmb_ado and i followed the steps in the help file (http://fmwww.bc.edu/repec/bocode/x/xtfmb.ado) which are...
View Articlegraphing an interaction in Stata
Hello, I am trying to find the correct way to graph an interaction effect between two continuous variables in Stata. My regression, the code is nestreg: regress y (c1 c2) (x1 x2) (x1_x_x2) with y the...
View ArticleHow to choose variables!?
Hello everyone! I have a problem with "stata", I am using it for my thesis. my panel is constituted by a sample of companies and for each of them there are a number of dependent variables, control...
View ArticleRegression coefficient (b) for each ID year in stata
thanks in advance for any assistance. i have data for 112 companies for 3 years, so i have 336 observations with non missing data. first, I need to get the main varaibles by regressing y on a, b and c...
View ArticleTransposing and transforming data with multiple ids
I have a very simple procedure, but being a newbie coder, I am not sure how to accomplish the task. In my real data, I have 7500 ids and 18 variables. Below is the simplest example of the type of data...
View ArticlePutting regression estimates for all variables on single row and saving it as...
I need to store the results of a regression model as a single row. Given the common STATA output for the "regress" command, how would I take the results and store them on a single line (as in the...
View Article