View source: R/Initialization.R
initialize | R Documentation |
Initialize model parameters
initialize(P, Ntot, ns1, nu1, ns0, nu0, K)
P |
|
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 |
|
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.
list
of initialized parameter estimates with components inds
theta_hat
pi_est
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.