Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
この質問は、こことここの投稿に非常に密接に関連しています。
確率変数 X = Gamma(k, theta) で、Y = log(X) のシミュレーションに興味があるとしましょう。
それを可能にするRパッケージを提案してもらえますか(またはRコードを提案してください)?事前にどうもありがとうございました!
サンプルを抽出する必要がある場合は、次Yを試してください。
Y
#set the number of samples n<-10000 Y<-log(rgamma(n,k,theta))
次に、たとえば、hist(Y)分布を見ることができます。
hist(Y)