lambda.MD {eiPack} | R Documentation |
Calculates the population share of row members in the selected columns.
lambda.MD(object, columns, ret.mcmc = TRUE)
object |
an R object of class eiMD , output from ei.MD.bayes |
columns |
a character vector of column names to be included in calculating the shares |
ret.mcmc |
a logical value indicating how the samples from the posterior
should be returned. If TRUE (default), samples are returned as mcmc
objects. If FALSE , samples are returned as arrays. |
Returns either a ((R * included columns) x
samples) matrix as an mcmc
object or a (R x
included columns x samples) array.
Michael Kellermann <kellerm@fas.harvard.edu> and Olivia Lau <olau@fas.harvard.edu>