sim_one_person: Simulate a single grid

Description Usage Arguments See Also Examples

View source: R/simulation.R

Description

Simulate a single grid

Usage

1
sim_one_person(prob, a = 10)

Arguments

prob

Probability to draw a construct from a certain category.

a

Number of constructs to be sampled.

See Also

Other Simulations: sim_n_persons_x_times_many_n, sim_n_persons_x_times, sim_n_persons

Examples

1
2
3
# draw from exponential distribution
p <- dexp(1:20, rate = .1)
sim_one_person(p, a = 10)

markheckmann/gridsampler documentation built on Feb. 10, 2020, 3:41 a.m.