This function can be used to randomly delete artifact from databases produced by the simulate_d_database
function.
Deletion of artifacts can be performed in either a study-wise fashion for complete missingness within randomly selected studies or element-wise missingness for completely random deletion of artifacts in the database.
Deletion can be applied to reliability estimates and/or u ratios.
sparsify_simdat_d(data_obj, prop_missing, sparify_arts = c("rel", "u"),
study_wise = TRUE)
Object created by the "simdat_d_database" function.
Proportion of studies in from which artifact information should be deleted.
Vector of codes for the artifacts to be sparsified: "rel" for reliabilities, "u" for u ratios, or c("rel", "u") for both.
Logical scalar argument determining whether artifact deletion should occur for all variables in a study (TRUE
) or randomly across variables within studies (FALSE
).
A sparsified database