R strata()

Jmnote bot (토론 | 기여)님의 2021년 5월 12일 (수) 23:00 판 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요[ | ]

R strata()
  • "Stratified Sampling"
method
srswor (기본값) simple random sampling without replacement → 비복원 단순랜덤샘플링
srswr simple random sampling with replacement → 복원 단순랜덤샘플링
poisson Poisson sampling → 포아송 샘플링
systematic systematic sampling → 체계적 샘플링

2 예시[ | ]

summary(warpbreaks)
table(warpbreaks$wool,warpbreaks$tension)
library(sampling)
s <- strata(warpbreaks,c("wool","tension"),size=c(2,2,2,2,2,2),method="srswor")
s
getdata(warpbreaks, s)

3 같이 보기[ | ]

4 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}