I'm getting the following error when trying to execute a glm() procedure:

 

Error in model.frame(formula, rownames, variables, varnames, extras,
extranames,  : 
        invalid variable type for 'response'

 

The commands I'm using to import the *.csv files, construct the data frame,
and run the glm procedure are below:

 

response <- read.csv("Response.csv", header = TRUE, sep = ",")

seed <- read.csv("Seed.csv", header = TRUE, sep = ",")

data <- data.frame(seed, response)

model <- glm(response~seed, family=binomial(link=logit), data=data)

 

My Response.csv files look like this:

 

Response

0

0

1

...

 

My Seed.csv files look like this:

 

Seed

0.25

0.65

0.47

....

 

Thanks in advance for any help,

Brian

 

 

 


	[[alternative HTML version deleted]]

