The Chapter 3 Cauchy example. Each replication draws n observations from
a Cauchy distribution with scale theta by the quantile transformation and
estimates the scale as half the sample interquartile range.
Arguments
- n
Sample size for each replication.
- set_up
One element of
make_set_up().- ...
The scale parameter
thetaas the first element.
See also
Other workers:
pi_worker(),
regression_worker()
Examples
out <- sim_template(iqr_worker, 1234, 100, 20, 2, 5)
lapply(out, round, 3)
#> [[1]]
#> [1] 4.451 4.383 4.709 5.576 4.471 5.015 7.168 4.148 6.032 4.565
#>
#> [[2]]
#> [1] 4.175 6.718 7.271 4.296 7.065 4.411 4.575 4.773 4.411 5.356
#>