-boottest- extends wild bootstrap to 2SLS & LIML for weak...
The latest version of the -boottest- command brings the wild bootstrap-based inference to IV estimation. The command already offered the related "score bootstrap" of Kline and Santos for 2SLS and LIML....
View ArticleBaseline Summary Table
Hi, I'm blocked...and would like some help:-) I'am trying to create a summary table of baseline caracteristcs for my two groups of patients (mean_placebo mean_tttt p_value), then (if possible) export...
View ArticleAdding a prefix to all values in a variable!
Hi Statalisters! I am working on a dataset on school admissions that looks like this Code: * Example generated by -dataex-. To install: ssc install dataex clear input double id str7(schoolid p1 p2 p3...
View ArticleTesting assumptions after linear mixed model - please help!!
Hi! I have run a linear mixed model, mixed bmiz noise_between noise_within c_age c.c_age#c.c_age c.noise_within#c.c_age i.gender c_income diet i.physact || id: c_age, cov(unstructured) mle where bmi,...
View Articlesvy bootstrap and bias-corrected confidence intervals
Hello. When i use the bootstrap prefix with a command i can easily obtain the bias-corrected confidence intervals afterwards, either using estat bootstrap or bstat. However, this is not the case when i...
View ArticleValidity tests when using cmp
How can validity tests for IVs ie the exogeneity command and relevance command be done when one is using the cmp command due to having endogenous dummy variable? It is my first time using cmp, so the...
View ArticlePoisson panel models w/ endogenous predictors
Hello all, Im trying to strategize the best way to approach analyzing my data. I have a count variable for my dependent variable, it is panel data, and I have 2 endogenous (continuous) predictors. The...
View Articlextdpdml (Dynamic Panel Data Modeling using Maximum Likelihood) is now...
Thanks to Kit Baum, the first official release of xtdpdml is now available on SSC. Anyone who has installed an earlier beta version will want to uninstall it first and replace it with the SSC version....
View ArticleGetting contrasts after regression with multiple imputation and complex...
Hi, I am using a large-scale survey dataset with a complex survey design. I have also used multiple imputation to account for missing data. Now, I am trying to run a regression model on the imputed...
View ArticleTime-series cross-section analysis
Dear all, I'm a newbie in Stata (and in this forum) and appreciate to get a short feedback on my current research. I'm working on an unbalanced panel data (time-series cross-section: N(17)<T(about...
View Article"ambiguous abbreviation" error when trying to use macro
I have a data set containing variables: quantity p_color p_wrap p_size price. I also used loop to generate dummies for color, wrap, size and interact these dummies with price. My code is as follow:...
View Articlepropensity score model with repeated cross-sectional data
Dear Statalist, I have repeated individual-level, cross-sectional data that I collapsed into county-level measures. I would like to know how to structure the data for propensity score matching within a...
View ArticleHow to calculate the “optimism-corrected" or biased-corrected...
Hello, I have obtained a Cox-regression model of the risk of suffering an acute asthma attack, and I want to assess it's internal validity. I have estimated the c-statistic of this model, as it is a...
View Articleimporting .xlsx
Hi, my STATA/SE 12.0 version does not allow importing excel files in .xlsx format. It gives error "Unable to Load excel file, permission denied." However i have no trouble in loading .xls files. Any...
View ArticleUsing the operator "exp" in a regression
Dear all, I use Stata 14.1 . I ran ivreg28 using the following command (which used to work on my Stata 13 version) Code: loc x "age education Germany US " loc z "age education Germany US motivation...
View ArticleJumbled up order of grouping variable in a Bar Chart
Hi, I am facing a simple problem while making a bar chart. I am trying to create a bar chart with number of people in different income ranges. My grouping variables are N0, N10, N20, N50, N100 and...
View ArticleHow can I treat prefix of file name and variable name?
I must analyze the SOEP data files using stata. The name of data file is pgen.dta. There are prefixes a, b, c ,d …z for year from 1984 to 2009 and ba, bb, bc, bd for year 2010, 2011, 2012 and 2013...
View Articlecompute conditional weighted average on Stata
Hello everybody, First of all, considering that english is not my mother tongue, i'll try to make this message as clear as possible. I have an issue i do not manage to deal with on excel, so now i'm...
View ArticleCounting different types of duplicates
Hi, I have a dataset for different local governments (more than 300) with information of elected council members for three different years. I'm trying to create an Herfindahl index based on the...
View ArticleHow to calculate length of breaks between activities
I use the American Time Use Survey data set and would like to find out -> how long the breaks between two work episodes are -> or rather i need an indication wether the break (so eat and shop...
View Article