simulatePilotData {powerPLS}R Documentation

simulate pilot data

Description

simulate cluster pilot data

Usage

simulatePilotData(seed = 123, nvar, clus.size, nvar_rel,m, A = 2, S1 = NULL, S2 = NULL)

Arguments

seed

seed value

nvar

number of variables

clus.size

Vector of two elements, specifying the size of classes (only two classes are considered)

nvar_rel

number of variables relevant to predict Y

m

separation between classes

A

oracle number of score components

S1

covariance matrix for the first class. Default @NULL i.e., the identity is considered.

S2

covariance matrix for the second class. Default @NULL i.e., the identity is considered.

Value

Returns list of X and Y simulated data

Author(s)

Angela Andreella

Examples

datas <- simulatePilotData(nvar = 10, clus.size = c(5,5),m = 6,nvar_rel = 5,A = 2)

[Package powerPLS version 0.1.0 Index]