On Nov 18, 2009, at 5:12 PM, J_Laberga wrote:
Hello,
I need help with this. Let's say that I have n features that I want
to use
to predict which class an observation belongs to. Using training
data I try
to do the following:
training$result <- as.factor(training$result)
model <- glm(res
> What am I missing?
A trip to the help page. predict.glm has details on the "type"
argument specific to this situation:
"the type of prediction required. The default is on the scale of the
linear predictors; the alternative "response" is on the scale of the
response variable. Thus for a default
Hello,
I need help with this. Let's say that I have n features that I want to use
to predict which class an observation belongs to. Using training data I try
to do the following:
> training$result <- as.factor(training$result)
> model <- glm(result ~., family=binomial("logit"), data = training)
Hello,
I need help with this. Let's say that I have n features that I want to
use to predict which class an observation belongs to. Using training
data I try to do the following:
> training$result <- as.factor(training$result)
> model <- glm(result ~., family=binomial("logit"), data = training)
H
4 matches
Mail list logo