Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error in summary.rms(sfit) : adjustment values not defined here or with datadist for some variables

Tags:

r

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?

like image 356
1190 Avatar asked Apr 07 '16 23:04

1190


1 Answers

You should add this two lines before trying summary(r):

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

Where x is your dataset.

like image 174
Carles Mitjans Avatar answered Nov 04 '22 09:11

Carles Mitjans