Posted By

xenonite on 07/16/08


Tagged

random R pareto variate


Versions (?)

Generate Pareto random variate in R


 / Published in: R
 

xm = minimum, k=pareto index

  1. rpareto = function(n,xm,k) { (1-runif(n))^(-1/k) * xm }

Report this snippet  

You need to login to post a comment.