MHPCA_simulation: M-HPCA Simulation

Description Usage Arguments Value

View source: R/simulation.R

Description

Function for simulating data as described in the supplementary material of Campos et al. (202?)

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
MHPCA_simulation(
  sig_eps,
  n_d,
  J,
  D,
  num_reg,
  num_time,
  missing_level = FALSE,
  K = 2,
  L = 2,
  P = 2,
  M = 2
)

Arguments

sig_eps

error standard deviation (scalar)

n_d

group sample size (scalar)

J

number of repetitions per subject (scalar)

D

number of groups (scalar)

num_reg

number of regions (scalar)

num_time

number of functional points (scalar)

missing_level

allow for missing repetitions (logical)

K

number of marginal level 1 eigenvectors (scalar)

L

number of marginal level 1 eigenfunctions (scalar)

P

number of marginal level 2 eigenvectors (scalar)

M

number of marginal level 2 eigenfunctions (scalar)

Value

A list with the simulated components.


dsenturk/mhpca documentation built on Dec. 20, 2021, 2:11 a.m.