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 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 is: > modele<-lrm(Y~L+P,data=donnee) > fun<- function(x) plogis(x-modele$coef[1]+modele$coef[2]) > f <- Newlabels(modele,c(L="poids",P="taille")) > nomogram(f, fun=list('Prob Y<=1'=plogis), > fun.at=c(seq(0,1,by=.1),.95,.99), > lmgp=.1, cex.axis=.6) > fun.at=c(.01,.05,seq(.1,.9,by=.1),.95,.99), > lmgp=.2, cex.axis=.6) > options(Fire=NULL) > Result is bad and I have this following error message: > Erreur dans value.chk(at, i, NA, -nint, Limval, type.range = "full") : > variable L does not have limits defined by datadist > > Could you help me on the code to draw nomogram. > Nb: my English is low, I apologize. > Thank for your help > Komine > ----- Frank Harrell Department of Biostatistics, Vanderbilt University -- View this message in context: http://r.789695.n4.nabble.com/Draw-a-nomogram-after-glm-tp3498144p3498279.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.