pheno_frequency: Determine symptom combinations frequency

View source: R/powerPsy.R

pheno_frequencyR Documentation

Determine symptom combinations frequency

Description

Determines the frequency of each unique symptom combinations in the dataframe

Usage

pheno_frequency(data, target_columns = tidyselect::starts_with("v_bin"))

Arguments

data

The dataset, containing v_bin columns (of binarized set)

target_columns

The columns which include the variables of the symptom combinations default = starts_with("v_bin"), using the output of binarize

Value

A dataframe containing the frequency of each symptom combinations and the sum of the values of all the variables constituting the symptom combinations The output has as many rows as symptom combinations.

Examples

## Not run: 
data_frequency <- pheno_frequency(data_binarized, target_columns = tidyselect::starts_with("v_bin"))
data_frequency

## End(Not run)

orduek/PsychPower documentation built on Oct. 25, 2023, 7:36 a.m.