search for: prediction2

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

Did you mean: prediction
2010 Jan 21
3
cross validation function translated from stata
...the 200 replications. ================================================================= First is stata code. forvalues i=1(1)200 { local event="cancer" local predictors1 = "total_psa" local predictors2 = "total_psa free_psa" local prediction1 = "base" local prediction2 = "full" g `prediction1'=. g `prediction2'=. quietly g u = uniform() sort `event' u g set = mod(_n, 10) + 1 forvalues j=1(1)10{ quietly logit `event' `predictors1' if set~=`j' quietly predict ptemp if set==`j' quietly replace `prediction1' = ptemp if set...
2013 Jan 08
0
bagging SVM Ensemble
...trainset, type = "C-classification", cost = cc,gamma = gg, kernel = "radial") modelotan <- svm(class ~ ., trainset, type = "C-classification", cost = cc,gamma = gg, kernel = "sigmoid") prediction1<- predict(modelolin,newdata=testset, decision.values=F) prediction2<- predict(modelopoly,newdata=testset, decision.values=F) prediction3<- predict(modelorad,newdata=testset, decision.values=F) prediction4<- predict(modelotan,newdata=testset, decision.values=F) tab1 <- table(pred = prediction1,testset$class) tab2 <- table(pred = prediction2,testset$cl...