Test <- read.table("C:/Users/ARAB/Documents/user_table.csv", header=T)
testlog <- glm(Conv ~ active_days, family=binomial("logit"))
this is a code i am trying to run in R but am getting error
"Error in eval(expr, envir, enclos) : object 'Conv' not found"
This is my first day in R. Please help me.
Also I can see Conv in data when i am using view() command. Conv is the outcome variable containing 1/0. Also in sas or spss we have the option of modelling 1 or 0 in a binary logit model. How can we use that in R or does this error have something to do with that.
glm(1-Conv ~ active_days, ...)will do? (i.e. just convert 'successes' to 'failures' on the fly by subtracting the response variable from 1)? - Ben Bolker