computePvalue: Compute the p-value for the fixed effect parameters

View source: R/glmm.R

computePvalueR Documentation

Compute the p-value for the fixed effect parameters

Description

Based on the asymptotic t-distribution, comptue the 2-tailed p-value that estimate != 0. This function is not intended to be used directly, but is included for reference or if an alternative estimate of the degrees of freedom is available.

Usage

computePvalue(Zscore, df)

Arguments

Zscore

A numeric vector containing the Z scores for each fixed effect parameter

df

A numeric vector containing the estimated degrees of freedom for each fixed effect parameter

Details

Based on sampling from a 2-tailed t-distribution with df degrees of freedom, compute the probability that the calculated Zscore is greater than or equal to what would be expected from random chance.

Value

Numeric vector of p-values, 1 per fixed effect parameter

Author(s)

Mike Morgan & Alice Kluzer

Examples

NULL


MarioniLab/miloR documentation built on Oct. 18, 2024, 6:04 p.m.