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 import multiple csv file using loopSo I am having following datasets, and want to import them in a loop, and then save because their na…
CART analysisDear All, I am using the package cart version 06/09/2004. My input is the following: .cart Age Dia…
Speed up ivregressHi Statalist, I am running an IV regression that interacts the endogenous variable with year and in…
-egen anymatch or tag - does not support -by-, any alternative command to do that?Hello, I have data that asked students to show what tools they used in each class that they have tak…
Generate date variableI have following variable: Date_of_Marriage 911990 10111990 7121990 1021990 1051990 1…
Subscribe to:
Post Comments (Atom)
0 Response to Regressions with Dummy Variables
Post a Comment