quest0.2.1 package

Prepare Questionnaire Data for Analysis

add_sig_cor

Add Significance Symbols to a Correlation Matrix

add_sig

Add Significance Symbols to a (Atomic) Vector, Matrix, or Array

agg_dfm

Data Information by Group

agg

Aggregate an Atomic Vector by Group

aggs

Aggregate Data by Group

amd_bi

Amount of Missing Data - Bivariate (Pairwise Deletion)

amd_multi

Amount of Missing Data - Multivariate (Listwise Deletion)

amd_uni

Amount of Missing Data - Univariate

auto_by

Autoregressive Coefficient by Group

ave_dfm

Repeated Group Statistics for a Data-Frame

boot_ci

Bootstrapped Confidence Intervals from a Matrix of Coefficients

colMeans_if

Column Means Conditional on Frequency of Observed Values

gtheory_ml

Generalizability Theory Reliability of a Multilevel Score

gtheory

Generalizability Theory Reliability of a Score

gtheorys_ml

Generalizability Theory Reliability of Multiple Multilevel Scores

gtheorys

Generalizability Theory Reliability of Multiple Scores

icc_11

Intraclass Correlation for Multilevel Analysis: ICC(1,1)

icc_all_by

All Six Intraclass Correlations by Group

ncases

Number of Cases in Data

ngrp

Number of Groups in Data

mean_test

Test for Sample Mean Against Mu (one-sample t-test)

means_change

Mean Changes Across Two Timepoints For Multiple PrePost Pairs of Varia...

means_compare

Mean differences for multiple variables across 3+ independent groups (...

means_diff

Mean differences across two independent groups (independent two-sample...

means_test

Test for Multiple Sample Means Against Mu (one-sample t-tests)

recode2other

Recode Unique Values in a Character Vector to 0ther (or NA)

by2

Apply a Function to Data by Group

center_by

Centering and/or Standardizing a Numeric Vector by Group

center

Centering and/or Standardizing a Numeric Vector

centers_by

Centering and/or Standardizing Numeric Data by Group

centers

Centering and/or Standardizing Numeric Data

change_by

Change Scores from a Numeric Vector by Group

change

Change Score from a Numeric Vector

changes_by

Change Scores from Numeric Data by Group

changes

Change Scores from Numeric Data

colNA

Frequency of Missing Values by Column

colSums_if

Column Sums Conditional on Frequency of Observed Values

composite

Composite Reliability of a Score

composites

Composite Reliability of Multiple Scores

confint2.boot

Bootstrapped Confidence Intervals from a boot Object

confint2.default

Confidence Intervals from Parameter Estimates and Standard Errors

confint2

Confidence Intervals from Statistical Information

cor_by

Correlation Matrix by Group

cor_miss

Point-biserial Correlations of Missingness

cor_ml

Multilevel Correlation Matrices

corp_by

Bivariate Correlations with Significant Symbols by Group

corp_miss

Point-biserial Correlations of Missingness With Significant Symbols

corp_ml

Multilevel Correlation Matrices with Significant Symbols

corp

Bivariate Correlations with Significant Symbols

covs_test

Covariances Test of Significance

cronbach

Cronbach's Alpha of a Set of Variables/Items

cronbachs

Cronbach's Alpha for Multiple Sets of Variables/Items

decompose

Decompose a Numeric Vector by Group

decomposes

Decompose Numeric Data by Group

deff

Design Effect from Multilevel Numeric Vector

deffs

Design Effects from Multilevel Numeric Data

describe_ml

Multilevel Descriptive Statistics

dot-cronbach

Bootstrap Function for cronbach() Function

dot-cronbachs

Bootstrap Function for cronbachs() Function

dot-gtheory

Bootstrap Function for gtheory() Function

dot-gtheorys

Bootstrap Function for gtheorys() Function

dum2nom

Dummy Variables to a Nominal Variable

freq_by

Univariate Frequency Table By Group

freq

Univariate Frequency Table

freqs_by

Multiple Univariate Frequency Tables

freqs

Multiple Univariate Frequency Tables

iccs_11

Intraclass Correlation for Multiple Variables for Multilevel Analysis:...

length_by

Length of a (Atomic) Vector by Group

lengths_by

Length of Data Columns by Group

long2wide

Reshape Multiple Scores From Long to Wide

make.dummy

Make Dummy Columns

mean_if

Mean Conditional on Minimum Frequency of Observed Values

make.dumNA

Make Dummy Columns For Missing Data.

make.fun_if

Make a Function Conditional on Frequency of Observed Values

make.latent

Make Model Syntax for a Latent Factor in Lavaan

make.product

Make Product Terms (e.g., interactions)

mean_change

Mean Change Across Two Timepoints (dependent two-samples t-test)

mean_compare

Mean differences for a single variable across 3+ independent groups (o...

mean_diff

Mean difference across two independent groups (independent two-samples...

mode2

Statistical Mode of a Numeric Vector

n_compare

Test for Equal Frequency of Values (chi-square test of goodness of fit...

ncases_by

Number of Cases in Data by Group

ncases_desc

Describe Number of Cases in Data by Group

ncases_ml

Multilevel Number of Cases

nhst

Null Hypothesis Significance Testing

nom2dum

Nominal Variable to Dummy Variables

nrow_by

Number of Rows in Data by Group

nrow_ml

Multilevel Number of Rows

partial.cases

Find Partial Cases

pomp

Recode a Numeric Vector to Percentage of Maximum Possible (POMP) Units

pomps

Recode Numeric Data to Percentage of Maximum Possible (POMP) Units

prop_compare

Proportion Comparisons for a Single Variable across 3+ Independent Gro...

prop_diff

Proportion Difference for a Single Variable across Two Independent Gro...

prop_test

Test for Sample Proportion Against Pi (chi-square test of goodness of ...

props_compare

Proportion Comparisons for Multiple Variables across 3+ Independent Gr...

props_diff

Proportion Difference of Multiple Variables Across Two Independent Gro...

props_test

Test for Multiple Sample Proportion Against Pi (Chi-square Tests of Go...

quest-package

Pre-processing Questionnaire Data

recodes

Recode Data

renames

Rename Data Columns from a Codebook

reorders

Reorder Levels of Factor Data

revalid

Recode Invalid Values from a Vector

revalids

Recode Invalid Values from Data

reverse

Reverse Code a Numeric Vector

reverses

Reverse Code Numeric Data

rowMeans_if

Row Means Conditional on Frequency of Observed Values

winsor

Winsorize a Numeric Vector

rowNA

Frequency of Missing Values by Row

rowsNA

Frequency of Multiple Sets of Missing Values by Row

rowSums_if

Row Sums Conditional on Frequency of Observed Values

score

Observed Unweighted Scoring of a Set of Variables/Items

scores

Observed Unweighted Scoring of Multiple Sets of Variables/Items

shift_by

Shift a Vector (i.e., lag/lead) by Group

shift

Shift a Vector (i.e., lag/lead)

shifts_by

Shift Data (i.e., lag/lead) by Group

shifts

Shift Data (i.e., lag/lead)

sum_if

Sum Conditional on Minimum Frequency of Observed Values

summary_ucfa

Summary of a Unidimensional Confirmatory Factor Analysis

tapply2

Apply a Function to a (Atomic) Vector by Group

ucfa

Unidimensional Confirmatory Factor Analysis

valid_test

Test for Invalid Elements in a Vector

valids_test

Test for Invalid Elements in Data

vecNA

Frequency of Missing Values in a Vector

wide2long

Reshape Multiple Sets of Variables From Wide to Long

winsors

Winsorize Numeric Data

Offers a suite of functions to prepare questionnaire data for analysis (perhaps other types of data as well). By data preparation, I mean data analytic tasks to get your raw data ready for statistical modeling (e.g., regression). There are functions to investigate missing data, reshape data, validate responses, recode variables, score questionnaires, center variables, aggregate by groups, shift scores (i.e., leads or lags), etc. It provides functions for both single level and multilevel (i.e., grouped) data. With a few exceptions (e.g., ncases()), functions without an "s" at the end of their primary word (e.g., center_by()) act on atomic vectors, while functions with an "s" at the end of their primary word (e.g., centers_by()) act on multiple columns of a data.frame.

  • Maintainer: David Disabato
  • License: GPL (>= 2)
  • Last published: 2025-09-14