Good day,
I am currently using multiple imputed household survey data and trying to run a probit model, where my dependent variable is "participation in the stock market 1-Yes and 2-No" and it is labelled as hd1500, however I cannot seem to get it right. I think my problem might be that my dependent variable is a 1/2 variable and probit models require a 0/1 variable. Could you perhaps assist in how I can go about changing the dependent variable if this is the problem? (I am very new to Stata!)
The code I used:
. mi svyset [pw=hw0010], bsrweight(wr0001-wr1000) vce(bootstrap)
. mi estimate, vceok esampvaryok: svy, noisily: probit hd1500 hd1800 ra0200_1 dn3001
. probit hd1500 hd1800 ra0200_1 dn3001
an error occurred when svy executed probit
an error occurred when bootstrap executed probit
an error occurred when mi estimate executed svy:probit on m=1
r(2000);
I also tried using a oprobit model to solve the problem from not using a 0/1 dependent variable, however, then Stata tells me convergence does not occur.
. mi estimate, vceok esampvaryok: svy, noisily: oprobit hd1500 dn3001
. oprobit hd1500 dn3001
convergence not achieved
convergence not achieved
an error occurred when svy executed oprobit
an error occurred when bootstrap executed oprobit
an error occurred when mi estimate executed svy:oprobit on m=1
r(430);
I would really appreciate any help!
Thank you in advance.
Warm regards
Nadia
I am currently using multiple imputed household survey data and trying to run a probit model, where my dependent variable is "participation in the stock market 1-Yes and 2-No" and it is labelled as hd1500, however I cannot seem to get it right. I think my problem might be that my dependent variable is a 1/2 variable and probit models require a 0/1 variable. Could you perhaps assist in how I can go about changing the dependent variable if this is the problem? (I am very new to Stata!)
The code I used:
. mi svyset [pw=hw0010], bsrweight(wr0001-wr1000) vce(bootstrap)
. mi estimate, vceok esampvaryok: svy, noisily: probit hd1500 hd1800 ra0200_1 dn3001
. probit hd1500 hd1800 ra0200_1 dn3001
an error occurred when svy executed probit
an error occurred when bootstrap executed probit
an error occurred when mi estimate executed svy:probit on m=1
r(2000);
I also tried using a oprobit model to solve the problem from not using a 0/1 dependent variable, however, then Stata tells me convergence does not occur.
. mi estimate, vceok esampvaryok: svy, noisily: oprobit hd1500 dn3001
. oprobit hd1500 dn3001
convergence not achieved
convergence not achieved
an error occurred when svy executed oprobit
an error occurred when bootstrap executed oprobit
an error occurred when mi estimate executed svy:oprobit on m=1
r(430);
I would really appreciate any help!
Thank you in advance.
Warm regards
Nadia
Comment