Array
Hi all,
I am trying to replicate the following table. My code is as follows:
foreach dependent in `dependents' {
probit `dependent' i.divorcelaw#equitable i.divorcelaw#commonlaw i.divorcelaw#community divorcelaw equitable commonlaw marrlength age i.female#hispanic i.female#black i.female#highschoolgrad i.female#collegegrad i.female#somecollege i.female#metrostat i.statefip i.year i.female_2#hispanic_2 i.female_2#black_2 i.female_2#highschoolgrad_2 i.female_2#collegegrad_2 i.female_2#somecollege_2 i.female_2#metrostat_2 age_2, cluster(clustervar)
probit `dependent' divorcelaw divorcelaw#faultlaw divorcelaw#nofaultlaw nofaultlaw marrlength age i.female#hispanic i.female#black i.female#highschoolgrad i.female#collegegrad i.female#somecollege i.female#metrostat i.statefip i.year i.female_2#hispanic_2 i.female_2#black_2 i.female_2#highschoolgrad_2 i.female_2#collegegrad_2 i.female_2#somecollege_2 i.female_2#metrostat_2 age_2, cluster(clustervar)
}
Where equitable, commonlaw, community, all are equal to 0 or 1 depending on if you have it or not. Also, faultlaw=1 if you have a faultlaw while nofaultlaw takes the value of 1 if you don't. I am just ending up with lots of collinearity problems. I have dropped and added different controls and variables. Not sure what I am doing wrong.
Can you assist?
Thanks!
Related Posts with Regressions with Dummy Variables
How to save a matrix into stata data.Hello, I have the following dataset and I am using fect to estimate the ATT via interactive fixed ef…
Twoway bar with 2 y-axesHi all, I'm trying to create a bar graph that shows how the numbers of procedures etc. required var…
FEM categorial variable outputHello, In my fixed effect model with the effect of parenting styles (categorial) on problemativ beh…
How to implement -xtdpdml- with interaction terms?Hi Statalist, In my paper I validate a theoretical proposition through the following FE regression:…
Store result from calculation to a matrix?Hi all! I'm trying to compute the jackknife variance estimate using the formula from Hansen's "Econo…
Subscribe to:
Post Comments (Atom)
0 Response to Regressions with Dummy Variables
Post a Comment