Friday, June 26, 2015

Bagging is a poor man's Bayes!

This is from a talk of Trevor Hastie. Bagging or bootstrap aggregation averages a noisy fitted function refit to many bootstrap samples to reduce its variance.

Wednesday, June 10, 2015

Installing Reshape2 package into R on Kubuntu

I was trying to install reshape2 package into R 3.1.2 on Kubuntu. I got error messages like
  shared object ‘stringi.so’ not found
and tried to install package "stringr". I have found that I needed to install package "devtools" and after that using install_github command in that package, I must install stringr from github.
I tried installling devtools but it gave a lot of errors about dependencies about

libssl-dev,
libcurl4-openssl-dev
libxml2-dev
I installed dependencies by hand curl and other packages in devtools like git2r are installed except few ones like stringr. 
After reading some web pages, I realised that I need to install "stringi" package.
At the end I succeeded to install stringr and its dependents (roxygen2,httr) and finally devtools!

Anyway you dont need to install devtools when you need reshape2. It just suffices to install stingi package for installing reshape2. I didnt realise before that there is a package named "stringi" but thought that I need to install package "stringr" for the requirement of stringi.so object.