Error in summary.rms (sfit): tuning values ​​not defined here, or with a dadaist for some variables

I rated the regression model in R, namely r.

And I want to get a r resume. In this I used the code> summary (r)

But I get the following error message

Error in summary.rms (r): setting values ​​not defined here, or with data for an age gender

How to fix this error?

+4
source share
1 answer

You must add two lines before you try summary(r):

dd <- datadist(x)
options(datadist="dd")

Where xis your dataset.

+1
source

All Articles