SES: Estimate standardized effect size (SES) and p-value

View source: R/SES.R

SESR Documentation

Estimate standardized effect size (SES) and p-value

Description

Estimate standardized effect size (SES) and p-value

Usage

SES(obs, sim, alternative = "two-sided")

Arguments

obs

Single value of the observed statistics

sim

Numeric vector of simulated values (null distribution)

alternative

Character string specifying the alternative hypothesis; "greater", "less", or "two-sided" (default)

Details

Standardized effect size (SES) represents Z-score, and is calculated as (observed - mean_simulated) / standard_deviation_simulated. SES values more extreme than +/-1.96 belong to the outer 5 and thus are significant at alpha=0.05 with two-sided hypothesis test.

Value

Data frame with the effect size estimate (SES) and p-value (Pval).

Examples

SES(2, 1:10)


vmikk/metagMisc documentation built on Feb. 14, 2024, 2:29 a.m.