create_ligne_bivar: Univariate analysis

View source: R/results-bivar.R

create_ligne_bivarR Documentation

Univariate analysis

Description

Univariate analysis

Usage

create_ligne_bivar(x, ...)

## S3 method for class 'factor'
create_ligne_bivar(x, y, noms, margin = 2, .drop = TRUE, compute_p = TRUE, ...)

## S3 method for class 'numeric'
create_ligne_bivar(x, y, noms, .drop = TRUE, compute_p = TRUE, summary = NULL)

Arguments

x

The independant variable

y

A vector to describe

noms

The variable names

margin

Index, or vector of indices to generate margin for. 1 indicates rows, 2 indicates columns

compute_p

logical: should the function compute the pvalue

Value

If x is a numeric vector: mean(sd), median(Q25-75), min, max, n, p. If x is a factor: n (


KZARCA/simplestats documentation built on Feb. 19, 2024, 1:11 a.m.