Learn R Programming

dexter (version 0.8.5)

individual_differences: Test individual differences

Description

Test individual differences

Usage

individual_differences(dataSrc, predicate = NULL, degree = 7)

Arguments

dataSrc

Data source: a dexter project db handle or a data.frame

predicate

An optional expression to subset data, if NULL all data are used.

degree

The degree of a polynomial used to smooth observed score distribution.

Value

an object of type tind. Printing the object will show test results. Plotting it will produce a plot of expected and observed score frequencies. The former under the hypothesis that there are no individual differences.

Details

This function uses a score distribution to test whether there are individual differences in ability. First, it estimates ability based on the score distribution. Then, the observed distribution is compared to the one expected from the single estimated ability. The data are typically from one booklet but can also consist of the intersection (i.e., the common items) of two or more booklets. If the intersection is empty (no common items for all persons), the function will exit with an error message.

Examples

Run this code
# NOT RUN {
db = start_new_project(verbAggrRules, "verbAggression.db")
add_booklet(db, verbAggrData, "agg")
dd = individual_differences(db)
print(dd)
plot(dd)

close_project(db)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab