parTest2: Parameter t-test

View source: R/parameter_ttest.R

parTest2R Documentation

Parameter t-test

Description

Perform t-test on curve parameters of bdotsFit object

Usage

parTest2(bdObj, group, vals = NULL)

Arguments

bdObj

Object of class bdObj

group

Length one character of grouping column in which to perform t-test

vals

Character vector of values within grouping column in which to perform the test. If NULL, it will do all pairwise tests

Details

Performs pairwise t-test. Currently only tests at alpha = 0.95. Also currently only allows t-test within single grouping column. Ability to test across grouping columns to come later

Value

List of t-test results of class bdotsPars_ttest

Examples

## Not run: 
res <- bdotsFit(data = cohort_unrelated,
                subject = "Subject",
                time = "Time",
                y = "Fixations",
                group = c("Group", "LookType"),
                curveType = doubleGauss(concave = TRUE),
                cor = TRUE,
                numRefits = 2,
                cores = 0,
                verbose = FALSE)
tstats <- parTest(res, group = "LookType", vals = c("Cohort", "Unrelated_Cohort"))

## End(Not run)

bdots documentation built on Jan. 7, 2023, 1:18 a.m.