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
panel unit root test fixed effect random effect1. In what bases of Unit root test result I can go for fixed and random effect modelling? 2. Can I g…
Finding the game that your friend also play for network analysisHello, statalist community! Currently I am trying to manipulate my dataset so that I can use it to …
Problem with the Stata GraphHey guys, I'm quit new to Stata and want to give out a graph in Stata. I have import and export Dat…
Difficulty with egenHi all, I usually have no problem with egen but I am finding it impossible to complete a relatively…
Change in a variable when we have pooled cross-sectionsHello, How can we calculate the change in a variable when its values for two consecutive years are …
Subscribe to:
Post Comments (Atom)
0 Response to Predicting residual in constrained linear regression
Post a Comment