fPCAassessment: Functional Principal Components Analysis for the Assessment...

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/fPCAassessment.R

Description

Calculates the principle functions and scores for the workload assessment measure of performance by each individual in each condition.

Usage

1
2
3
fPCAassessment(sftData, dimensions, stopping.rule=c("OR", "AND", "STST"), 
               correct=c(TRUE,FALSE), fast=c(TRUE,FALSE), detection=TRUE, 
               register=c("median","mean","none"), plotPCs=FALSE, ...) 

Arguments

sftData

Data collected from a Double Factorial Paradigm experiment in standard form.

dimensions

The number of principal functions with which to represent the data.

stopping.rule

Indicates whether to use OR, AND or Single Target Self Terminating (STST) processing baseline to calculate individual assessment functions.

correct

Indicates whether to assess performance on correct trials.

fast

Indicates whether to use cumulative distribution functions or survivor functions to assess performance.

detection

Indicates whether to use a detection task baseline or a discrimination task baseline.

register

Indicates value to use for registering the assessment data.

plotPCs

Indicates whether or not to generate plots of the principal functions.

...

Arguments to be passed to plot function.

Details

Functional principal components analysis (fPCA) is an extension of standard principal components analysis to infinite dimensional (function) spaces. Just as in standard principal components analysis, fPCA is a method for finding a basis set of lower dimensionality than the original space to represent the data. However, in place of basis vectors, fPCA has basis functions. Each function in the original dataset can then be represented by a linear combination of those bases, so that given the bases, the each datum is represented by a vector of its coefficients (or scores) in that linear combination.

The assessment coefficient is a function across time, so the differences among assessment coefficients from different participants and/or conditions may be quite informative. fPCA gives a well motivated method for representing those differences in a concise way. The factor scores can be used to examine differences among assessment coefficients, accounting for variation across the entire function.

This function implements the steps outlines in Burns, Houpt, Townsend and Endres (2013) applied to the assessment functions defined in Townsend and Altieri (2012) and Donkin, Little, and Houpt (2013). First, the data are shifted by subtracting the median response time within each condition for each participant, but across both single target and multiple target trials, so that the assessment curves will be registered. Second, each assessment coefficient is calculated with the shifted response times. Next, the mean assessment coefficient is subtracted from each assessment coefficient, then the representation of the resulting assessment coefficients are translated to a b-spline basis. The fPCA procedure extracts the basis function from the bspline space that accounts for the largest variation across the assessment coefficients, then the next basis function which must be orthogonal to the first but explains the most amount of variation in the assessment coefficients given that constraint and so on until the indicated number of basis have been extracted. Once the assessment functions are represented in the reduced space, a varimax rotation is applied.

The assessment functions can be registered to the mean or median response time across all levels of workload but within each participant and condition, or the analyses can be performed without registration.

For details on fPCA for the assessment coefficient, see Burns, Houpt, Townsend and Endres (2013). For details on fPCA in general using R, see Ramsay, Hooker and Graves (2009).

Value

Scores

Data frame containing the Loading values for each participant and condition.

MeanAT

Object of class approxfun representing the mean At function.

PF

List of objects of class approxfun representing the principal functions.

medianRT

Size of shift used to register each assessment curve (median RT).

Author(s)

Joe Houpt <joseph.houpt@wright.edu>

References

Burns, D.M., Houpt, J.W., Townsend, J.T. & Endres, M.J. (2013). Functional principal components analysis of workload assessment functions. Behavior Research Methods

Donkin, C, Little, D.R. and Houpt (2013). Assessing the effects of caution on the capacity of information processing. Manuscript submitted for publication.

Ramsay, J., Hooker, J. & Graves, S. (2009). Functional Data Analysis with R and MATLAB. New York, NY: Springer.

Townsend, J.T. and Altieri, N. (2012). An accuracy-response time capacity assessment function that measures performance against standard parallel predictions. Psychological Review, 3, 500-516.

See Also

assessment fda

Examples

1
2
3
4
5
6
## Not run: 
data(dots)
fPCAassessment(dots, dimensions=2, stopping.rule="OR", register="median",
               correct=TRUE, fast=FALSE, detection=TRUE, plotPCs=TRUE)

## End(Not run)

jhoupt/sft documentation built on Aug. 8, 2019, 7:49 p.m.