search for: twiens

Displaying 5 results from an estimated 5 matches for "twiens".

Did you mean: tiens
2005 Mar 13
1
cross-validation
...attached to my data) and I was also thinking of doing a random cross-validation to look at general model stability. For the third options I can use cross-validation or bootstrapping. If someone can type out a code example, that would be very helpful to me. Thanks in advance. T -- Trevor Wiens twiens at interbaun.com The significant problems that we face cannot be solved at the same level of thinking we were at when we created them. (Albert Einstein)
2005 Mar 17
1
Cross validation, one more time (hopefully the last)
...rror.i[i] <- sum(sorted$rvar != pred.all.i)/n } pred.cc <- unlist(pred.c) delta.cv.k <- sum(sorted$rvar != pred.cc)/n p.k <- countlist/n delta.app <- mean(sorted$rvar != pred.all)/n delta.acv.k <- delta.cv.k + delta.app - sum(p.k*error.i) print(delta.acv.k) } -- Trevor Wiens twiens at interbaun.com
2005 Mar 15
2
cv.glm {boot}
...a number of distince areas, I would like to cross-validate temporarly and spatially. I've already attached the temporal and spatial attributes to my data, but I'm unsure as to how to achieve this, as it seems I can't use cv.glm for this purpose. Thanks in advance. T -- Trevor Wiens twiens at interbaun.com The significant problems that we face cannot be solved at the same level of thinking we were at when we created them. (Albert Einstein)
2005 Mar 18
2
logistic model cross validation resolved
...d into a data frame. Now this script assumes that the variable you are going to fold with is an integer. If you want to have the predicted values or models returned from each fold, the calls to errorest, can be modified. Please see the help page for control.errorest on details. T -- Trevor Wiens twiens at interbaun.com ========================================================== myglm <- function(formula, family, data){ ret <- glm(formula, family=binomial, data=data) return(ret) } myfacpred <- function(object, newdata) { ret <- as.factor(ifelse(predict.glm(object, newdata, type='r...
2005 Mar 10
2
Logistic regression goodness of fit tests
...ld interpret goodness-of-fit results or other evaluations of the models created? I've included a summary of the data below (in case it might be helpful) with all variables in the data frame as it was easier than selecting out the ones used in the model. Thanks in advance. T -- Trevor Wiens twiens at interbaun.com The significant problems that we face cannot be solved at the same level of thinking we were at when we created them. (Albert Einstein) ---------------------------- summary(datamatrix) siteid block recordyear cclo 564-125: 5 Min. :1.00...