testvec_for_gamm4: Function to calculate the test vector for an object fitted...

View source: R/testvector_functions.R

testvec_for_gamm4R Documentation

Function to calculate the test vector for an object fitted with gamm4

Description

Function to calculate the test vector for an object fitted with gamm4

Usage

testvec_for_gamm4(mod, name, sigma2 = NULL, nrlocs = 7)

Arguments

mod

an object fitted with gamm4

name

character; name of the covariate for which inference should be calculated

sigma2

variance to be used in the covariance definition. If NULL, the estimate mod$gam$sig2 is used.

nrlocs

number of locations at which p-values and intervals are to be computed for non-linear terms. This directly corresponds to a sequence of nrlocs quantiles of the given covariate values.

Details

Function provides the test vectors for every location of the given covariate


davidruegamer/selfmade documentation built on Feb. 2, 2023, 7:51 a.m.