Learn R Programming

bbefkr (version 4.2)

simulate_error: Simulate errors

Description

Simulate errors which has the specified error density

Usage

simulate_error(samplesize, errordensity)

Arguments

samplesize
Sample size
errordensity
Type of error density

Value

A vector of simulated error, which follows the specific error density

References

J. S. Marron and M. P. Wand (1992) `Exact Mean Integrated Squared Error', Annals of Statistics, 20(2), 712-736.

Examples

Run this code
simulate_error(samplesize = 100, errordensity = "normal")

Run the code above in your browser using DataLab