R version 4.2.1 (2022-06-23) -- "Funny-Looking Kid" Copyright (C) 2022 The R Foundation for Statistical Computing Platform: aarch64-apple-darwin20 (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > pkgname <- "conogive" > source(file.path(R.home("share"), "R", "examples-header.R")) > options(warn = 1) > library('conogive') > > base::assign(".oldSearch", base::search(), pos = 'CheckExEnv') > base::assign(".old_wd", base::getwd(), pos = 'CheckExEnv') > cleanEx() > nameEx("conogive") > ### * conogive > > flush(stderr()); flush(stdout()) > > ### Name: conogive > ### Title: Estimate a Congeneric Normal-Ogive Model > ### Aliases: conogive > > ### ** Examples > > if(require("psychTools")) { + extraversion = psychTools::bfi[c("E1", "E2", "E3", "E4", "E5")] + extraversion[, "E1"] = 7 - extraversion[, "E1"] # Reverse-coded item. + extraversion[, "E2"] = 7 - extraversion[, "E2"] # Reverse-coded item. + fit = conogive(extraversion) + } Loading required package: psychTools > > > > cleanEx() detaching ‘package:psychTools’ > nameEx("predict.conogive") > ### * predict.conogive > > flush(stderr()); flush(stdout()) > > ### Name: predict.conogive > ### Title: Predict Method for Conogive Objects > ### Aliases: predict.conogive > > ### ** Examples > > if(require("psychTools")) { + extraversion = psychTools::bfi[c("E1", "E2", "E3", "E4", "E5")] + extraversion[, "E1"] = 7 - extraversion[, "E1"] # Reverse-coded item. + extraversion[, "E2"] = 7 - extraversion[, "E2"] # Reverse-coded item. + object = conogive(extraversion) + hist(predict(object, extraversion)) # Plot distribution of predictions. + } Loading required package: psychTools > > > > cleanEx() detaching ‘package:psychTools’ > nameEx("reliability") > ### * reliability > > flush(stderr()); flush(stdout()) > > ### Name: reliability > ### Title: Calculate the Ordinal Reliabiltiy > ### Aliases: reliability ordinal_r theoretical_ordinal_r > ### theoretical_ordinal_alpha > > ### ** Examples > > if(require("psychTools")) { + agreeableness = psychTools::bfi[c("A1", "A2", "A3", "A4", "A5")] + agreeableness[, "A1"] = 7 - agreeableness[, "A1"] # Reverse-coded item. + object = conogive(agreeableness) + ordinal_r(object, weights = "equal") # 0.6394087 + theoretical_ordinal_alpha(object) # 0.7589922 + theoretical_ordinal_r(object, weights = "equal") # 0.7689878 + ordinal_r(object, weights = "optimal") # 0.6763742 + theoretical_ordinal_r(object) # 0.8101108 + } Loading required package: psychTools [1] 0.8101107 > > > > ### *