search for: summ1

Displaying 2 results from an estimated 2 matches for "summ1".

Did you mean: summ
2012 Jul 13
4
R-squared with Intercept set to 0 (zero) for linear regression in R is incorrect
...as the intercept, the R^2 value is the same in R and Excel. In both cases the slope coefficient from R and from Excel are identical. k is a data frame with two columns. M1 = lm(k[,1]~k[,2] + 0) ## set intercept to 0 and get different R^2 values in R and Excel M2 = lm(k[,1]~k[,2]) sumM1 = summary(M1) sumM2 = summary(M2) ## get same value as Excel when intercept is not set to 0 Below is what R returns for sumM1: lm(formula = k[, 1] ~ k[, 2] + 0) Residuals: Min 1Q Median 3Q Max -0.057199 -0.015857 0.003793 0.013737 0.056178 Coefficients:...
2008 Oct 23
0
error when using logistic.display within a loop
...t;= y <= 1". All the response variables have value of 0 or 1. It worked well for summary and anova but not for logistic.display in the loop. Thanks for any help, Tom logreg1<-vector("list", length(l)) logreg.anov1<-vector("list",length(l)) logreg.summ1<-vector("list",length(l)) logreg.conf1<-vector("list",length(l)) for (i in c(13:16)){ logreg1[[i-x]]<-glm(dat[,i]~group + age, family=binomial, data=Ndat) logreg.anov1[[i-x]]<-anova(logreg1[[i-x]]) logreg.summ1[[i-x]]<-summary(logreg1[[i-x]]) logreg.conf1[[i...