knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

edmdata

R build status Package-License CRAN status

The goal of edmdata R data package is to provide a set of assessment data sets for psychometric modeling.

Installation

The edmdata package is available on both CRAN and GitHub. The CRAN version is considered stable while the GitHub version is in a state of development and may break.

You can install the stable version of the edmdata package with:

#| label: cran-installation
#| eval: false
install.packages("edmdata")

For the development version, you can install the edmdata package from GitHub with:

#| label: gh-installation
#| eval: false

# install.packages("remotes")
remotes::install_github("tmsalab/edmdata")

Using data in the package

There are two ways to access the data contained within this package.

The first is to load the package itself and type the name of a data set. This approach takes advantage of R’s lazy loading mechanism, which avoids loading the data until it is used in R session. For details on how lazy loading works, please see Section 1.17: Lazy Loading of the R Internals manual.

# Load the `edmdata` package
library("edmdata")

# See the first 10 observations of the `items_revised_psvtr` dataset
head(items_revised_psvtr)

# View the help documentation for `items_revised_psvtr`
?items_revised_psvtr

The second approach is to use the data() command to load data on the fly without loading the package. After using data(), the data set will be available to use under the given name.

# Loading `items_revised_psvtr` without a `library(edmdata)` call
data("items_revised_psvtr", package = "edmdata")

# See the first 10 observations of the `items_revised_psvtr` dataset
head(items_revised_psvtr)

# View the help documentation for `items_revised_psvtr`
?items_revised_psvtr

Data Sets Included

#| echo: false
library(edmdata)

Build Scripts

Want to see how each data set was imported? Check out the data-raw folder!

Authors

James Joseph Balamuta, Steven Andrew Culpepper, Jeffrey Douglas

Citing the edmdata package

To ensure future development of the package, please cite edmdata package if used during an analysis or simulation study. Citation information for the package may be acquired by using in R:

citation("edmdata")

License

MIT

References



tmsalab/ecdmdata documentation built on Oct. 9, 2024, 9:46 a.m.