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. ______________________________________________ R-help@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.