NPARCtest: Perform F-test

Description Usage Arguments Value Examples

View source: R/testing.R

Description

Perform F-test

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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")                     

NPARC documentation built on Nov. 8, 2020, 8:05 p.m.