Skip to content

scripty: Automated Syntax Generation of Measurement Models

License

Notifications You must be signed in to change notification settings

jsakaluk/scripty

Repository files navigation

scripty

Lifecycle: experimental CRAN status

The goal of scripty is to help automate the specification and comparison of different generating psychometric models for indicators of psychological constructs. The package also aims to help researchers calculate scores based on their determined psychometric model for use in subsequent analyses. This package is very early in its development, so functionality is likely to expand/change dramatically/suddenly.

Installation

You can install the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("jsakaluk/scripty")

Examples

library(dplyr) 
library(psych)
library(scripty)
data(bfi)

#Fit congeneric factor model to bfi agreeableness items
agree.mod <- congeneric(dplyr::select(bfi, A1:A5))

#Calculate H and Omega indexes of reliability: 
reliability(agree.mod)

#Extract factor score for agreeableness as a predictor
bfi <- scoreit(dplyr::select(bfi, A1:A5), bfi, scorerole = "predictor")

#Preview first few A1:A5 and factor scores
head(select(bfi, A1:A5, out.score))

About

scripty: Automated Syntax Generation of Measurement Models

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages