This function will remove subjects based on amount of missing data per latent construct

remove_latent(x, factor.list, missing.allowed, id, output.dir = NULL,
  output.file = NULL)

Arguments

x

dataframe

factor.list

list of factors and tasks. ex. `list(WMC = c("OSpan", "RotSpan", SymSpan"), Gf = c("RAPM", "NumberSeries", "LetterSets"))`

missing.allowed

Proportion of tasks allowed to be missing

id

Subject ID variable

output.dir

File directory to save removed subjects to

output.file

File name to save removed subjects to

Examples

# Example