search for: lymdis

Displaying 1 result from an estimated 1 matches for "lymdis".

Did you mean: lydia
2007 Jul 26
2
logistic regression
...1, .9, .1)), 1), labels = F) t<-table(fitc) #Calculate observed and expected values in ea group E <- matrix(0, nrow=10, ncol = 2) O <- matrix(0, nrow=10, ncol=2) for (j in 1:10) { E[j, 2] = sum(fit[fitc==j]) E[j, 1] = sum((1- fit)[fitc==j]) O[j, 2] = sum(pcdata$lymdis[fitc==j]) O[j, 1] = sum((1-pcdata$lymdis)[fitc==j]) } Here is the error message: Error in Summary.factor(..., na.rm = na.rm) : sum not meaningful for factors I understand what it means; I just can't figure out how to get around it or how to get the out...