Description Usage Arguments Value Examples
View source: R/mylogit.predict.R
mylogit.predict is used to make a class prediction of logistic model.
1 | mylogit.predict(model, data = NULL, print = FALSE)
|
model |
a logistic model fitted by mylogit function. |
data |
a data frame containing the variables in the model. |
print |
TRUE, print out prediction class; FALSE, as default, no printing. |
a list containing the following components:
yhat |
fitted values |
predict.class |
predicted class |
1 2 | logit = mylogit(formula = supp ~ len + dose, data = ToothGrowth)
mylogit.predict(logit, print=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.