Concise formatting of significances in R.
Please see Adding polished significance summaries to papers using R for some discussion.
See also:
sigr is a small package that concentrates on computing summary statistics and reporting in an appropriate format.
For example here is formatting the quality of a logistic regression.
d <- data.frame(x=c(1,2,3,4,5,6,7,7), y=c(TRUE,FALSE,FALSE,FALSE,TRUE,TRUE,TRUE,FALSE)) model <- glm(y~x,data=d,family=binomial) summary(model)
library("sigr")
cat(render(wrapChiSqTest(model), pLargeCutoff=1, format='markdown'))
To install, from inside R
please run:
install.packages("sigr")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.