sim.norm {simitation}R Documentation

Internal function for Normal Distribution Simulation

Description

Simulates data from normal distributions given specified parameters.

Usage

sim.norm(
  n.values,
  mean.values,
  sd.values,
  num.experiments = 1,
  variable.names = NULL,
  seed = 1978,
  vstr = 3.6
)

Arguments

n.values

A numeric vector indicating the number of values to be simulated for each normal distribution.

mean.values

A numeric vector indicating the mean values for each normal distribution.

sd.values

A numeric vector indicating the standard deviation values for each normal distribution.

num.experiments

A single integer indicating the number of experiments to simulate. Default is 1.

variable.names

A character vector with names for the variables. If NULL, default names "x1", "x2", ... will be used.

seed

An integer to set as the seed for reproducibility. Default is 1978.

vstr

A character string specifying the RNG version. Default is "3.6".

Value

A data.table containing the simulated data.


[Package simitation version 0.0.7 Index]