fun.testreg | R Documentation |
Compare coverage of confidence intervals from various regression techniques. Intervals are nominal coverage .1.
fun.testreg(dists = "rnorm", npergp = 10, mcsamp = 10000)
dists |
vector of names of random number generators for sample. Defaults to normal. |
npergp |
Number of observations per sample; defaults to 10 |
mcsamp |
Number of Monte Carlo samples. |
A matrix of coverage levels. Dimensions are distribution and confidence interval technique.
A list with two components. The first is a two-dimensional array of average interval lengths. The second is coverage levels. Dimensions of both are technique and distribution.
library(VGAM) fun.testreg(mcsamp=100,dists=c("rnorm","rcauchy","rlaplace","runif","rexp"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.