GLH: GLH

Description Usage Arguments Value Examples

View source: R/GLH.R

Description

Conduct general linear hypothesis test. Use this function with function linear_model

Usage

1
GLH(model, T, c = rep(0, nrow(T)))

Arguments

model

the fitted linear model results

T

matrix giving linear combinations of coefficients by rows

c

a vector containing the results of linear combinations of coefficients,defaulting to 0.

Value

The results of F test including the F statistics and p value

Examples

1
2
mod <- linear_model(Depression ~ Fatalism + R_E + Sex, Patients)
GLH(mod, diag(4))

YuxuanChen0824/R_package documentation built on Dec. 18, 2021, 8:24 p.m.