Re: [R] Draw a nomogram after glm

2011-05-10 Thread Frank Harrell
by is not an argument to c( ) datadist needs to know the final coding of variables so run it after doing any re-codes. You are using the wrong syntax for interact= Please take a while to read the full documentation before responding further, and read my earlier posts. Frank Komine wrote: > > Hi,

Re: [R] Draw a nomogram after glm

2011-05-10 Thread Komine
Hi, I try always to do my nomogram. I change little my code in order to definite the range of my linear predictor. But I do not succeed to have 0 until 1. I tried this code. library(rms) d <- datadist(Fire) options(datadist='d') Fire$Ignition=c(0,1,by=0.1) f<-lrm(Ignition~FMC+Charge,data=Fire)

Re: [R] Draw a nomogram after glm

2011-05-06 Thread Komine
Hi Frank, For to answer your request: > print(f) Logistic Regression Model lrm(formula = Ignition ~ FMC + Charge, data = Fire) Model Likelihood DiscriminationRank Discrim. Ratio TestIndexes Indexes Obs

Re: [R] Draw a nomogram after glm

2011-05-06 Thread Komine
Hi all R users, Thanks Frank for your advices In fact I posted all my script. In the R Help, the script for nomogram is long and I took only the part what I think interesting in my case. I use informations from( datadist {Design} and rms {rms}) in the help of R software to do my code. I see tha

Re: [R] Draw a nomogram after glm

2011-05-06 Thread Frank Harrell
Don't attach the Design package. Use only rms. Please provide the output of lrm (print the f object). With such a strong model make sure you do not have a circularity somewhere. With nomogram you can specify ranges for the predictors; default is 10th smallest to 10th largest. rms will not make

Re: [R] Draw a nomogram after glm

2011-05-06 Thread Frank Harrell
Please post the entire script next time, e.g., include require(rms). You have one line duplicated. Put this before the first use of lrm: d <- datadist(donnee); options(datadist='d') Frank Komine wrote: > > Hi, > I use datadist fonction in rms library in order to draw my nomogram. > After rea

Re: [R] Draw a nomogram after glm

2011-05-06 Thread Komine
Hi, I use datadist fonction in rms library in order to draw my nomogram. After reading, I try this code: f<-lrm(Y~L+P,data=donnee) f <- lrm(Y~L+P,data=donnee) d <- datadist(f,data=donnee) options(datadist="d") f <- lrm(Y~L+P) summary(f,L=c(0,506,10),P=c(45,646,10)) plot(Predict(

Re: [R] Draw a nomogram after glm

2011-05-05 Thread Komine
Thanks Frank I will try rms package and give after the result. Komine -- View this message in context: http://r.789695.n4.nabble.com/Draw-a-nomogram-after-glm-tp3498144p3499771.html Sent from the R help mailing list archive at Nabble.com. __ R-he

[R] Draw a nomogram after glm

2011-05-05 Thread Komine
Hi all R users I did a logistic regression with my binary variable Y (0/1) and 2 explanatory variables. Now I try to draw my nomogram with predictive value. I visited the help of R but I have problem to understand well the example. When I use glm fonction, I have a problem, thus I use lrm. My code

Re: [R] Draw a nomogram after glm

2011-05-05 Thread Frank Harrell
Please read the documentation for the rms package, particularly the datadist function. Note that in your subject line glm should be lrm. Frank Komine wrote: > > Hi all R users > I did a logistic regression with my binary variable Y (0/1) and 2 > explanatory variables. > Now I try to draw my n