Weak instrument test for ivprobit with clustering?
Hello, I am seeking advice about how to run a weak instrument test after estimating an ivprobit model with the vce(cluster clustvar) option. I understand that rivtest does not work if I am using...
View ArticleDefining value labels based on varlist
Dear all, I am writing a program which at the beginning I define a varlist: syntax varlist (min=3 numeric) [if] [in],……. Then at some point I have: gen ID=_n Next, I need to define the value labels for...
View ArticleReference category in mi estimate logistic
Dear all, I would like to do a logistic regression with multiple imputed data. My syntax is: mi estimate, or: logistic csection_02 i.country parity_01 i.mat_age_01 i.ethnic_01 contrast g.country, or...
View ArticleHelp with long data
Hi, I have previously posted here and received great help. Need help with one last area that I am really struggling with. I am trying to find the type of procedure that occurs for the second procedure....
View ArticleROC Comparison
Hello All, I am trying to do a ROC Curve Comparison looking at three different models in the same dataset. Each model has different pieces of missing data (retrospective data), so I'd like to be able...
View ArticleCreating a table using stored values from xtsum
Dear all, I would like to create a table automatically using stored values. I run a command Code: by country: xtsum var1 var2 var2 xtsum plot general descriptive statistics of longitudinal data var1...
View Articletry to do a loop within a loop
I am a beginner stata user and new to this post. I found this forum was extremely helpful when I google search for stata help. I have 5 dependent variables and I need to run same regressions for each...
View ArticleHausman test for multilevel model
I want to make a Hausman test, to test wether my mixed effects model is different from a fixed effects model. The model consists of an association between Education and Social Distance moderated by...
View ArticleCreate preference order for source of data
Hello everyone, I have occupational data for a large set of countries over time that come from different types of sources. The three types are "Labor force surveys", "Population Census" and "Other...
View ArticlePseudo-R^2 and t-statistics after stratification matching
Dear all, I am currently trying to apply different propensity score matching estimators to my data. I have played around with nearest-neighbor-matching, kernel matching, radius and caliper matching...
View ArticleHow can I overlay Weibull survival curves and Kaplan-Meier curves?
Dear Statalist users, I am trying to plot a Weibull survival curve together with a Kaplan Meier curve but I have not been able to find a solution. The plot I would like to produce would be something...
View ArticleError 301
After I run the following regression: bysort FYEAR SIC: regress TACCATw ATLAGINVw REVATLAGw PPEATLAGw if !missing(TACCATw) & !missing(ATLAGINVw) & !missing(REVATLAGw) & !missing(PPEATLAGw)...
View ArticleUsing*two*inputs variable*in*measuring*Malmquist*Productivity*Index
Hi I am trying to calculate malmquist productivity index with two inputs (Farming Grain) , but when I typed malmq Farming Grain= labor1 fert tpower area ,ort(i) period(year) trace the stata mentions...
View Articlemalmq.ado could not work with the save(filename) option, anyone know what's...
I use malmq.ado to calculate malmquist index in stata 15, it works OK.But when I want to save results to dta file with the sav(filename) option or sav(filename) option,there comes error message. MY...
View ArticleModerated mediation using GSEM from a difference-in-difference approach -...
Dear Statalist-ers, I hope this message finds everyone well. I am currently running some Difference-in-difference analysis (DiD) in Stata/MP 15.1. My data set has two time points: pre-test and...
View ArticleTime-lagged variable for cross-sectional data
Hi, I have a seemingly simple recoding problem, which I could not solve by reading the documentation or existing discussions I found. This is my data structure: Code: * Example generated by -dataex-....
View ArticlePlotting non linearities in regression (as dy/dx) and interaction effects...
Hello everyone, First of all, thank you in advance for any answers to this post. It's very rare to have a forum like this with many serious people sharing knowledge and helping each other out FIRST...
View ArticleRemoving the last three digits of a four-digit numeric variable
Hi Statalist, I am working with a four-digit integer variable, ISCO08_1. I would like to simply drop the last three digits, and create a one-digit integer variable "ISCO". So far I have tried versions...
View ArticleTrend analysis
Dear Listers, I plan to run a trend analysis to explore how original wellbeing score (bad vs. good vs. very good) is associated with recovery (yes/no) after surgery. The data were collected in 2...
View Articlereference option Oaxaca decomposition
Hi I am interesting to use my own reference model. so, I tried to use the reference option with Oaxaca decomposition.before I start I did quick check as follow: I used group indicator in the stored...
View Article