Displaying 2 results from an estimated 2 matches for "prepared_data".
2012 Apr 01
1
Possibly more coefficients?
Hi there,
I have this code:
Prepared_Data <- na.omit(read.csv("Prepared_Data.csv", header=TRUE))
pd <- Prepared_Data[,-3] ## data minus response variable
lev <- sapply(pd,function(x) length(unique(x)))
## total parameters for n variables
par(las=1,bty="l")
plot(cumprod(lev),log="y")
library(Matri...
2012 Mar 29
2
How to improve, at all, a simple GLM code
Hi There,
I am trying to fit a logit model to some data in a CSV file in R.
Here is my code:
Prepared_Data = read.csv("Prepared_Data.csv", header=TRUE)
Prepared_Data
attach(Prepared_Data)
lrfit<-glm(C3~A1*B2*D4*E5,family = binomial)
anova(lrfit, test="Chisq")
write.csv(anova(lrfit, test="Chisq"), file="CWModelA.csv")
shell.exec("CWModelA.csv")
I am u...