Last data update: 2014.03.03

R: Create a plot that shows how Monte Carlo estimates change...
estvssampR Documentation

Create a plot that shows how Monte Carlo estimates change with increasing sample size.

Description

Create a plot that shows how Monte Carlo estimates change with increasing sample size.

Usage

  estvssamp(x, fun = mean,
    main = "Estimates vs Sample Size", add = FALSE, ...)

Arguments

x

a sample vector.

fun

a function such that E(fun(x)) is the quantity of interest. The default is fun = mean.

main

an overall title for the plot. The default is “Estimates vs Sample Size”.

add

logical. If TRUE, add to a current plot.

...

additional arguments to the plotting function.

Value

NULL

Examples

## Not run: 
estvssamp(x, main = expression(E(beta)))
estvssamp(y, add = TRUE, lty = 2, col = "red")
## End(Not run)

Results