initialize: Initialize model parameters

View source: R/Initialization.R

initializeR Documentation

Initialize model parameters

Description

Initialize model parameters

Usage

initialize(P, Ntot, ns1, nu1, ns0, nu0, K)

Arguments

P

numeric The number of observations / subjects.

Ntot

matrix of total counts

ns1

vector of counts at time 1 stimulated

nu1

vector of counts at time 1 unstimulated

ns0

vector of counts at time 0 stimulated

nu0

vector of counts at time 0 unstimulated

K

numeric number of components in the model.

Details

The thetahat are the initial hyperparameter estimates. The pi_est are the initial mixing proportions. The inds are the initial assignments of data to model components.

Value

list of initialized parameter estimates with components inds theta_hat pi_est.


RGLab/MIMOSA2 documentation built on Oct. 10, 2022, 8:35 p.m.