Sample from multiple independent normal distributions. Produces a unique sample of size n using each element in mean and sd. Equivalent to sampling from a multivariate normal distribution with no covariance. Each sample using rnorm.

sample_normals(n, mean, sd, col_names = NULL)

Arguments

n

Number of observations.

mean

Vector of means.

sd

Vector of stadnard deviations.

col_names

Column names to returned matrix.

Value

Matrix with each column a sample from a normal distribution.