cl_Mstep_pi: Estep (MLE) for pi

View source: R/clusterCVR.R

cl_Mstep_piR Documentation

Estep (MLE) for pi

Description

Estep (MLE) for pi

Usage

cl_Mstep_pi(zeta, n_u, X = NULL, covs_gamma = NULL)

Arguments

zeta

A N by K matrix of responsibility parameters

n_u

A N by 1 vector for the number of observations for each profile. u indexes "unique" profiles, instead of observations. If fast = FALSE, and the observations are simply voters, the value is 1 for everyone

X

covariates, if available.

covs_gamma

starting coefficients from emlogit(zeta, X).

Value

A K by 1 vector of the mixing proportion pi (pi)


kuriwaki/clusterCVR documentation built on July 31, 2024, 8:28 p.m.