Learn R Programming

SCRT (version 0.1)

selectdesign: Selection on one assignment possibility

Description

One assignment possibility is randomly selected from all theoretical possibilities.

Usage

selectdesign(design, MT, limit, starts = file.choose(new = FALSE))

Arguments

design
Type of single-case design: "AB", "ABA", "ABAB", "CRD" (completely randomized design), "RBD" (randomized block design), "ATD" (alternating treatments design), or "MBD"
MT
Measurement times: number of observations.
limit
For phase designs: minimum number of observations per phase. For alternating treatments designs: maximum number of consecutive administrations of the same condition.
starts
Only for multiple baseline designs: location of the file where the possible start points can be found. Default: a window pops up in which the file can be selected.

Details

When using the default starts argument, only the design argument is required for multiple baseline designs. In this default version a window pops up in which is asked in what file the possible start points can be found. In this startpoint file, each row should contain all possibilities for one unit, separated by a tab. The rows and columns should not be labeled. For multiple baseline designs, a possible combination of start points for each unit is returned. For all other designs, a possible sequence of conditions is returned (e.g., "A" "A" "A" "A" "B" "B" "B").

References

Bulte, I., & Onghena, P. (2008). An R package for single-case randomization tests. Behavior Research Methods, 40, 467-478. Bulte, I., & Onghena, P. (2009). Randomization tests for multiple baseline designs: An extension of the SCRT-R package. Behavior Research Methods, 41, 477-485. http://ppw.kuleuven.be/english/research/mesrg

See Also

quantity to calculate the number of assignment possibilities. assignments to enumerate all assignment possibilities.

Examples

Run this code
selectdesign(design = "ABAB", MT = 24, limit = 4)

Run the code above in your browser using DataLab