to run regression using loop
Hi, i am trying to run this following regression (engle granger ecm) on all the panel units. egranger ln_TX_R ln_REER ln_RGDP_P gfc gfc_ln_RGDP_P if ifs_code==111, trend ecm could you pls help me with...
View Articlecoefplot and wildcard estimates
First, thanks to Ben Jann for a great tool. coefplot is amazingly useful. I had a question about whether it is possible to use it with wildcard estimates. What I am trying to do is to run multiple...
View ArticleReplicating results of estat ovtest and standardization
Hello, As Stata's manual describes it, estat ovtest regresses the original dependent variable on the original explanatory variables, and includes three power terms (^2, ^3, and ^4) of the predicted...
View ArticleProblems with changing values after using egen and applying modified order to...
Hi, I'm using Stata 12.1 to analyze a dataset of 6,500 observations and approximately 1,000 variables. I've been creating new variables with egen and then re-ordering them in the variables window...
View ArticleStoring File Names AND Date/Time Created To Sort Them
Hi all, I have used .filelist (SSC) to pull in names of files in folders and then to sort through them for various purposes. I have a related problem with files of the same or similar names in files...
View Articlet-test after psmatch2 to determine significance in differences
Dear community, I ran four propensity score matching models with defining a variable that captures the difference of the coefficients between each period. (ETS: treatment variable, exq:...
View ArticleError in Bootstrap Program.
Hello! I am writing a simple bootstrap program to obtain the standard errors that correct for two-step estimation. The program is as follows: **************************************************...
View ArticleMy loop isn't working!
Hello all, I'm attempting to create a descriptive statistics table using only loops and putexcel At this moment, I am using a Stata dataset. I can get the first part of the loop to work (age/race) but...
View ArticleRMSPE in Synth package
Hi all, I am wondering anyone has been able to replicate manually the values for the Root Mean Squared Prediction Error as calculated by Hainmuller's Synth package. I have not been able to do so. If I...
View ArticleGraphically representing continuous by continuous interactions in logistic...
I am trying to obtain a graphical representation of two continuous by continuous interactions included in a logistic regression. I have done this other times in OLS regressions following the...
View Articlemain regression insignificant, after adding fixed effects significant
Hello, I am new to this forum and currently writing my Bachelor Thesis for Finance. I am researching the effect of CSR on Dividend Yield (DY). In the simple regression, the effect of CSR on DY is...
View ArticleHow do I randomly assign scores from a set of observed scores within groups?
Dear Community, I have 106 groups, which I will call "strata groups", with subjects that come from two datasets, which I'll call Dataset A and Dataset B. The strata groups are the product of a...
View ArticleCan you help me about some problems please?
Hello, Im studying in economics and I have a problem to solve. I do not only want to it to be solved, I also wanna learn things from it. I would really appreciate any help here. Sleep= B0 + B1totwrk +...
View ArticleMata Program which chooses every odd element of a vector (row or column)
Hello, I would like to write a mata function, which chooses every other/second row respectively column of a vector and calculates the sum of these values. Code: function test (real vector x){ real...
View ArticleRolling window
Hello all guys: This is my very first post, so please be gentle. I'm running an ADF test using rolling windows and recursive samples, specifically this command: rolling, window(4) recursive clear...
View ArticlePanel data , fixed effects analysis (about omitted variables)
I am estimating an effect of the project on household's income and while trying to grasp idea of fixed vs ranodm effects model, I got a question I can not figure out on my own: If some variable in...
View Articlefilling in the blank (country name)
I have this data, and i just want to fill in the country name for all my panels that miss the name from 1980-1984, care to share the code? thanks!
View ArticleConverting diff-log variable back to levels (after forecasting)
Hi, I am forecasting growth using VAR. I have diff-log the data and the forecasted growth variable is in diff-log too. Now that I have the forecasted growth variable, how can I convert it back to...
View Articlecreate a new variable with 3 characteristics (urgent homework)
Hello, since I am an absolute neophyte to stata I have problems to cope with my homework especially the correct commands. If you could have a quick glance on the topic I'd be super happy: 1. Look at...
View ArticleGSEM for heckprob
Hello, I want to use gsme command for estimating three equations. the first two equations are selection equation and a probit model. If I can account for selection effect for these two equations, I...
View Article