gravatar

motox249

Bryan Solomon

Recently Published

QCEW_MIDLAND_2002_21
Advanced_methods_project
AD. Methods
Ad Methods project 5
AD Methods project
Publish Document
Ad. Methods draft
Homework 2 final
Methods Project
Project draft
ad_methods
HW_3_1
HW 3
Document SDA
HW 2 B. Solomon final
HW 2 draft
Document
Document
homework 8
Document
blog 2
Homework 6
Document
Document
homework 4 draft
error code ```{r} confusionMatrix(data = tr_predcl, model.dat2train$usecondom, positive = "1" ) ``` Which produces the same accuracy, but decreases the sensitivity at the cost of increased specificity. Next we do this on the test set to evaluate model performance outside of the training data ```{r} pred_test<-predict(glm1, newdata=model.dat2test, type="response") pred_cl<-factor(ifelse(pred_test > mean( I(model.dat2test$usecondom==1)), 1, 0)) table(model.dat2test$usecondom,pred_cl) confusionMatrix(data = pred_cl,model.dat2test$usecondom) ``` In the test data, the model does about as well as it did on the training data, which is ideal.
Homework 3
Homework 2
Homework 1
C. Sparks class Stats 2
final exam
home 11/17
homework 10
homework 9
homework 8
HW 7
7
midterm
homework 5
Homework 4
homework 3
Homework 2
Plot
Plot
Plot
Plot
Document