simulateData: Create simulated data for testing.

Description Usage Arguments Value

View source: R/simulate_data.R

Description

Create simulated data for testing.

Usage

1
simulateData(N, p, theta, sds, df = 10)

Arguments

N

number of observations

p

a vector indicating probability of membership to each component

theta

a vector of means, one per component

sds

a vector of standard deviations, one per component

df

length-1 numeric vector for the t-distribution degrees of freedom

Value

An object of class 'SingleBatchModel'


scristia/CNPBayes documentation built on Aug. 9, 2020, 7:31 p.m.