LMBootstrapTest: Perform a test on the effects from the model

Description Usage Arguments Details Value References Examples

View source: R/LMBootstrapTest.R

Description

Compute a partial model without the tested effects then estimate the residuals. Next, compute new outcomes from the predicted values of the partial model and sampled residuals. Finally, compute the Sum of Squares and the test statistic.

Usage

1
LMBootstrapTest(ResLMEffectMatrices, nboot = 100)

Arguments

ResLMEffectMatrices

A list of 13 from LMEffectMatrices

nboot

A integer with the number of iterations to perform (by default: 100)

Details

The function works as follow:

To be written again

Value

A list with the following elements:

Fobs

A vector with the F statistics observed with the data

Fboot

A matrix with the F statistics observed with the bootstrap

Pvalues

A vector with the pvalue for every effect

References

Thiel M.,Feraud B. and Govaerts B. (2017) ASCA+ and APCA+: Extensions of ASCA and APCA in the analysis of unbalanced multifactorial designs, Journal of Chemometrics

Examples

1
2
3
4
5
 data('UCH')
 ResLMModelMatrix <- LMModelMatrix(formula=as.formula(UCH$formula),design=UCH$design)
 ResLMEffectMatrices <- LMEffectMatrices(ResLMModelMatrix = ResLMModelMatrix,outcomes=UCH$outcomes)

 result <- LMBootstrapTest(ResLMEffectMatrices = ResLMEffectMatrices,nboot=10)

FranceschiniS/LMWiRe documentation built on Oct. 30, 2019, 6:20 p.m.