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
Stata states varlist not allowed with Coefplot CommandI am a new user to Stata. I am working on a dataset from an experiment that looked at how male and f…
Testing coefficient equality in (subsample) panel data regressions?Dear All, Suppose that I have the following code, Code: webuse grunfeld, clear gen ind = company …
suest with "too many base levels specified"?Dear All, I was asked this question from a friend. The error message is Array Any suggestion on thi…
Export to excelHello!! I am trying to export summary statistics like n mean sd median iqr min max for a series of …
Measuring the % of variance by explanatory factors in regression modelsIs there any way in Stata 14 to measure the percentage of variance for a given IV. I came across an…
Subscribe to:
Post Comments (Atom)
0 Response to Regressions with Dummy Variables
Post a Comment