Analysis in R: Introduction to Probability Distribution Commands
This section introduces commands for the normal, binomial, chi-square, and F distributions.
<おすすめのRに関する書籍です>
Rで学ぶプログラミングの基礎の基礎 | 舟尾暢男
統計以前のプログラミングの考え方から始めるRの入門書。つまずきやすい部分を丁寧に扱う。
Command
See the command and package help for details.
###normal distribution#####
Nomal <- dnorm(x = 1:10, mean = 5, sd = 1)
#Plot
plot(1:10, Nomal, type = "l")
#######
###binomial distribution#####
Binomial <- dbinom(x = 1:20, size = 30, prob = 0.25)
#Plot
plot(1:20, Binomial, type = "l")
#######
###chi-square distribution#####
Chisquare <- dchisq(x = 1:20, df = 10)
#Plot
plot(1:20, Chisquare, type = "l")
#######
###F distribution#####
FDist <- df(x = 1:20, df1 = 10, df2 = 20)
#Plot
plot(1:20, FDist, type = "l")
#######I hope this makes your analysis a little easier !!
<おすすめのRに関する書籍です>
Rによる多変量解析入門
主成分分析・判別分析・クラスタリングなど、多変量解析の主要手法を理論と実践の両面から解説。
スポンサーリンク