sim.stat: Simulate EDF statistics under Case 0

Description Usage Arguments

View source: R/calcstats.R

Description

Obtain simulations of test statistic under assumption that parameters known (for getting P-values). Case 3 (all parameters unknown) coming up later. Add examples.

Usage

1
2
sim.stat(statfun, n, nsim = 10000, sim_dist = runif, calc_dist = punif,
  ...)

Arguments

statfun

Name of statistic to be simulated (as in help for calc.stat)

n

Sample size for each simulated test statistic

nsim

Number of simulations to run (default 10000)

sim_dist

Name of R function to draw random samples from distribution (eg. rnorm). Defaults to uniform (runif).

calc_dist

Name of R function to do probability integral transform with (eg. pnorm). Defaults to uniform (punif).

...

parameters for distribution


nxskok/edfr documentation built on May 24, 2019, 11:51 a.m.