Advertisement
897bhgy

Untitled

Jul 16th, 2023 (edited)
701
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 0.32 KB | Source Code | 0 0
  1. # Create new data for prediction
  2. newcredit <- data.frame(purchases = 42, extraCards = 1)
  3.  
  4. # Predict probability of being upgraded for new data
  5. prob_new_credit <- predict(model2, newcredit, type="response")
  6.  
  7. # Print predicted probability
  8. print(paste("Predicted probability of upgrade for new credit card: ", prob_new_credit))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement