extract_nzv_mh: Extract medical history without zero variance

Description Usage Arguments Value Examples

View source: R/extract_nzv_mh-function.R

Description

This function makes a list of medical histories without zero variance.

Usage

1
extract_nzv_mh(tidy_set, sd_cutoff = 0)

Arguments

tidy_set

A TidySet (i.e. ExpressionSet) containing the visits of subjects in outcome dataset, paid by any payment systems. This TidySet also accomodates outcome dataset. This is an output of compile_mh_outcome().

sd_cutoff

Cutoff of standard deviation, a non-negative numeric that is used for cutoff. If standard deviation of a medical history metric is more than the cutoff, then that medical history is accounted to the list.

Value

Medical history list, a data frame with rows for unique medical history and columns of key and sd_value. Missing value or NA is not accounted when computing the standard deviation.

Examples

1
2
3
4
5
## Create input example
data(medhistdata)

## Extract medical history without zero variance
zv_remover=extract_nzv_mh(medhistdata)

herdiantrisufriyana/medhist documentation built on June 24, 2021, 3:41 a.m.