dot-create_data: Wrapper for data creation

.create_dataR Documentation

Wrapper for data creation

Description

Improves readability for data creation rather than having to call mvrnorm each time. Also, there are many alternatives to mvrnorm in R, which isn't important for the package usefulness. Lastly, I was curious to see how internal functions work, as it is "good coding practice."

Usage

.create_data(covar_true, N)

Arguments

covar_true

covariance matrix (must be symmetric and positive definite)

N

number of replications

Value

an N * n matrix with each row corresponding to a replication of all covariates/locations


katzfuss-group/NPVecchia documentation built on April 15, 2022, 2:23 a.m.