r:lecture
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
r:lecture [2015/11/05 10:03] – hkimscil | r:lecture [2015/11/05 10:28] – hkimscil | ||
---|---|---|---|
Line 24: | Line 24: | ||
qqline(x) | qqline(x) | ||
+ | ====== 함수만들기 ====== | ||
+ | se = function(x) sd(x)/ | ||
+ | |||
+ | ====== 시뮬레이션 ====== | ||
+ | set.seed(1234) | ||
+ | height = rnorm(n=100000, | ||
+ | mean(height) | ||
+ | |||
+ | |||
+ | M=NULL | ||
+ | V=NULL | ||
+ | for (i in 1:10000) { | ||
+ | x=sample(height, | ||
+ | M[i]=mean(x) | ||
+ | V[i]=var(x) | ||
+ | } | ||
r/lecture.txt · Last modified: 2015/11/05 14:19 by hkimscil