I did a constrained linear regression and obtained residuals by predict. Stata 15 reports that it generated 599 missing values when calculating the residua. But in fact the predicted residual contains 706 missing values, which equals the number of missing values in the original data set.
I wonder why this discrepancy?>
. predict test, resid
(599 missing values generated)
. codebook test
-----------------------------------------------------------------------------------
test Residuals
-----------------------------------------------------------------------------------
type: numeric (float)
range: [-5.2206135,3.9185085] units: 1.000e-10
unique values: 1,022 missing .: 706/1,729
mean: 3.7e-08
std. dev: 1.08643
percentiles: 10% 25% 50% 75% 90%
-1.34578 -.666359 .020927 .674149 1.27261
Related Posts with Predicting residual in constrained linear regression
oaxaca_riffDear members, I am trying to estimate productivity/yield gap between men and women using oaxaca_rif.…
Combining multiple loops to write summary statistics to excel efficiently.Hi, I'm trying to produce summary statistics of a variable efficiently as it will have to be done n…
Many points are overlapped, how to better plot the scatter? Code: * Example generated by -dataex-. To install: ssc install dataex clear input float a double b…
The difference between Run and Do icon in do-file toolbar?What's the difference? I use Mac. …
including time dummy variables make all other variables insignificantDear Statalist, I am working on bilateral remittances data over the period 2011-2017 for a set of d…
Subscribe to:
Post Comments (Atom)
0 Response to Predicting residual in constrained linear regression
Post a Comment