-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Hello,
I am getting an error when I try to run the predict function to find the probability change for an average state- has anyone else been able to run it?
Here is my code:
data2 <- with( data,
data.frame( Democrats=mean(Democrats),
Evangelics=mean(Evangelics),
Catholics = mean(Catholics),
Media= mean(Media),
Merck= mean(Merck) ))
data2$Adoption_Prop <- predict( log, newdata = data2, type = "response" )
data2$Adoption_Prop
The error i receive is: Error in $<-.data.frame(*tmp*, Adoption_Prop, value = c(1 = 0.35531731324293, : replacement has 49 rows, data has 1
Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels