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
Stata 10.1I am currently using Stata 15. However, some user-written commands do not work in Stata 15 and requi…
ppml (gravity equation) with quadratic term of the distance variableHello, Here is my question: I am testing the curvilinear (inverted U-shape) effect of distance (cu…
How to reshape data for analysis (Discrete choice experiment)Hi there, hello to the community. I'd need some help with how to prepare/shape data for analysis fro…
Extracting unique strings from multiple variables for each observationI have school level data with the name of different counties they have belonged to across a number o…
Would this be a good instrumental variableI am running a regression : hours worked per year= days ill per year+ age+ gender+ region + u. Would…
Subscribe to:
Post Comments (Atom)
0 Response to Predicting residual in constrained linear regression
Post a Comment