**From:** Andrej Kveder (*andrejk@zrc-sazu.si*)

**Date:** Wed 14 May 2003 - 01:31:04 EST

**Next message:**Kevin Wright: "[R] How do I view hidden methods?"**Previous message:**Wladimir Eremeev: "[R] Re[2]: unfortunately, no such function, panel.segments"**In reply to:**kjetil brinchmann halvorsen: "Re: [R] NLME - multilevel model using binary outcome - logistic regression"**Next in thread:**Douglas Bates: "Re: [R] NLME - multilevel model using binary outcome - logistic regression"**Reply:**Douglas Bates: "Re: [R] NLME - multilevel model using binary outcome - logistic regression"

Message-id: <FHEEJBDDCNPPNJEACDJAEEEDCNAA.andrejk@zrc-sazu.si>

I just want to followup on my earlier question. I tried fitting a nonlinear

regression using the NLS and specified a following model.

model.1<-nls(clinton ~ 1/(1 + exp(-(sex + educ + age))), data=elect)

The testing data set I'm using is on the US election polls. Clinton is a

binary outcome (1-vote, 0-no-vote).

However I get the following error message.

Error in match.call(definition, call, expand.dots) : .Primitive... is not a

function

What am I doing wrong?

I know that for the single level models R has better functions (e.g. lrm or

glm), I used them before with success. However in the final instance I want

to fit a multilevel model with a binary outcome variable as a simple binary

logistic model.

I would be thankfull for all the insights.

Andrej

_________

Andrej Kveder, M.A.

researcher

Institute of Medical Sciences SRS SASA; Novi trg 2, SI-1000 Ljubljana,

Slovenia

phone: +386 1 47 06 440 fax: +386 1 42 61 493

______________________________________________

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

https://www.stat.math.ethz.ch/mailman/listinfo/r-help

**Next message:**Kevin Wright: "[R] How do I view hidden methods?"**Previous message:**Wladimir Eremeev: "[R] Re[2]: unfortunately, no such function, panel.segments"**In reply to:**kjetil brinchmann halvorsen: "Re: [R] NLME - multilevel model using binary outcome - logistic regression"**Next in thread:**Douglas Bates: "Re: [R] NLME - multilevel model using binary outcome - logistic regression"**Reply:**Douglas Bates: "Re: [R] NLME - multilevel model using binary outcome - logistic regression"

*
This archive was generated by hypermail 2.1.3
: Tue 01 Jul 2003 - 09:11:49 EST
*