Description Usage Arguments Examples
This function queries a generalized linear model and produces a string to succinctly quantify the results. Useful for annotating plots.
1 2 | mfs_glm_string(model, s.term = "", s.units = "", s.form = "%0.2f",
p.level = 0.05, do.p = TRUE)
|
model |
A generalized linear model, returned from glm() |
s.term |
Optionally, specify which variable in your model you are reporting. It must match the model contents. |
s.units |
Optionally, report units as a string, like "mm" or "lbs/in" |
s.form |
a sprintf string, default "%0.2f", to indicate the format of the numeric output |
p.level |
If you require a p-threshold other than 0.05, set it here |
do.p |
If you don't want p-value reported, set this to FALSE |
1 | mfs_glm_string(glm(y~x,data=z), p.level=0.01)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.