make_density_obj: make "density" object

Description Usage Arguments Value

Description

make "density" object

Usage

1
2
make_density_obj(base_density = "norm", params = list(mean = 0, sd =
  1), sample_size = 500)

Arguments

base_density

a base string for a density with d\* and r\* functions, for example "norm", as it has "dnorm" and "rnorm".

params

a named list of parameters shared between the d\* and r\* functions

sample_size

number of samples to produce from this distirbution.

Value

an S3 object of type "density", with components:


hhau/sugiyamastudy documentation built on May 7, 2019, 9:20 p.m.