NPARCtest: Perform F-test

View source: R/testing.R

NPARCtestR Documentation

Perform F-test

Description

Perform F-test

Usage

NPARCtest(modelMetrics, dfType = c("empirical", "theoretical"))

Arguments

modelMetrics

data.frame with results of the model fit in long format.

dfType

character value indicating the method for degrees of freedom computation for the F-test. Theoretical yields the text-book solution. Empirical yields estimates derived from the distribution moments of the RSS.

Value

data frame with fitted model parameters and additional columns listing e.g. residuals sum of squares of null and alterantive model and raw and adjusted p values retrieved from testing

Examples

data(stauro_TPP_data_tidy)
df <- dplyr::filter(stauro_TPP_data_tidy, grepl("CDK|GTP|CRK", uniqueID))
fits <- NPARCfit(x = df$temperature, 
                 y = df$relAbundance, 
                 id = df$uniqueID, 
                 groupsNull = NULL, 
                 groupsAlt = df$compoundConcentration, 
                 returnModels = FALSE)
modelMetrics <- fits$metrics
testRes <-  NPARCtest(modelMetrics, dfType = "theoretical")                     

Huber-group-EMBL/NPARC documentation built on May 11, 2023, 5:11 a.m.