Learn R Programming

bdots (version 1.2.5)

parTest2: Parameter t-test

Description

Perform t-test on curve parameters of bdotsFit object

Usage

parTest2(bdObj, group, vals = NULL)

Value

List of t-test results of class bdotsPars_ttest

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

Examples

Run this code
if (FALSE) {
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"))
}

Run the code above in your browser using DataLab