Learn R Programming

mreg (version 1.2.1)

randfn: wrapper to generate random samples from a density function given by a character string as an argument

Description

wrapper to generate random samples from a density function given by a character string as an argument

Usage

randfn(n, family, ...)

Value

the vector of samples

Arguments

n

the number of samples to generate

family

the name of the density function, character string

...

other named arguments to feed into the density function