HVL_sample: Simulate samples to be used in 'HVL_shiny',

Description Usage Arguments Value

Description

This function will be called from HVL_shiny, and its purpose is to create the samples needed for some of the interactive investigations.

Usage

1
HVL_sample(dist, par, n = 100, M = 100, seed = NULL)

Arguments

dist

A character vector that must be one of the implemented distributions.

par

A list with the arguments to be used when sampling from the distribution given in dist.

n

An integer, default value 100, that specifies the number of observations in each individual sample.

M

An integer, default value 100, that specifies the number of replicates of samples of size n from the distribution specified in distribution.

seed

An integer that can be used to specify a seed-value to be used when sampling. The default value NULL turns of the part of the code that sets the seed.

Value

The M samples of size n will be returned as an array.


LAJordanger/HVLstatistikk documentation built on June 21, 2019, 7:56 p.m.