rnormalmultinomial: Simulate variables following a normal multinomial...

Description Usage Arguments Value Examples

View source: R/nmrandom.R

Description

Simulate variables following a normal multinomial distribution.

Usage

1
rnormalmultinomial(n, size, mu, sigma, probs = FALSE)

Arguments

n

number of observations

size

number of trials

mu

mean parameter for the mean in the aln-normal distribution

sigma

parameter for the sigma in the aln-normal distribution

probs

return the multinomial probability used to generated the sample

Value

Sample matrix

Examples

1
rnormalmultinomial(10, 5, mu = c(0,0), sigma = matrix(c(2,1,1,2), nrow=2))

mcomas/normalmultinomial documentation built on May 22, 2019, 3:15 p.m.