Create a plot that shows how Monte Carlo estimates change with increasing sample size.
Create a plot that shows how Monte Carlo estimates change with increasing sample size.
estvssamp(x, g = mean, main = "Estimates vs Sample Size", add = FALSE, ...)
x |
a sample vector. |
g |
a function such that E(g(x)) is the
quantity of interest. The default is |
main |
an overall title for the plot. The default is
“ |
add |
logical. If |
... |
additional arguments to the plotting function. |
NULL
## Not run: estvssamp(x, main = expression(E(beta))) estvssamp(y, add = TRUE, lty = 2, col = "red") ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.