[R] lm - log(variable) - skip log(0)

agent dunham crosspide at hotmail.com
Fri Feb 25 13:23:06 CET 2011


Apologies, I'm really new with R, Can you help me with the syntax?

here is my data.frame in which I introduce independent variables:

> varind <-
> data.frame(datpos$hdom2,datpos$NumPies,datpos$InHart,datpos$CV,datpos$CA,datpos$FCC)

varind has dimensions(194, 6), in case that's necessary. Then I type:

> loglmp4 <- lm(log(datpos$IncAltuDom)~log(varind), subset=varind>0)

Error en model.frame.default(formula = log(datpos$IncAltuDom) ~ log(varind), 
: 
  invalid type (list) for variable 'log(varind)'

Thanks again,

-- 
View this message in context: http://r.789695.n4.nabble.com/lm-log-variable-skip-log-0-tp3324263p3324341.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list