rMarronWand: Marron and Wand random sample

View source: R/rMarronWand.r

rMarronWandR Documentation

Marron and Wand random sample

Description

Returns a random sample from a member of the family of Normal Mixture density functions devised in Marron and Wand (1992).

Usage

rMarronWand(n,densNum)

Arguments

n

The sample size, which is a positive integer.

densNum

An integer between 1 and 15 that specifies the density function according to Table 1 of Marron and Wand (1992).

Author(s)

Matt P. Wand matt.wand@uts.edu.au

References

Marron, J.S. and Wand, M.P. (1992). Exact mean integrated squared error. The Annals of Statistics, 20, 712-736.

Examples

library(densEstBayes)
x <- rMarronWand(1000,8)
hist(x,breaks = 50,col = "gold")
dest <- densEstBayes(x,method = "SMFVB")
plot(dest) ; rug(x,col = "dodgerblue",quiet = TRUE)

densEstBayes documentation built on March 31, 2023, 11:52 p.m.