Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

makesingleSC

(Deprecated function) Aggregate multiple single-cases into one case


Description

The makesingleSC function combines multiple single-case data frames into one single-case data frame.

Usage

makesingleSC(data, scale = FALSE, type = "add")

Arguments

data

A vector with measurements, a data frame or a list of data frames.

scale

Unused

type

By default values with the same measurement are added. If type is set to "mean" or "median", values of the same measurement are replaced with their mean or median. Default is "add".

Details

The algorithm works the following way:

  1. All values of each single-case are centred with respect to each case's phase A mean.

  2. The phase A values of all single-cases are combined in ascending order of their measurement times.

  3. The phase B values of all single-cases are combined in ascending order of their measurement times.

  4. Phase B values are appended to phase A values. The measurement times of phase B are shifted to start with the next MT after the end of phase A.

Author(s)

Juergen Wilbert

See Also

Examples

##Function deprecated
## please do not use it!

scan

Single-Case Data Analyses for Single and Multiple Baseline Designs

v0.51
GPL
Authors
Juergen Wilbert [aut, cre], Timo Lueke [aut]
Initial release
2021-2-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.