Generate Pareto random variate in R


/ Published in: R
Save to your folder(s)

xm = minimum, k=pareto index


Copy this code and paste it in your HTML
  1. rpareto = function(n,xm,k) { (1-runif(n))^(-1/k) * xm }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.