test.ANOVA: ANOVA for multiple contrasts

Description Usage Arguments Value References Examples

View source: R/testANOVA.R

Description

This function can test an ANOVA for multiple contrasts based on parameter estimates beta, a variance covariance matrix vcov, a number of degrees of freedom df, a residual error term sigma and a contrast matrix L.

Usage

1
test.ANOVA(beta, vcov, df, sigma, L, anova.na.ignore = TRUE)

Arguments

beta

A matrix with a single column containing parameter estimates.

vcov

A matrix of the estimated covariances between the parameter estimates.

df

A numeric value indicating the residual degrees of freedom.

sigma

A numeric value indicating a residual standard deviation.

L

A contrast matrix with the parameter levels as rows and a column for each contrast.

anova.na.ignore

A logical indicating whether contrasts that cannot be fitted due to missing observations should be ignored when calculating an F value (anova.na.ignore = TRUE) or NA should be returned when at least one contrast cannot be estimated (anova.na.ignore = FALSE). Defaults to TRUE.

Value

A matrix with a single row and with three columns: (1) AveExpr, containing the average estimate of the contrasts; (2) Fval, containing the F-value corresponding to the contrasts; (3) pval, containing the p-value corresponding to the contrasts.

References

....

Examples

1
....

statOmics/MSqRob documentation built on Nov. 24, 2018, 6:52 a.m.