Learn R Programming

BayesFactor (version 0.9.12-4.7)

raceDolls: Hraba and Grant (1970) children's doll preference data

Description

Hraba and Grant (1970) describe a replication of Clark and Clark (1947) in which black and white children from Lincoln, Nebraska were shown dolls that were either black or white. They were then asked a series of questions, including "Give me the doll that is a nice doll." This data set contains the frequency of children giving the same-race or different race doll in response to this question.

Arguments

Format

A matrix with 2 rows and 2 columns. Rows give doll preference; colums give the race of the child.

Examples

Run this code

data(raceDolls)

## chi-square test
## Barely significant with continuity correction
chisq.test(raceDolls)

## Bayes factor test (assuming independent binomial sampling plan)
## Very little evidence for the alternative of lack of independence
bf = contingencyTableBF(raceDolls, sampleType = "indepMulti", fixedMargin = "cols")
bf

Run the code above in your browser using DataLab