n=c(3, 4, 5)
mu=c(3, 4, 5)
sigma=c(3, 4, 5)
F=datagen(n,mu,sigma);muh=F[1];S2h=F[2];x=F[3]
muh
S2h
x
# Following example especially useful for simulation based tecnhiques
# such as Monte Carlo, Parametric Bootstrap and comparison studies
# by using simulation.
Fm=datagen(c(3, 4, 5),c(3, 4, 5),c(3, 4, 5),10);muhm=Fm[1];S2hm=Fm[2];xm=Fm[3]
muhm
S2hm
xm
Run the code above in your browser using DataLab