R/SIMnormalmean.anydim.r

Defines functions SIMnormalmean.anydim

# function to simulate data from a univariate normal distribution with 
# parameter mu and fixed Sigma and compute summary statistics from it. 
# summary statistics: arithmetic means.
# uses the library mvtnorm

SIMnormalmean.anydim = function(nk, mu, sigma, n){
  rmvnorm(nk, mu, sigma/n)
}
johannabertl/ApproxML documentation built on May 22, 2019, 2:19 p.m.