From: Jan Verbesselt <Jan.Verbesselt_at_biw.kuleuven.be>

Date: Thu 12 Jan 2006 - 01:31:06 EST

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Jan 12 01:46:31 2006

Date: Thu 12 Jan 2006 - 01:31:06 EST

Dear Rlist,

We are working with library(Design) & R 2.2.1// When using the following fitted model:

knots <- 5 lrm.1 <- lrm(X8~rcs(X1,5),x=T,y=T)

X8 (binary 0/1 vector)

X1, X2 explantory variables

We would like to set the probability of X8=1 to zero when the X2 variable is smaller than a defined threshold, e.g. X2<50, because the X1 variable is not correct (contains more errors) anymore when X2<50.

How could we define this in the model smoothly without changing the values of the variables?

We keep in mind that setting thresholds in not a good solution because then information is lost. Therefore we also tested the following model. However, towards operational methods or techniques setting thresholds is simplifying relationships. Especially in this case were we saw that X1 could contain more errors when X2 < 50.

lrm.1 <- lrm(X8~rcs(X1,5)+ rcs(X2,5),x=T,y=T)

Thanks a lot for feedback & discussion,

Jan

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Jan 12 01:46:31 2006

*
This archive was generated by hypermail 2.1.8
: Fri 03 Mar 2006 - 03:41:59 EST
*