simFMR: ssimFMR draws sample from model FMR in the paper. That is a...

Description Usage Arguments Value

Description

ssimFMR draws sample from model FMR in the paper. That is a mixiture where given component k X_i\vert Zik=1 is a normal distribution of mean mu_k and variance \Sigma_k and given X_i and Z_ik Y is normal distribution with mean t(X_i) \beta_k and variance \sigma^Y_k

Usage

1
simFMR(n, K, parameters = NULL, seed = NULL, d = 2)

Arguments

n

the number of observations

K

the number of cluster

parameters

the parameter for the FMR model, that is a list with component pik the mixture proportion foreach k in 1,..., K muX_k, \SigmaX_k, \beta_k and \sigmaY_k if parameters == NULL, then the set of parameters is drawn

d

the dimension for X

Value

a list with Y, X the observations, Z and parameters the list of parameters


MarieEtienne/MixtLiP documentation built on May 7, 2019, 2:51 p.m.