deriveZero: Derive the zeroed pressures of a FemFit dataset

Description Usage Arguments Details Value Examples

View source: R/deriveZero.r

Description

Derives the zeroed pressures of a segmented FemFit dataset.

Usage

1
deriveZero(x, method = c("lmm", "manova"), ...)

Arguments

x

An "FemFit" object.

method

Specifies the statistical procedure to generate the zeroed pressures. See Details.

...

Arguments passed to lm or lmer.

Details

"lmm" fits a linear mixed model to calculate the means of the baseline regions.

"manova" fits a multivariate analysis of variance to calculate the means of the baseline regions.

Value

Returns a FemFit object with an updated df element containing the zeroed out pressures for each sensor as zeroPrssrX, where X is the sensor numbers 1 to 8.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
AS005 = read_FemFit(c(
        "Datasets_AukRepeat/61aa0782289af385_283_csv.zip",
        "Datasets_AukRepeat/61aa0782289af385_284_csv.zip"
    ),
    remove.NAs = TRUE
  ) %>%
  # Segment the FemFit data
  segment(
    cp. = 0.001,
    numOfNodesToLabel = list(c(3, 1, 3, 4), c(4, 1, 5, 3))
  )

AS005_lmm = deriveZero(AS005, "lmm")
# The "lmm" method is recommended, but it can be shown that "manova" does return similar results...
AS005_manova = deriveZero(AS005, "manova")

TheGreatGospel/FemFit documentation built on May 21, 2019, 9:19 a.m.