今週(11/8-15)のメモから

RStudioの.Rprofile

グローバルには設定できず、プロジェクト単位で設定するらしい。

http://stackoverflow.com/questions/26525335/load-both-local-and-global-rprofile-in-an-rstudio-project

Reduceとdo.callの使い分け

Use Reduce when you are doing a Reduce operation (read up on Functional Programming). Use do.call when you want to call a function with parameters in a list.

とのことです。違いは以下の通り。

# Reduceはlistの数-1回、指定した関数を呼び出す
rbind( a, rbind( b, rbind( c, rbind( d, e ) ) ) ) 
# do.callは1回だけ
rbind(a,b,c,d,e) 

qiitaのAPI

このAPI使ってRStudioからqiitaにシームレスに投稿したい。

http://qiita.com/katabamisan/items/925e47cb2e275337a99c

ガンマ分布の使いどころ

あまり語られることのないガンマ分布の使いどころがまとめられている。

http://stats.stackexchange.com/questions/67547/when-to-use-gamma-glms

ポイントとしては

・skewed positive data に使ったらうまくいくことが多かった。

・モデル診断がむずい。QQプロットを適用しづらい。

・ガンマ分布を使ったモデリングは正直そんなに普及していない。

・他の事例はhydrology and geomorphologyで探せ。