Learn R Programming

lsasim (version 2.1.6)

Functions to Facilitate the Simulation of Large Scale Assessment Data

Description

Provides functions to simulate data from large-scale educational assessments, including background questionnaire data and cognitive item responses that adhere to a multiple-matrix sampled design. The theoretical foundation can be found on Matta, T.H., Rutkowski, L., Rutkowski, D. et al. (2018) .

Copy Link

Version

Install

install.packages('lsasim')

Monthly Downloads

252

Version

2.1.6

License

GPL-3

Maintainer

Waldir Leoncio

Last Published

January 22nd, 2025

Functions in lsasim (2.1.6)

calc_var_between

Calculate variance between classes
check_valid_structure

Check if List is Valid
cluster_gen_separate

Generate cluster samples with individual questionnaires
calc_var_tot

Calculate the total variance
cluster_gen

Generate cluster sample
cor_gen

Generation of random correlation matrix
.onAttach

Prints welcome message on package load
label_respondents

Label respondents
irt_gen

Simulate item responses from an item response model
draw_cluster_structure

Draw Cluster Structure
item_gen

Generation of item parameters from uniform distributions
cov_gen

Generation of covariance matrices
jackknife

Generate replicates of a dataset using Jackknife
cov_yxz_gen

Generate analytical covariance matrix
customize_summary

Customize Summary
cluster_message

Print messages about clusters
convert_vector_to_list

Convert Vector to Expanded List
gen_variable_n

Randomly generate the quantity of background variables
cluster_gen_together

Generate cluster samples with lowest-level questionnaires
pisa2012_math_item

Item parameter estimates for 2012 PISA mathematics assessment
gen_cat_prop

Generates cat_prop for questionnaire_gen
gen_X_W_cluster

Generate n_X and n_W for clusters
select

Transform regular vector into selection vector
sample_within_range

Sample from range
pisa2012_math_booklet

PISA 2012 mathematics item block - test booklet indicator matrix
recalc_final_weights

Recalculate final weights
split_cat_prop

Split variables in cat_prop
ranges

Defines vector as range
pisa2012_math_block

PISA 2012 mathematics item - item block indicator matrix
pisa2012_q_cormat

Correlation matrix from the PISA 2012 background questionnaire
questionnaire_gen

Generation of ordinal and continuous variables
pt_bis_conversion

Analytical point-biserial conversion
summary.lsasimcluster

Summarizes clusters
cov_yfz_gen

Generate latent regression covariance matrix
intraclass_cor

Intraclass correlation
replicate_var

Sampling variance of the mean for replications
response_gen

Generation of item response data using a rotated block design
proportion_gen

Generation of random cumulative proportions
summary_2

Dataset summary statistics
print_anova

Print the ANOVA table
trim_sample

Trim sample
rzeropois

Generate data from a Zero-truncated Poisson
whitelist_message

Whitelist message
sample_from

Sample from population structure
cov_yxw_gen

Setup full YXW covariance matrix
lambda_gen

Randomly generate a matrix of factor loadings
lsasim

lsasim: A package for simulating large scale assessment data
pisa2012_q_marginal

Marginal proportions from the PISA 2012 background questionnaire
pluralize

Pluralize words
questionnaire_gen_family

Generation of ordinal and continuous variables
questionnaire_gen_polychoric

Generation of ordinal and continuous variables
validate_questionnaire_gen

Wrapper-functions for check_condition
weight_responses

Weight responses
brr

Generate replicates of a dataset using Balanced Repeated Replication
calc_replicate_weights

Calculate replicate weights and summary statistics
beta_gen

Generate regression coefficients
calc_se_rho

Calculate Standard Error of Intraclass Correlation
calc_n_tilde

Calculate ñ
anova.lsasimcluster

Generate an ANOVA table for LSASIM clusters
attribute_cluster_labels

Attribute Labels in Hierarchical Structure
block_design

Assignment of test items to blocks
booklet_sample

Assignment of test booklets to test takers
booklet_design

Assignment of item blocks to test booklets
calc_var_within

Calculate variance within classes
check_condition

Check if an error condition is satisfied
check_ignored_parameters

Checks if provided parameters are ignored
check_n_N_class

Check class of n or N