powered by
Update class sizes
update_m(C, z, non_zero = FALSE)
An update for m.
m
[integer(1)] The number (greater or equal 1) of latent classes of decision makers.
integer(1)
[numeric(N)] The decider class allocations.
numeric(N)
[logical(1)] Enforce strictly positive values in m (for numerical stability)?
logical(1)
update_m(C = 4, z = c(1, 1, 1, 2, 2, 3))
Run the code above in your browser using DataLab