How to normalize this Fixed effect model.
Hello, Please am confuse about the outcome of my regression results. Using return on equity as a dependent variable, after the Hausman test was in favour of Fixed Effect and it seems some of the...
View ArticleHow can I use Stata to solve two non-linear equations at the same time?
Hi all, Specifically, I am struggling to solve the Merton Model: E = V*N((ln(V/F)+(r+0.5*sigma^2)*T)/(sigma*sqrt(T)) - exp(-r*T)*F*N( (ln(V/F)+(r-0.5*sigma^2)*T)/(sigma*sqrt(T)) sd =...
View ArticleHow to generate parents variables matched to their children
Hello everyone, I've been trying to create a dummy variable indicating if at least one of the two parents (living with the children) is black. I read many of the previous entries regarding similar...
View ArticleReading different file extensions from a folder
I am trying to read a particular column from various excel files in a folder. it contains xls and xlsx file extensions. This is the code I used to read all the xls files but can't figure how to add the...
View Articledescribe a variable in a data file; obtain its type
Hello, I haven't checked in at Stata Forum in a while, so I don't know if this has been discussed lately. I want to describe a variable in a file, and obtain its type. I can get this information easily...
View ArticleRobust clustering of standard errors in autoregressive multi-level model (mixed)
I have a panel data of the format Code: | age.months | app_id | rank_category | promoted | avg_monthly_rating | I am using xtmixed where level 2 is app_id. My primary regressor of interest : Code:...
View ArticleHelp with interpolation
Hello Stata users, Im doing using panel data to test the relationship between deforestation (dependent variable) and certain drivers of deforestation. I have the data for 4 provinces of a given...
View ArticleMatrix Loop Problem!!!
Dear, I am having trouble creating a matrix that saves these results (prob>F value) for this loop. Please Help. I cannot seem to even find a way to call on the prob>F value. Thank you so much!!!!...
View Articlesave old bug in Stata 14?
A colleague sent me two Stata data sets created in Stata 13 with Spanish variable labels in ASCII and asked me to merge the two files and save them as Stata 13 files. I have Stata 14. I opened one file...
View ArticleOutreg2 with mixed-effect model with multiple columns
Code: mixed pupil_stimulus mean_val rating_diff trial /// || subject: $randvars outreg2 using reg_mean_diff_rating_pupil , tex replace pvalue mixed pupil_choice mean_val rating_diff trial /// ||...
View ArticleWhat model to use
Dear all, I am analysing the following statistical problem/situation. I have a population (real estate companies in Canada). Before the year 2011 all were using a certain accounting model, model A....
View ArticleSize of an (econometric) test
When introducing new testing procedures, the authors generally "use Monte Carlo techniques to evaluate the size and power of their test". They usually state the nominal size is 5%. However, I have been...
View Articleinclusion of dummies in a SUREG esimation
Hi, In order to estimate a system of equations using SURE I tryed the XTSUR command by it has not converged ( 15 hours processing with No results). My datase is a unbalanced panel ( quartely...
View ArticleEstimating Multilevel Multinomial Regression Models
Hello, I'm trying to estimate a ML multinomial regression model in Stata. It's cross-sectional data looking at 3 different arrest likelihood outcomes (no arrest, single arrest, dual arrest) for same...
View Articlesuggestion for regressions with nested loops
I want to do a nested loop, I want to do several regressions as follows dependents vars would be like y1 y2 y3 y4 some independents vars would be fixed, let’s say local indoor x1 x2 x3 x4 x5 and some...
View Articlewhat regression should I use, please help!
Dear friends, In order to complete my economics seminar I need to do a regretion where my depended variable is an interval variable ( not continuous, but with importance to rank with equal intervals)....
View ArticleReproducible Path Diagrams (Graphviz and DOT in Stata)
I have written a package named `diagram` (installable through GitHub only, at the moment). Earlier I wrote the same package for R, called DOT. `diagram` can:Render `Graphviz` diagrams in Stata Render...
View Article- invalid 'sheet' or invalid 'r' errors using #delimit ;
I am using Stata 14.1/IC with Windows on a remote desktop system so apologies for not pasting in my full code (high disclosure risks with data I am using). In my do-file I use - #delimit ; - and for...
View ArticleBest Way to Examine Interaction Effects in Logit
All: I'm estimating logit models using MI data (m=20) using Stata 12. I want to test an interaction term: race(black/white) X treatment. From everything I've been reading, I understand that I cannot...
View ArticleData input
Hi. Can anybody help me with something very simple: when I try to paste a data set from excel into data editor, I don't find any option to choose to make the first row for variables names. Please help...
View Article