to.chisq: Transform statistical distribition to chi-squared values

View source: R/to.chisq.R

to.chisqR Documentation

Transform statistical distribition to chi-squared values

Description

Given a vector of numerical values and which type of statistical distribition thet are (i.e., chisq, pvalue, zscore) it coverts them in chi-squared.

Usage

to.chisq(values, type = c("zscore", "chisq", "pvalue"))

Arguments

values

a vector of numerical values

type

which type of statistic distribution

Value

chi-squared values

Author(s)

Alessia Visconti

Examples

pvalues <- abs(rnorm(100, mean=0, sd=0.1))
to.chisq(pvalues, "pvalue")

alesssia/timesaveR documentation built on Jan. 26, 2024, 5:21 p.m.