Hi, I am a graduate student.
First, I will explain my situation.
I have a dependent variable(score), regressors(v1,v2,v3), and a variable distinguishing group (named agedummy).
In this situation, I want to run regression for each group(young and old).
So, I run a command as following.
.xtset pid wave
.bysort agedummy: xtreg score v1 v2 v3, fe vce(robust)
But, stata shows me a error massage "the by prefix may not be used with vce() option.
In this case, how can I run the fixed effect regression with robust vce??
Please, help me!
Related Posts with bysort and vce option
Interpretation of Predict / Margins Results following Nonlinear RegressionsHello everyone, I run xtnbreg for the panel data and would like to use predict/margins following th…
Help: Sum daily data monthly across multiple years and idsDear Statalist community, I am really a STATA beginner and tried to find a solution here to my prob…
Regression Loop: Include Condition for Set of Control VarsDear Statalist, in my analysis I have a simple regression with multiple dependent variables. The de…
Adding Within R2 to my table using esttabHello guys, I am trying to export my regressions results to a table using the "esttab" command. I st…
Speeding up random parameter mixed-logit estimation (cmxtmixlogit) with large datasetDear Stata Users, I am wondering if anyone has a strategy to speed up the estimation of the cmxtmix…
Subscribe to:
Post Comments (Atom)
0 Response to bysort and vce option
Post a Comment