pecc_count: Statistique of a boolean covariate, analyze by categorical...

View source: R/pecc_count.R

pecc_countR Documentation

Statistique of a boolean covariate, analyze by categorical covariates.

Description

We often have a boolean column (responder = 1, non responder = 0 for instance). Pecc_count create a table with the number of occurence (value = 1) divided by the number of total patients with or without specific categorical covariate (two can be simultaneously analyzed)

Usage

pecc_count(df, metric, col_cov = NULL, row_cov = NULL, str_input = F)

Arguments

df

Name of the dataframe to analyse

metric

Name of the column metric (NSA)

col_cov

Name of the first column

row_cov

Name of the second column

str_input

If true, metric, col_cov and row_cov argument must be strings. If False (default), provide expressions (unquoted arguments)

Author(s)

Thibaud Derippe (Thibaud.Derippe@gmail.com)

Examples

pecc_count(mtcars,metric = vs, col_cov = cyl, row_cov = carb)

Peccary-PMX/PeccAnalysis documentation built on July 7, 2022, 5:27 a.m.