aboutsummaryrefslogtreecommitdiff
path: root/R_LogR/main.r
diff options
context:
space:
mode:
Diffstat (limited to 'R_LogR/main.r')
-rwxr-xr-xR_LogR/main.r8
1 files changed, 6 insertions, 2 deletions
diff --git a/R_LogR/main.r b/R_LogR/main.r
index 748b0f4..01a4617 100755
--- a/R_LogR/main.r
+++ b/R_LogR/main.r
@@ -31,11 +31,15 @@ lines(test_dat$Income, pred, col = "blue", lwd = 2)
new_data3 <- data.frame(
- Income = c(58),
- Age = c(25),
+ Income = c(90),
+ Age = c(60),
price20 = c(1),
price30 = c(0)
)
predicted <- predict(model, newdata = new_data3)
print(1 / (1 + exp(-predicted)))
+
+
+sum(data$MYDEPV)
+sum(pred) \ No newline at end of file