# Fitting a logistic regression model using the predictors "balance"

## The function "glm()" fits generalized linear models, a class of models that includes logistic regression as a special case

## The function "glm()" is similar to that of "lm()", except that we have to pass on the argument "family=binomial" in order to fit a logistic regression model

mod_1=glm(default~balance,data=Default,family=binomial)

Error in eval(family$initialize) : y values must be 0 <= y <= 1

HOW CAN I CORRECT THE ERRROR IN THE ABOVE ?

family=binomaial not accepted.