Relative Content

Tag Archive for predictsurveyrms

Question about Predict () in RMS Package for processing Survey Data

I am examining the relationship between diet quality (variable called “diet” in the R codes) and mortality using NHANES survey data. I aim to estimate Hazard Ratios (HR). I developed my codes. However, as you can see below, I am unable to complete the Predict() step, receiving the message “#Error in Predict()” and “predictor(s) not in model.” I have inserted my codes here, showing the error in the Predict() step.