remove_latent: Remove subjects with too much missing data on a given latent...

View source: R/remove_latent.R

remove_latentR Documentation

Remove subjects with too much missing data on a given latent construct

Description

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

Usage

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

dr-JT/datawrangling documentation built on June 25, 2022, 7:47 p.m.