A few utilities for generating, analyzing, and plotting probabilistic/statistical data.
confbars(model, xbounds=range(model$model[,2]), level=.95, ...)
model
an object containing the results returned by a model fitting function (e.g., lm or glm).xbounds
left-right limits on the lines to be drawn.level
float (0,1); the confidence level, defaults to 0.95.confbars(mod1, lty=2, col='red')
roller(sides_vec, rolls_vec)
sides_vec
vector where each element is a number of sides of a dierolls_vec
vector of times to roll each corresponding die> roller(c(6,12,20), 1:3)
$`6-sided`
[1] 5
$`12-sided`
[1] 12 11
$`20-sided`
[1] 3 18 20
# devtools lets you install packages from GitHub:
install.packages('devtools')
library(devtools)
# then it's this simple:
install_github('vlahm/statextra')
library(statextra)
Mike Vlah: + vlahm13@gmail[dot]com + (linkedin.com/in/michaelvlah)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.