Description Usage Arguments Value See Also Examples
View source: R/regressionEvaluation.R
Given the result of regressionEvaluation
email a standardised report to one or more recipients.
The emailed report contains a residual vs fitted plot,
a residual vs order plot,
a histogram of actual, predictions and residuals' distributions,
a prediction intervals plot,
and a plot of cumulative
If the model is provided, some basic descriptions about the model will also be reported.
If the model provided is a glm, glm.check.assumptions
function will be used to check the assumptions of the model(e.g. linearity).
1 2 | regressionEmailReport(evaluationResults, toAddress = "your.name@gmail.com",
additionalMessage = "", plotSize = 10)
|
evaluationResults |
The result from running |
toAddress |
Character vector, containing the email address(es) to send the report to, when completed. |
additionalMessage |
A string that will appear in the subject of the email |
plotSize |
Numeric scalar containing the side length of the resulting square png files, in pixels. |
The result of the call to sendmail
RQuantSendMail
, regressionEvaluation
1 2 3 4 5 6 7 8 9 10 11 12 | set.seed(123)
data(mtcars)
fit <- glm(mpg ~ cyl + disp + hp + drat, data=as.data.frame(mtcars), family = gaussian())
actuals <- mtcars$mpg
probs <- predict(fit, mtcars)
res <- regressionEvaluation(pred = probs,
obs = actuals,
model = fit,
sample_size=1e5,
seed = 1234)
regressionEmailReport(res,"ivan@xxx.com")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.