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
Estimating Demand Elasticity with Log-Log Model | How to Specify Panel Regression?Hello, My objective is to estimate the effect that a 1% change in the volume of ride-share trips co…
Gsem -problems with SEM builder toolHello everyone, I am running a gsem model using the SEM builder and I keep getting this error: pare…
Random-Number Generator Version ##: set seed - different resultsI found an issue with using the RNG and set seed with different versions of Stata. I had used versio…
Update to -kmatch- available from SSCAn update to kmatch is available from the SSC archive. Type Code: . ssc install kmatch, replace t…
Anyway to conduct dynamic model on panel data by using xtabond command in stata?Dear all: I found a challenge when I run a dynamic model on long panel data. I am hopeful that you …
Subscribe to:
Post Comments (Atom)
0 Response to Predicting residual in constrained linear regression
Post a Comment