Articles by Giovanni

Do you know Sparse Principal Components Analysis, Mr Trump?

October 3, 2016 | 0 Comments

While writing a paper on sparse principal component analysis I came across an old dataset containing 1990s socio-economic data and rate of violent crime for 1994 communities in the US. I am not a sociologist, so my analysis may be superficial, but I found the results interesting with respect to Mr ...
[Read more...]

Relative time microbenchmark

August 28, 2016 | 0 Comments

Microbenchmark is a very useful function for timing the execution time of one or more programs. I often use it to compare different programs. So I created a function that produces the output relative to the time of one of the programs being tested.Snippet available at GitHubDownload zip For ...
[Read more...]

Computing the mode in R

July 2, 2016 | 0 Comments

In R there isn't a function for computing the mode. This statistic is not often used but it is very useful for categorical and discrete data.The mode is defined as "the most common value occurring in a set of observations." Mathematically, for numerical data, the mode is the centre ...
[Read more...]

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)