Hello,
I am using Stata/MP 17.0. I am working on an iterative OLS for ordered qualitative responses, along the lines of this paper. After running one of my regression models, I am trying to generate the predicted value for the two middle categories of an ordered categorical satisfaction variable. For those two values "lowsathat" and "hisathat", the results are all missing values. However, when troubleshooting and using the same predict command for thw highest and lowest categories of the same variable, they produce results. Can someone help me understand why the two middle values are not generating predicted values?
[CODE]
. gen sat_fin_con1 = 0 if satisfact_fin_con == 1
(11,635 missing values generated)
. replace sat_fin_con1 = .438 if satisfact_fin_con == 2
(3,434 real changes made)
. replace sat_fin_con1 = .517 if satisfact_fin_con == 3
(5,911 real changes made)
. replace sat_fin_con1 = 1 if satisfact_fin_con == 4
(2,290 real changes made)
reg sat_fin_con1 mcaid_exp eng_d eng_d_mexp gender i.ethnicity i.education c.income2012##c.income2012 c.income2015##c.income2015 c.income2018##c.income2018 i.living_arr_and_dep_kids full_time_employment unemployed retirement i.state h1 hi_under55 Y2012 Y2015 Y2018
note: Y2018 omitted because of collinearity.
Source | SS df MS Number of obs = 14,304
-------------+---------------------------------- F(78, 14225) = 44.95
Model | 246.835092 78 3.16455246 Prob > F = 0.0000
Residual | 1001.45071 14,225 .070400753 R-squared = 0.1977
-------------+---------------------------------- Adj R-squared = 0.1933
Total | 1248.2858 14,303 .087274404 Root MSE = .26533
*reg results omitted for space and formatting
. predict lowsathat if sat_fin_con1 == .438 & e(sample)==1
(option xb assumed; fitted values)
(14,304 missing values generated)
. predict hisathat if sat_fin_con == .517 & e(sample) == 1
(option xb assumed; fitted values)
(14,304 missing values generated)
. predict vlowsathat if sat_fin_con1 == 0 & e(sample)==1
(option xb assumed; fitted values)
(11,635 missing values generated)
. predict vhisathat if sat_fin_con1 == 1 & e(sample) == 1
(option xb assumed; fitted values)
(12,014 missing values generated)
[/CODE}
I am using Stata/MP 17.0. I am working on an iterative OLS for ordered qualitative responses, along the lines of this paper. After running one of my regression models, I am trying to generate the predicted value for the two middle categories of an ordered categorical satisfaction variable. For those two values "lowsathat" and "hisathat", the results are all missing values. However, when troubleshooting and using the same predict command for thw highest and lowest categories of the same variable, they produce results. Can someone help me understand why the two middle values are not generating predicted values?
[CODE]
. gen sat_fin_con1 = 0 if satisfact_fin_con == 1
(11,635 missing values generated)
. replace sat_fin_con1 = .438 if satisfact_fin_con == 2
(3,434 real changes made)
. replace sat_fin_con1 = .517 if satisfact_fin_con == 3
(5,911 real changes made)
. replace sat_fin_con1 = 1 if satisfact_fin_con == 4
(2,290 real changes made)
reg sat_fin_con1 mcaid_exp eng_d eng_d_mexp gender i.ethnicity i.education c.income2012##c.income2012 c.income2015##c.income2015 c.income2018##c.income2018 i.living_arr_and_dep_kids full_time_employment unemployed retirement i.state h1 hi_under55 Y2012 Y2015 Y2018
note: Y2018 omitted because of collinearity.
Source | SS df MS Number of obs = 14,304
-------------+---------------------------------- F(78, 14225) = 44.95
Model | 246.835092 78 3.16455246 Prob > F = 0.0000
Residual | 1001.45071 14,225 .070400753 R-squared = 0.1977
-------------+---------------------------------- Adj R-squared = 0.1933
Total | 1248.2858 14,303 .087274404 Root MSE = .26533
*reg results omitted for space and formatting
. predict lowsathat if sat_fin_con1 == .438 & e(sample)==1
(option xb assumed; fitted values)
(14,304 missing values generated)
. predict hisathat if sat_fin_con == .517 & e(sample) == 1
(option xb assumed; fitted values)
(14,304 missing values generated)
. predict vlowsathat if sat_fin_con1 == 0 & e(sample)==1
(option xb assumed; fitted values)
(11,635 missing values generated)
. predict vhisathat if sat_fin_con1 == 1 & e(sample) == 1
(option xb assumed; fitted values)
(12,014 missing values generated)
[/CODE}
Comment