moonman239
- 276
- 0
I have a dataset in R. What I want to do is simulate a variable that holds the same distribution. How do I do this?
mathman said:Are you interested in a computer simulation?
mathman said:Look up Monte Carlo method.
moonman239 said:I have a dataset in R. What I want to do is simulate a variable that holds the same distribution. How do I do this?
SW VandeCarr said:You need a random number generator where you can specify the distribution parameters for N simulations.
moonman239 said:I know. Is there a function to do that in R? I know you can simulate variables from widely-known distributions (normal, Poisson, uniform, chi-square, etc.)