|
46 | 46 | res <- fit_xy(hpc_basic, x = hpc[, num_pred], y = hpc$class, control = ctrl) |
47 | 47 | Condition |
48 | 48 | Error in `check_outcome()`: |
49 | | - ! For a regression model, the outcome should be `numeric`, not a `factor`. |
| 49 | + ! For a regression model, the outcome should be <numeric>, not a <factor> object. |
50 | 50 |
|
51 | 51 | --- |
52 | 52 |
|
|
55 | 55 | control = ctrl) |
56 | 56 | Condition |
57 | 57 | Error in `check_outcome()`: |
58 | | - ! For a regression model, the outcome should be `numeric`, not a `character`. |
| 58 | + ! For a regression model, the outcome should be <numeric>, not a character vector. |
59 | 59 |
|
60 | 60 | --- |
61 | 61 |
|
62 | 62 | Code |
63 | 63 | res <- fit(hpc_basic, hpc_bad_form, data = hpc, control = ctrl) |
64 | 64 | Condition |
65 | 65 | Error in `check_outcome()`: |
66 | | - ! For a regression model, the outcome should be `numeric`, not a `factor`. |
| 66 | + ! For a regression model, the outcome should be <numeric>, not a <factor> object. |
67 | 67 |
|
68 | 68 | --- |
69 | 69 |
|
70 | 70 | Code |
71 | 71 | lm_form_catch <- fit(hpc_basic, hpc_bad_form, data = hpc, control = caught_ctrl) |
72 | 72 | Condition |
73 | 73 | Error in `check_outcome()`: |
74 | | - ! For a regression model, the outcome should be `numeric`, not a `factor`. |
| 74 | + ! For a regression model, the outcome should be <numeric>, not a <factor> object. |
75 | 75 |
|
76 | 76 | # glm execution |
77 | 77 |
|
78 | 78 | Code |
79 | 79 | res <- fit_xy(hpc_glm, x = hpc[, num_pred], y = hpc$class, control = ctrl) |
80 | 80 | Condition |
81 | 81 | Error in `check_outcome()`: |
82 | | - ! For a regression model, the outcome should be `numeric`, not a `factor`. |
| 82 | + ! For a regression model, the outcome should be <numeric>, not a <factor> object. |
83 | 83 |
|
84 | 84 | --- |
85 | 85 |
|
86 | 86 | Code |
87 | 87 | res <- fit(hpc_glm, hpc_bad_form, data = hpc, control = ctrl) |
88 | 88 | Condition |
89 | 89 | Error in `check_outcome()`: |
90 | | - ! For a regression model, the outcome should be `numeric`, not a `factor`. |
| 90 | + ! For a regression model, the outcome should be <numeric>, not a <factor> object. |
91 | 91 |
|
92 | 92 | --- |
93 | 93 |
|
94 | 94 | Code |
95 | 95 | lm_form_catch <- fit(hpc_glm, hpc_bad_form, data = hpc, control = caught_ctrl) |
96 | 96 | Condition |
97 | 97 | Error in `check_outcome()`: |
98 | | - ! For a regression model, the outcome should be `numeric`, not a `factor`. |
| 98 | + ! For a regression model, the outcome should be <numeric>, not a <factor> object. |
99 | 99 |
|
100 | 100 | # newdata error trapping |
101 | 101 |
|
|
0 commit comments