Displaying 1 result from an estimated 1 matches for "inaltu".
Did you mean:
inact
2011 Feb 25
1
lm - log(variable) - skip log(0)
I want to do a lm regression, some of the variables are going to be affected
with log, I would like not no take into account the values which imply doing
log(0)
for just one variable I have done the following but it doesn't work:
lmod1.lm <- lm(log(dat$inaltu)~log(dat$indiam),subset=(!(dat$indiam %in%
c(0,1)))
and obtain:
Error en lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) :
0 (non-NA) cases
lmod1.lm <- lm(log(dat$inaltu)~log(dat$indiam),subset=(!(dat$indiam = 0)),
na.action=na.exclude)
and obtain
Error en lm.fit(x, y,...