sim_n_persons_x_times_many_n: Simulate for different n

Description Usage Arguments Value See Also Examples

Description

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

Usage

1
2
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

1
2
3
4
5
## 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)

gridsampler documentation built on May 2, 2019, 5:36 a.m.