fcdc_impute: Missing Value Imputation

Description Usage Arguments Value

View source: R/fc_data_clean.R

Description

Impute missing values in an Fc Array data frame on a per-group basis. Thus requires fc$group exists. This function can handle both single time point and longitudinal Fc Array data frames.

Usage

1
2
3
4
5
6
fcdc_impute(
  fc,
  start_col = fccu_first_feat_col(fc),
  type = "det",
  method = median
)

Arguments

fc

The Fc Array data frame. Can be single time point or longitudinal.

start_col

Where you want the imputing to start iterating along columns from, presumably fccu_first_feat_col(fc).

type

String denoting the type of imputation. Currently, only "det" for deterministic is suppoted.

method

For calculating imputed values. Default is median.

Value

The Fc Array data frame, with missing values replaced based on method. By default, this will be the median of a group's values for that feature.


kmorrisongr/fcan documentation built on Sept. 9, 2020, 10:12 a.m.