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言語ではじめるプログラミングとデータ分析 | 馬場 真哉
Rの文法から始めて、データ分析の基礎までひとつながりで学べる入門書。
スポンサーリンク