Learn R Programming

gridsampler (version 0.6)

sim_n_persons_x_times_many_n: Simulate for different n

Description

Creates simulation results for different n. Runs sim_n_persons_x_times for different n.

Usage

sim_n_persons_x_times_many_n(prob, n = seq(10, 80, by = 10), a = 7, ap = rep(1/length(a), length(a)), times = 100, progress = "text")

Arguments

prob
Probability to draw a construct from a certain category. Length of vector determines number of categories.
n
Number of persons, i.e. grids to sample.
a
Number of constructs to be sampled.
ap
Probabilities for each number of attributes to be sampled.
times
Number of times to repeat each simulation.
progress
Type of progress bar shown during simulation.

Value

A result dataframe.

See Also

Other Simulations: sim_n_persons_x_times, sim_n_persons, sim_one_person

Examples

Run this code
## Not run: 
# r <- sim_n_persons_x_times_many_n(dexp(1:30, .05), a = 7, times = 100)
# r <- sim_n_persons_x_times_many_n(dexp(1:30, .05), a = 5:7, ap = 1:3, times = 100)
# ## End(Not run)

Run the code above in your browser using DataLab