Fill a list with confusion matrices for each record
get_confusion_mat(Cur.dat, Beta, misID.mat, misID.models,
misID.symm = TRUE, stacked.names, factor.ind, Levels)
Matrix giving data (records and covariates) - multiple rows can be given (e.g. reflecting different observers)
A list where each entry is a vector giving the parameters of the misID model
With true state on rows and assigned state on column, each positive entry provides an index to misID.models (i.e. what model to assume on multinomial logit space); a 0 indicates an impossible assigment; a negative number designates which column is to be obtained via subtraction
A formula vector providing linear model-type formulas for each positive value of misID.mat. If the same model is used in multiple columns it is assumed that all fixed effects (except the intercept) are shared
if TRUE, symmetric classification probabilities are applied (e.g. pi^12=pi^21)
A character vector giving column names for the data
An integer vector holding whehter each column of data is to be treated as numeric or factor
A list, each entry of which corresponds to a column name for factor variables and gives the possible levels of those factors
A list of confusion matrices, one for each row in Cur.dat