Skip to content
Back to formatted view

Raw Message

Message-ID: <1263313368254-1012230.post@n4.nabble.com>
Date: 2010-01-12T16:22:48Z
From: npobedina
Subject: List arguments from data frame columns in formula
In-Reply-To: <971536df1001120657j264c5b6bwf50c0bc8872a086d@mail.gmail.com>

Thanks a lot for help! :)
I've invented a more complicated way to make it work: 
f <- as.formula(paste("data.y~", paste( names(data.x), collapse = "+")))
fml<-glm(f, data=data.x,family=binomial)


Try this:

glm(y ~ ., family = binomial, data = data, ...)


-- 
View this message in context: http://n4.nabble.com/List-arguments-from-data-frame-columns-in-formula-tp1012146p1012230.html
Sent from the R help mailing list archive at Nabble.com.