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
tabstast: How to display the highest values in a single table?Dear Statalist, I would like to make a table that shows the frequency of the 2 highest sales in the…
Exporting tabstat to wordHello, I use Stata 14 and am trying to export a tabstat table into word. I have read through some t…
create unique county ID for each stateI have a panel data. I want to assign a unique ID to each county within each state. For example, for…
Reshaping to wide with a string j variableI am looking to reshape a dataset with courses done by each of the observation. Each individual has …
inquire about reversing codesHi, I have variables that are currently coded as 1=agree, 2=neutral, 3=disagree. I want these varia…
Subscribe to:
Post Comments (Atom)
0 Response to Predicting residual in constrained linear regression
Post a Comment