Hello,
I have a binary variable that I called SRI. This variable equals 1 if an investor invests in an SRI fund, 0 otherwise. I ran a probit regression on the whole sample (which equals 1000). I also want to run a probit regression only on those who have invested in SRI funds (250 individuals), so I used this code probit SRI Envt Gender Age Education Financial_Knowledge if SRI==1. However I keep getting this error message "outcome does not vary; remember 0=negative outcome, all other nonmissing values=positive outcome".
I do not have any missing values and my variables are coded 0 and 1 (not 1 and 2)
Can someone help me with this?
Thank you,
Related Posts with Error message "outcome does not vary; remember 0=negative outcome, all other nonmissing values=positive outcome"
Pasting the data from Excel to Stata converts values of the variableDear Stata Members I am dealing with some financial data like income, total assets, etc. Many of the…
Loop with consecutive numbersHello Stata community, I am trying to replace multiple id of a data set, where the ids are consecut…
Selecting dates within groups based on specific criteria in order to create a more unique idHello all, I'm a new Stata user and new to Statalist; I'm currently using StataMP 14. I'm doing so…
Adding 4 arguments in setstars() of asdoc / asdocxI seem to experience an issue with the setstars() arguments using asdoc or asdocx. It seems that it …
Selecting all dates within groups that are within one week of each other and creating a sub-group idHello all, I'm a new Stata user and new to Statalist; I'm currently using StataMP 14. Purpose: I'm…
Subscribe to:
Post Comments (Atom)
0 Response to Error message "outcome does not vary; remember 0=negative outcome, all other nonmissing values=positive outcome"
Post a Comment