data.simu: Simulates observed data given the posterior, W, the block...

Description Usage Arguments Value

View source: R/data.simu.R

Description

Simulates observed data given the posterior, W, the block assignments for each variable and the number of observations, N.

Usage

1
data.simu(N, W_DxK, varIdx.by.block, sd.noise)

Arguments

N

sample size

W_DxK

a list of matrices with K x D_i dimension

varIdx.by.block

Specifies which variables are in which block. Must be input as a list where each element corresponds to the block number and contains a vector of indicies of the variables that belong to that block.

sd.noise

SD of random Gaussian noise in the observations.

Value

A list containing the following elements:

Y.list

A list where each element corresponds to a block. Each block contains the observed values of the variables in that block.

X

Contains the factor values of each observation.


kforthman/optmThrGFA documentation built on Sept. 3, 2021, 1:35 p.m.