data(studentratings)
fml <- ReadDis + SES ~ ReadAchiev + (1|ID)
imp <- panImpute(studentratings, formula = fml, n.burn = 1000, n.iter = 100, m = 5)
implist <- mitmlComplete(imp)
# * Example 1: sort by ID
sort(implist, by = ID)
# * Example 2: sort by combination of variables
sort(implist, by = list(FedState, ID, -SES))
Run the code above in your browser using DataLab