# Generate factor data
two_factor <- simulate_factors(
factors = 2, # factors = 2
variables = 6, # variables per factor = 6
loadings = 0.55, # loadings between = 0.45 to 0.65
cross_loadings = 0.05, # cross-loadings N(0, 0.05)
correlations = 0.30, # correlation between factors = 0.30
sample_size = 1000, # number of cases = 1000
variable_categories = 5 # 5-point Likert scale
)
# Add wording effects using acquiescence method
two_factor_acquiescence <- add_wording_effects(
lf_object = two_factor,
proportion_negative = 0.50,
proportion_biased_cases = 0.10,
method = "acquiescence"
)
# Add wording effects using difficulty method
two_factor_difficulty <- add_wording_effects(
lf_object = two_factor,
proportion_negative = 0.50,
proportion_biased_cases = 0.10,
method = "difficulty"
)
# Add wording effects using random careless method
two_factor_random_careless <- add_wording_effects(
lf_object = two_factor,
proportion_negative = 0.50,
proportion_biased_cases = 0.10,
method = "random_careless"
)
# Add wording effects using straight line method
two_factor_random_careless <- add_wording_effects(
lf_object = two_factor,
proportion_negative = 0.50,
proportion_biased_cases = 0.10,
method = "straight_line"
)
# Add wording effects using mixed method
two_factor_mixed <- add_wording_effects(
lf_object = two_factor,
proportion_negative = 0.50,
proportion_biased_cases = 0.10,
method = "mixed"
)
# Add wording effects using acquiescence and straight line method
two_factor_multiple <- add_wording_effects(
lf_object = two_factor,
proportion_negative = 0.50,
proportion_biased_cases = 0.10,
method = c("acquiescence", "straight_line")
)
Run the code above in your browser using DataLab