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
How to identify duplicate serial number and assign a unique codeDear All, I wanted to know how we can identify duplicate serial number within an EA and assign a un…
Coefficient omitted due to time fixed effect and multi-collinearityHi All, I am dealing with company level unbalanced panel data (attached). There are broadly two type…
Create 2 new variables taking the "maximum" value and tag the variable with maximum valueDear All Please assist to create 1. A variable which will take the maximum value from three variab…
Creating a single table from tabulation of many similar variables using asdocI have a dataset that has similar responses to different questions. For example Q1, Q2, Q3, ... Qn h…
Approximating the degrees of freedom in a multilevel modelHi everybody, I'm trying to estimate a random intercept and slope model, were I estimate the degree…
Subscribe to:
Post Comments (Atom)
0 Response to bysort and vce option
Post a Comment