function to stack data for midID updates (going from four dimensional array to a two dimensional array including observed groups
stack_data_misID(Data, G.obs, g.tot.obs, n.Observers, n.transects,
n.species, stacked.names, factor.ind)
4-d dataset
matrix giving the total numer of groups observed at least once by species and transect
total number of observations for animals seen at least once
vector giving number of observers per transect
number of transects
number of species
column names for new stacked dataset
a vector of indicator variables (1 = factor/categorical variable, 0 = continuous variable)
a stacked dataset (in matrix form)