Description Usage Format Examples
Data arbitrarily created using:
1 2 3 |
1 |
An object of class data.frame
with 50 rows and 2 columns.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | data(lm_data)
df_train = lm_data[1:25, ]
df_test = lm_data[26:50, ]
lm_int = lm(y ~ x, data = df_train)
lm_noint = lm(y ~ 0 + x, data = df_train)
list_lm = c('lm_int', 'lm_noint')
predicted = predict2(
model = list_lm,
newdata = df_test,
actual = df_test$y,
pred_type = 'response',
write_model = FALSE,
write_pred = FALSE,
csv_name = 'none'
)
head(predicted)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.