Package: lsasim 2.1.5

Waldir Leoncio

lsasim: Functions to Facilitate the Simulation of Large Scale Assessment Data

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) <doi:10.1186/s40536-018-0068-8>.

Authors:Tyler Matta [aut], Leslie Rutkowski [aut], David Rutkowski [aut], Yuan-Ling Linda Liaw [aut], Kondwani Kajera Mughogho [ctb], Waldir Leoncio [aut, cre], Sinan Yavuz [ctb], Paul Bailey [ctb]

lsasim_2.1.5.tar.gz
lsasim_2.1.5.zip(r-4.5)lsasim_2.1.5.zip(r-4.4)lsasim_2.1.5.zip(r-4.3)
lsasim_2.1.5.tgz(r-4.4-any)lsasim_2.1.5.tgz(r-4.3-any)
lsasim_2.1.5.tar.gz(r-4.5-noble)lsasim_2.1.5.tar.gz(r-4.4-noble)
lsasim_2.1.5.tgz(r-4.4-emscripten)lsasim_2.1.5.tgz(r-4.3-emscripten)
lsasim.pdf |lsasim.html
lsasim/json (API)
NEWS

# Install 'lsasim' in R:
install.packages('lsasim', repos = c('https://tmatta.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/tmatta/lsasim/issues

Datasets:

On CRAN:

29 exports 6 stars 6.11 score 6 dependencies 18 scripts 821 downloads

Last updated 5 months agofrom:43a70fe0f6. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 18 2024
R-4.5-winOKSep 18 2024
R-4.5-linuxOKSep 18 2024
R-4.4-winOKSep 18 2024
R-4.4-macOKSep 18 2024
R-4.3-winOKSep 18 2024
R-4.3-macOKSep 18 2024

Exports:beta_genblock_designbooklet_designbooklet_samplebrrcalc_replicate_weightscluster_gencluster_gen_separatecluster_gen_togetherconvert_vector_to_listcor_gencov_gendraw_cluster_structuregen_variable_nintraclass_corirt_genitem_genjackknifelabel_respondentsproportion_genpt_bis_conversionquestionnaire_genrangesrecalc_final_weightsreplicate_varresponse_gensample_fromselecttrim_sample

Dependencies:admiscclilatticeMatrixmvtnormpolycor

Ex. 1 - Background questionnaire generation

Rendered fromex1_BackgroundQuestionnaireGeneration.Rmdusingknitr::rmarkdownon Sep 18 2024.

Last update: 2024-05-06
Started: 2021-06-23

Ex. 2 - Understanding the elements in output

Rendered fromex2_UnderstandingElementsOutput.Rmdusingknitr::rmarkdownon Sep 18 2024.

Last update: 2021-06-23
Started: 2021-06-23

Ex. 3 - Retrieving regression coefficients

Rendered fromex3_RetrievingRegressionCoefficients.Rmdusingknitr::rmarkdownon Sep 18 2024.

Last update: 2021-06-23
Started: 2021-06-23

Ex. 4 - Generating cluster samples

Rendered fromex4_GeneratingClusterSamples.Rmdusingknitr::rmarkdownon Sep 18 2024.

Last update: 2024-05-06
Started: 2021-06-23

Readme and manuals

Help Manual

Help pageTopics
Prints welcome message on package load.onAttach
Generate an ANOVA table for LSASIM clustersanova.lsasimcluster
Attribute Labels in Hierarchical Structureattribute_cluster_labels
Generate regression coefficientsbeta_gen
Assignment of test items to blocksblock_design
Assignment of item blocks to test bookletsbooklet_design
Assignment of test booklets to test takersbooklet_sample
Generate replicates of a dataset using Balanced Repeated Replicationbrr
Calculate ñcalc_n_tilde
Calculate replicate weights and summary statisticscalc_replicate_weights
Calculate Standard Error of Intraclass Correlationcalc_se_rho
Calculate variance between classescalc_var_between
Calculate the total variancecalc_var_tot
Calculate variance within classescalc_var_within
Check if an error condition is satisfiedcheck_condition
Checks if provided parameters are ignoredcheck_ignored_parameters
Check class of n or Ncheck_n_N_class
Check if List is Validcheck_valid_structure
Generate cluster samplecluster_gen
Generate cluster samples with individual questionnairescluster_gen_separate
Generate cluster samples with lowest-level questionnairescluster_gen_together
Print messages about clusterscluster_message
Convert Vector to Expanded Listconvert_vector_to_list
Generation of random correlation matrixcor_gen
Generation of covariance matricescov_gen
Generate latent regression covariance matrixcov_yfz_gen
Setup full YXW covariance matrixcov_yxw_gen
Generate analytical covariance matrixcov_yxz_gen
Customize Summarycustomize_summary
Draw Cluster Structuredraw_cluster_structure
Generates cat_prop for questionnaire_gengen_cat_prop
Randomly generate the quantity of background variablesgen_variable_n
Generate n_X and n_W for clustersgen_X_W_cluster
Intraclass correlationintraclass_cor
Simulate item responses from an item response modelirt_gen
Generation of item parameters from uniform distributionsitem_gen
Generate replicates of a dataset using Jackknifejackknife
Label respondentslabel_respondents
Randomly generate a matrix of factor loadingslambda_gen
lsasim: A package for simulating large scale assessment datalsasim-package lsasim
PISA 2012 mathematics item - item block indicator matrixpisa2012_math_block
PISA 2012 mathematics item block - test booklet indicator matrixpisa2012_math_booklet
Item parameter estimates for 2012 PISA mathematics assessmentpisa2012_math_item
Correlation matrix from the PISA 2012 background questionnairepisa2012_q_cormat
Marginal proportions from the PISA 2012 background questionnairepisa2012_q_marginal
Pluralize wordspluralize
Print the ANOVA tableprint_anova
Generation of random cumulative proportionsproportion_gen
Analytical point-biserial conversionpt_bis_conversion
Generation of ordinal and continuous variablesquestionnaire_gen
Generation of ordinal and continuous variablesquestionnaire_gen_family
Generation of ordinal and continuous variablesquestionnaire_gen_polychoric
Defines vector as rangeranges
Recalculate final weightsrecalc_final_weights
Sampling variance of the mean for replicationsreplicate_var
Generation of item response data using a rotated block designresponse_gen
Generate data from a Zero-truncated Poissonrzeropois
Sample from population structuresample_from
Sample from rangesample_within_range
Transform regular vector into selection vectorselect
Split variables in cat_propsplit_cat_prop
Dataset summary statisticssummary_2
Summarizes clusterssummary.lsasimcluster
Trim sampletrim_sample
Wrapper-functions for check_conditionvalidate_questionnaire_gen
Weight responsesweight_responses
Whitelist messagewhitelist_message