Learn R Programming

ndl (version 0.2.18)

danks: Example data from Danks (2003), after Spellman (1996).

Description

Data of Spellman (1996) used by Danks (2003) to illustrate the equilibrium equations for the Rescorla-Wagner model. There are two liquids (red and blue) that are potentially fertilizers, and the experimental participant is given the rates at which flowers bloom for the four possible conditions (no liquid, red liquid, blue liquid, and both liquids).

Usage

data(danks)

Arguments

Format

A data frame with 8 observations on the following 3 variables.

Cues

A character vector specifying the cues. The pots in which the flowers are grown, and the color of the fertilizer. Individual cues are separated by underscores.

Outcomes

A character vector specifying whether plants flowered (y or n).

Frequency

A numeric vector specifying the frequency of flowering.

Details

For details, see Danks (2003: 112).

References

D. Danks (2003), Equilibria of the Rescorla-Wagner model. Journal of Mathematical Psychology 47, 109-121.

B. A. Spellman, (1996). Conditionalizing causality. In Shanks, D. R., Holyoak, K. J., & Medin, D. L. (Eds.), Causal learning: the psychology of learning and motivation, Vol. 34 (pp. 167-206). San Diego, CA: Academic Press.

Examples

Run this code
# NOT RUN {
data(danks)
estimateWeights(cuesOutcomes=danks)
# }

Run the code above in your browser using DataLab