Message-ID: <AANLkTimf2h7qPgipdmEJfTxMik=+MvLf+4g7QSBokb_8@mail.gmail.com>
Date: 2011-01-14T14:20:27Z
From: Sarah Goslee
Subject: subset factor?
In-Reply-To: <C34F3DE37A4E4E17AD6FE9241497320B@ccePC>
Are you certain they are numeric? Have you tried
str() on your data?
Sarah
On Fri, Jan 14, 2011 at 9:08 AM, Silvano <silvano at uel.br> wrote:
> Hi,
>
> I used subset command, like this:
>
> grupoP = subset(dados, grupos=='P', ?select=c(mortos, vivos, doses,
> percevejos, p))
>
> and the variables in select option are numeric.
>
> I tried fit a model with command:
>
> ajuste.logit = glm(cbind(mortos,percevejos)~log10(doses),
> family=binomial(logit), data=grupoP)
>
> and the output is:
>
>> ajuste.logit = glm(cbind(mortos,percevejos)~log10(doses),
>> family=binomial(logit), data=grupoP)
>
> Erro em Math.factor(doses) : log10 not meaningful for factors
>
> what is wrong with my commands? Why doses aren't numeric?
>
> Thanks,
>
--
Sarah Goslee
http://www.functionaldiversity.org