powered by
Predicted values based on rpms object
rpms
# S3 method for rpms predict(object, newdata, ...)
Object inheriting from rpms
data frame with variables to use for predicting new values.
further arguments passed to or from other methods.
vector of predicticed values for each row of newdata
{ # get rpms model of mean retirement contribution by several factors r1 <- rpms(FINDRETX~EDUC_REF+AGE_REF+BLS_URBN+REGION, data = CE) # first 10 predicted means predict(r1, CE[1:10, ]) }
Run the code above in your browser using DataLab