prep_cpop: Preparation for CPOP modelling

View source: R/prep_cpop.R

prep_cpopR Documentation

Preparation for CPOP modelling

Description

Checks before CPOP modelling, and prepare the z-matrices for CPOP modelling.

Usage

prep_cpop(x1, x2, force = FALSE)

Arguments

x1

A data matrix of size n times p

x2

A data matrix of size n times p

force

If the data matrices has too many columns (p > 200), then the function will not compute output the z-matrices (pairwise column differences of x's). Default to FALSE.

Examples

data(cpop_data_binary, package = 'CPOP')
## Loading simulated matrices and vectors
x1 = cpop_data_binary$x1
x2 = cpop_data_binary$x2
prep_cpop(x1 = x1, x2 = x2)

kevinwang09/top documentation built on April 20, 2022, 3:01 a.m.