residuals.REEMtree(object, level, type, asList, ...)
REEMtree
"response"
, the "raw" residuals (observed - fitted) are used. If "pearson"
, the standardized residuals (raw residuals divided by the corresponding standard errors) are used. If "normalized"
, the normalized residuals (standardized residuals pre-multiplied by the inverse square-root factor of the estimated error correlation matrix) are used. Only the first character needs to be provided. Defaults to "pearson"
.TRUE
and a single value is given in level, the returned object is a list with the residuals split by groups; otherwise the returned value is either a vector or a data frame, according to the length of level. Defaults to FALSE
.asList
) with the residuals. Otherwise, the result is a data frame with columns given by the residuals at different levels.
residuals
, REEMtree.object
data(simpleREEMdata)
REEMresult<-REEMtree(Y~D+t+X, data=simpleREEMdata, random=~1|ID)
residuals(REEMresult)
Run the code above in your browser using DataLab