R code for linear regression

To perform a linear regression as mentioned in the main article, simply copy and paste the script below into your R console once you have started up the program, and then modify it to analyse your own data.

rank freq plot(rank,freq,log="xy",xlab="Rank",ylab="Frequency") xl yl est summary(est) p px points(rank,px,type="l")

Back to the main article.