I estimated a regression model in R namely r.
And I want to get summary of r. Fo this, I used the code >summary(r)
But, I get the following error message
Error in summary.rms(r) : adjustment values not defined here or with datadist for age sex
How to correct that error?
You should add this two lines before trying summary(r)
:
dd <- datadist(x)
options(datadist="dd")
Where x
is your dataset.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With