Hello Nitin,
if you examine the help information for lrm carefully, at the bottom
you will find numerous examples that you can follow.
?lrm
By the way, asking a queestion like this it's best to clarify if you
mean the lrm from the Design package or some other one. I assume it's
from Design, as the syntax you quote is a good match.
It's also best to study the help files carefully.
Andrew
On Mon, Nov 13, 2006 at 11:01:59PM -0600, nitin jindal
wrote:> Hi,
>
> I have to build a logistic regression model on a data set that I have. I
> have three input variables (x1, x2, x3) and one output variable (y).
>
> The syntax of lrm function looks like this
>
> lrm(formula, data, subset, na.action=na.delete,
method="lrm.fit",
> model=FALSE, x=FALSE, y=FALSE, linear.predictors=TRUE,
se.fit=FALSE,
>
> penalty=0, penalty.matrix, tol=1e-7,
> strata.penalty=0,
var.penalty=c('simple','sandwich'),
> weights, normwt, ...)
>
> Any logistic regression model would take y and x1,x2,x3 as parameters and
> output the model (probabilities). So, I dont know where to fit in these
> values in this function.
>
> Any help is appreciated. I am chasing a deadline in my project.
>
> Nitin
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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
> and provide commented, minimal, self-contained, reproducible code.
--
Andrew Robinson
Department of Mathematics and Statistics Tel: +61-3-8344-9763
University of Melbourne, VIC 3010 Australia Fax: +61-3-8344-4599
http://www.ms.unimelb.edu.au/~andrewpr
http://blogs.mbs.edu/fishing-in-the-bay/