[R] ANCOVA

Birgit Lemcke birgit.lemcke at systbot.uzh.ch
Mon Apr 21 15:01:16 CEST 2008


Hello John,

I am really sorry about that. I wanted to include the code but I  
forgot and you are completely right, I forgot the family-argument.

Thanks for the help.

B.


Am 21.04.2008 um 14:50 schrieb John Fox:
> Dear Brigit,
>
> My guess is that you forgot to specify the argument family=binomial in
> the call to glm().
>
> Had you included the commands that you used as well as the error that
> was produced, it wouldn't be necessary to guess.
>
> I hope this helps,
>  John
>
> On Mon, 21 Apr 2008 14:23:13 +0200
>  Birgit Lemcke <birgit.lemcke at systbot.uzh.ch> wrote:
>> R version 2.6.2 PowerBook G4
>>
>> Hello R User,
>>
>> I try to perform an ANCOVA using the glm function.
>> I have a dataset with continuous and categorical data (explanatory
>> variables) and my response variable is also binary categorical.
>>
>> Fehler: NA/NaN/Inf in externem Funktionsaufruf (arg 4)
>> Zusätzlich: Warning messages:
>> 1: In Ops.factor(y, mu) : - nicht sinnvoll für Faktoren (makes no
>> sense for factors)
>> 2: In Ops.factor(eta, offset) : - nicht sinnvoll für Faktoren
>> 3: In Ops.factor(y, mu) : - nicht sinnvoll für Faktoren
>>
>> My dataset contains NA`s but if I try to use na.exclude, I got the
>> same Error message.
>>
>> I thought the function should use with my dataset. What am I doing
>> wrong?
>>
>> Thanks in advance for your help.
>>
>> Birgit
>>
>>
>> Birgit Lemcke
>> Institut für Systematische Botanik
>> Zollikerstrasse 107
>> CH-8008 Zürich
>> Switzerland
>> Ph: +41 (0)44 634 8351
>> birgit.lemcke at systbot.uzh.ch
>>
>> 175 Jahre UZH
>> «staunen.erleben.begreifen. Naturwissenschaft zum Anfassen.»
>> MNF-Jubiläumsevent für gross und klein.
>> 19. April 2008, 10.00 Uhr bis 02.00 Uhr
>> Campus Irchel, Winterthurerstrasse 190, 8057 Zürich
>> Weitere Informationen http://www.175jahre.uzh.ch/naturwissenschaft
>>
>> ______________________________________________
>> R-help at 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.
>
> --------------------------------
> John Fox, Professor
> Department of Sociology
> McMaster University
> Hamilton, Ontario, Canada
> http://socserv.mcmaster.ca/jfox/

Birgit Lemcke
Institut für Systematische Botanik
Zollikerstrasse 107
CH-8008 Zürich
Switzerland
Ph: +41 (0)44 634 8351
birgit.lemcke at systbot.uzh.ch

175 Jahre UZH
«staunen.erleben.begreifen. Naturwissenschaft zum Anfassen.»
MNF-Jubiläumsevent für gross und klein.
19. April 2008, 10.00 Uhr bis 02.00 Uhr
Campus Irchel, Winterthurerstrasse 190, 8057 Zürich
Weitere Informationen http://www.175jahre.uzh.ch/naturwissenschaft



More information about the R-help mailing list