Displaying 1 result from an estimated 1 matches for "b_faint".
Did you mean:
faint
2010 Aug 03
2
Specifying interactions in rms package... error
I am encountering an error I do not know how to debug. The error arises
when I try to add an interaction term involving two continuous
variables (defined using rcs functions) to an existing (and working) model.
The new model reads:
model5 <- lrm( B_fainting ~ gender+ rcs(exactage, 7) +
rcs(DW_nadler_bv, 7) + rcs(drawtimefrom8am, 7)+ DW_firsttime+
DW_race_eth +
rcs(DW_BPS, 5)+ rcs(DW_BPD, 5)+ rcs(pulse3, 5)+ locat2+
(rcs(exactage, 3) * rcs(drawtimefrom8am, 3))
)
This gives rise to the following error:
----
Error in dimn...