samplesize

R 패키지 메타데이터와 수집 신호를 모아 봅니다.

Packages / CRAN / samplesize

samplesize

v0.2-4
samplesize
Repository CRANLicense GPL (>= 2)Lifecycle activeNeeds compilation no
DOI
10.32614/CRAN.package.samplesize
Task views
Clinical Trial Design, Monitoring, Analysis and Reporting

Core Signals

첫 화면에서 판단해야 할 수집 신호를 먼저 배치합니다.

1
Task views
Clinical Trial Design, Monitoring, Analysis and Reporting

Supported Backends

DESCRIPTION에서 감지한 backend 관련 package입니다.

0
backend package 신호가 없습니다.

Quick Facts

기본 메타데이터를 작은 카드와 토큰으로 압축합니다.

profile
Repository
CRAN
Version
0.2-4
License
GPL (>= 2)
Lifecycle
active
Needs compilation
no
Last observed
2026-05-30
CRAN
cran.r-project.org/package=samplesize

수집 소스별 패키지 정보

1개 소스
CRAN
0.2-4
2026-05-30
License
GPL (>= 2)
Needs compilation
no
Lifecycle
active
Last observed
2026-05-30 10:45:11

패키지 페이지

All links
19
Repository
CRAN
Version
0.2-4
Collected
2026-05-17 16:17:00
Package page
https://cran.r-project.org/web/packages/samplesize/index.html
DOI
10.32614/CRAN.package.samplesize
CRAN checks
https://cran.r-project.org/web/checks/check_results_samplesize.html
Reference HTML
https://cran.r-project.org/web/packages/samplesize/refman/samplesize.html
Reference PDF
https://cran.r-project.org/web/packages/samplesize/samplesize.pdf
Source package
https://cran.r-project.org/src/contrib/samplesize_0.2-4.tar.gz
Archive
https://CRAN.R-project.org/src/contrib/Archive/samplesize
In views
ClinicalTrials
Page fields
Author
Ralph Scherer
BugReports
https://github.com/shearer/samplesize/issues
CRAN Checks
samplesize results
DOI
10.32614/CRAN.package.samplesize
In Views
ClinicalTrials
License
GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
Maintainer
Ralph Scherer <shearer.ra76 at gmail.com>
NeedsCompilation
no
Old Sources
samplesize archive
Package Source
samplesize_0.2-4.tar.gz
Published
2016-12-24
Reference Manual
samplesize.html , samplesize.pdf
URL
https://github.com/shearer/samplesize
Version
0.2-4
Windows Binaries
r-devel: samplesize_0.2-4.zip , r-release: samplesize_0.2-4.zip , r-oldrel: samplesize_0.2-4.zip
MacOS Binaries
r-release (arm64): samplesize_0.2-4.tgz , r-oldrel (arm64): samplesize_0.2-4.tgz , r-release (x86_64): samplesize_0.2-4.tgz , r-oldrel (x86_64): samplesize_0.2-4.tgz
Version
0.2-4
Published
2016-12-24
DOI
10.32614/CRAN.package.samplesize
Author
Ralph Scherer
Maintainer
Ralph Scherer <shearer.ra76 at gmail.com>
BugReports
https://github.com/shearer/samplesize/issues
License
GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
URL
https://github.com/shearer/samplesize
NeedsCompilation
no
In Views
ClinicalTrials
CRAN Checks
samplesize results
Reference Manual
samplesize.html , samplesize.pdf
Package Source
samplesize_0.2-4.tar.gz
Windows Binaries
r-devel: samplesize_0.2-4.zip , r-release: samplesize_0.2-4.zip , r-oldrel: samplesize_0.2-4.zip
MacOS Binaries
r-release (arm64): samplesize_0.2-4.tgz , r-oldrel (arm64): samplesize_0.2-4.tgz , r-release (x86_64): samplesize_0.2-4.tgz , r-oldrel (x86_64): samplesize_0.2-4.tgz
Old Sources
samplesize archive
Page sections 3
Documentation
Heading
Documentation
Links
[{"label":"samplesize.html","section":"","type":"","url":"https://cran.r-project.org/web/packages/samplesize/refman/samplesize.html"},{"label":"samplesize.pdf","section":"","type":"","url":"https://cran.r-project.org/web/packages/samplesize/samplesize.pdf"}]
Text
Reference manual: samplesize.html , samplesize.pdf
Downloads
Heading
Downloads
Links
[{"label":"samplesize_0.2-4.tar.gz","section":"","type":"","url":"https://cran.r-project.org/src/contrib/samplesize_0.2-4.tar.gz"},{"label":"samplesize_0.2-4.zip","section":"","type":"","url":"https://cran.r-project.org/bin/windows/contrib/4.7/samplesize_0.2-4.zip"},{"label":"samplesize_0.2-4.zip","section":"","type":"","url":"https://cran.r-project.org/bin/windows/contrib/4.6/samplesize_0.2-4.zip"},{"label":"samplesize_0.2-4.zip","section":"","type":"","url":"https://cran.r-project.org/bin/windows/contrib/4.5/samplesize_0.2-4.zip"},{"label":"samplesize_0.2-4.tgz","section":"","type":"","url":"https://cran.r-project.org/bin/macosx/sonoma-arm64/contrib/4.6/samplesize_0.2-4.tgz"},{"label":"samplesize_0.2-4.tgz","section":"","type":"","url":"https://cran.r-project.org/bin/macosx/big-sur-arm64/contrib/4.5/samplesize_0.2-4.tgz"},{"label":"samplesize_0.2-4.tgz","section":"","type":"","url":"https://cran.r-project.org/bin/macosx/big-sur-x86_64/contrib/4.6/samplesize_0.2-4.tgz"},{"label":"samplesize_0.2-4.tgz","section":"","type":"","url":"https://cran.r-project.org/bin/macosx/big-sur-x86_64/contrib/4.5/samplesize_0.2-4.tgz"},{"label":"samplesize archive","section":"","type":"","url":"https://CRAN.R-project.org/src/contrib/Archive/samplesize"}]
Text
Package source: samplesize_0.2-4.tar.gz Windows binaries: r-devel: samplesize_0.2-4.zip , r-release: samplesize_0.2-4.zip , r-oldrel: samplesize_0.2-4.zip macOS binaries: r-release (arm64): samplesize_0.2-4.tgz , r-oldrel (arm64): samplesize_0.2-4.tgz , r-release (x86_64): samplesize_0.2-4.tgz , r-oldrel (x86_64): samplesize_0.2-4.tgz Old sources: samplesize archive
Linking
Heading
Linking
Links
[{"label":"https://CRAN.R-project.org/package=samplesize","section":"","type":"","url":"https://CRAN.R-project.org/package=samplesize"}]
Text
Please use the canonical form https://CRAN.R-project.org/package=samplesize to link to this page.
Documentation 2
Downloads 9
All page links 19

패키지 문서 원문

2 artifacts
reference_manual_html
Reference manual HTML
CRAN · 0.2-4 · Documentation · text/html · 9,843 · 2026-05-07
Title
Help for package samplesize
Label
Reference manual HTML
Text content
Text content
Help for package samplesize const macros = { "\\R": "\\textsf{R}", "\\mbox": "\\text", "\\code": "\\texttt"}; function processMathHTML() { var l = document.getElementsByClassName('reqn'); for (let e of l) { katex.render(e.textContent, e, { throwOnError: false, macros }); } return; } Package {samplesize} Contents samplesize-package n.ttest n.wilcox.ord Type: Package Title: Sample Size Calculation for Various t-Tests and Wilcoxon-Test Version: 0.2-4 Date: 2016-12-22 Author: Ralph Scherer Maintainer: Ralph Scherer <shearer.ra76@gmail.com> Description: Computes sample size for Student's t-test and for the Wilcoxon-Mann-Whitney test for categorical data. The t-test function allows paired and unpaired (balanced / unbalanced) designs as well as homogeneous and heterogeneous variances. The Wilcoxon function allows for ties. License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)] URL: https://github.com/shearer/samplesize BugReports: https://github.com/shearer/samplesize/issues NeedsCompilation: no Packaged: 2016-12-23 21:02:40 UTC; ralph Repository: CRAN Date/Publication: 2016-12-24 11:24:04 Computes sample size for several two-sample tests Description Computes sample size for independent and paired Student's t-test, Student's t-test with Welch-approximation, Wilcoxon-Mann-Whitney test with and without ties on ordinal data Details Package: samplesize Type: Package Version: 0.2-4 Date: 2016-12-22 License: GPL (>=2) LazyLoad: yes n.ttest(): sample size for Student's t-test and t-test with Welch approximation n.wilcox.ord(): sample size for Wilcoxon-Mann-Whitney test with and without ties Author(s) Ralph Scherer Maintainer: Ralph Scherer <shearer.ra@gmail.com> References Bock J., Bestimmung des Stichprobenumfangs fuer biologische Experimente und kontrollierte klinische Studien. Oldenbourg 1998 Zhao YD, Rahardja D, Qu Yongming. Sample size calculation for the Wilcoxon-Mann-Whitney test adjusting for ties. Statistics in Medicine 2008; 27:462-468 n.ttest computes sample size for paired and unpaired t-tests. Description n.ttest computes sample size for paired and unpaired t-tests. Design may be balanced or unbalanced. Homogeneous and heterogeneous variances are allowed. Usage n.ttest(power = 0.8, alpha = 0.05, mean.diff = 0.8, sd1 = 0.83, sd2 = sd1, k = 1, design = "unpaired", fraction = "balanced", variance = "equal") Arguments power Power (1 - Type-II-error) alpha Two-sided Type-I-error mean.diff Expected mean difference sd1 Standard deviation in group 1 sd2 Standard deviation in group 2 k Sample fraction k design Type of design. May be paired or unpaired fraction Type of fraction. May be balanced or unbalanced variance Type of variance. May be homo- or heterogeneous Value Total sample size Sample size for both groups together Sample size group 1 Sample size in group 1 Sample size group 2 Sample size in group 2 Author(s) Ralph Scherer References Bock J., Bestimmung des Stichprobenumfangs fuer biologische Experimente und kontrollierte klinische Studien. Oldenbourg 1998 Examples n.ttest(power = 0.8, alpha = 0.05, mean.diff = 0.80, sd1 = 0.83, k = 1, design = "unpaired", fraction = "balanced", variance = "equal") n.ttest(power = 0.8, alpha = 0.05, mean.diff = 0.80, sd1 = 0.83, sd2 = 2.65, k = 0.7, design = "unpaired", fraction = "unbalanced", variance = "unequal") Sample size for Wilcoxon-Mann-Whitney for ordinal data Description Function computes sample size for the two-sided Wilcoxon test when applied to two independent samples with ordered categorical responses. Usage n.wilcox.ord(power = 0.8, alpha = 0.05, t, p, q) Arguments power required Power alpha required two-sided Type-I-error level t sample size fraction n/N, where n is sample size of group B and N is the total sample size p vector of expected proportions of the categories in group A, should sum to 1 q vector of expected proportions of the categories in group B, should be of equal length as p and should sum to 1 Details This function approximates the total sample size, N, needed for the two-sided Wilcoxon test when comparing two independent samples, A and B, when data are ordered categorical according to Equation 12 in Zhao et al.(2008). Assuming that the response consists of D ordered categories C_1 ,..., C_D . The expected proportions of these categories in two treatments A and B must be specified as numeric vectors p_1,...,p_D and q_1,...,q_D , respectively. The argument t allows to compute power for an unbalanced design, where t=n_B/N is the proportion of sample size in treatment B. Value total sample size Total sample size m Sample size group 1 n Sample size group 2 Author(s) Ralph Scherer References Zhao YD, Rahardja D, Qu Yongming. Sample size calculation for the Wilcoxon-Mann-Whitney test adjsuting for ties. Statistics in Medicine 2008; 27:462-468 Examples ## example out of: ## Zhao YD, Rahardja D, Qu Yongming. ## Sample size calculation for the Wilcoxon-Mann-Whitney test adjsuting for ties. ## Statistics in Medicine 2008; 27:462-468 n.wilcox.ord(power = 0.8, alpha = 0.05, t = 0.53, p = c(0.66, 0.15, 0.19), q = c(0.61, 0.23, 0.16))
section
samplesize.pdf
CRAN · 0.2-4 · Documentation · application/pdf · 123,467 · 2026-05-07
Title
samplesize.pdf
Label
samplesize.pdf

Reference for samplesize (0.2-4)

3개 topic
n.ttest
n.ttest computes sample size for paired and unpaired t-tests.
CRAN · 0.2-4 · samplesize/man/n.ttest.Rd · 2026-05-07

n.ttest computes sample size for paired and unpaired t-tests. Design may be balanced or unbalanced. Homogeneous and heterogeneous variances are allowed.

Aliases
n.ttest
Keywords
htest
Usage
n.ttest(power = 0.8, alpha = 0.05, mean.diff = 0.8, sd1 = 0.83, sd2 = sd1, k = 1, design = "unpaired", fraction = "balanced", variance = "equal")
Arguments
power
Power (1 - Type-II-error)
alpha
Two-sided Type-I-error
mean.diff
Expected mean difference
sd1
Standard deviation in group 1
sd2
Standard deviation in group 2
k
Sample fraction k
design
Type of design. May be paired or unpaired
fraction
Type of fraction. May be balanced or unbalanced
variance
Type of variance. May be homo- or heterogeneous
Value
Total sample size Sample size for both groups together Sample size group 1 Sample size in group 1 Sample size group 2 Sample size in group 2
Examples
n.ttest(power = 0.8, alpha = 0.05, mean.diff = 0.80, sd1 = 0.83, k = 1, design = "unpaired", fraction = "balanced", variance = "equal") n.ttest(power = 0.8, alpha = 0.05, mean.diff = 0.80, sd1 = 0.83, sd2 = 2.65, k = 0.7, design = "unpaired", fraction = "unbalanced", variance = "unequal")
Author
Ralph Scherer
References
Bock J., Bestimmung des Stichprobenumfangs fuer biologische Experimente und kontrollierte klinische Studien. Oldenbourg 1998
n.wilcox.ord
Sample size for Wilcoxon-Mann-Whitney for ordinal data
CRAN · 0.2-4 · samplesize/man/n.wilcox.ord.Rd · 2026-05-07

Function computes sample size for the two-sided Wilcoxon test when applied to two independent samples with ordered categorical responses.

Aliases
n.wilcox.ord
Keywords
htestnonparametric
Concepts
sample sizeordered categorical
Usage
n.wilcox.ord(power = 0.8, alpha = 0.05, t, p, q)
Arguments
power
required Power
alpha
required two-sided Type-I-error level
t
sample size fraction n/N, where n is sample size of group B and N is the total sample size
p
vector of expected proportions of the categories in group A, should sum to 1
q
vector of expected proportions of the categories in group B, should be of equal length as p and should sum to 1
Details
This function approximates the total sample size, N, needed for the two-sided Wilcoxon test when comparing two independent samples, A and B, when data are ordered categorical according to Equation 12 in Zhao et al.(2008). Assuming that the response consists of D ordered categories C_1 ,..., C_D. The expected proportions of these categories in two treatments A and B must be specified as numeric vectors p_1,...,p_D and q_1,...,q_D, respectively. The argument t allows to compute power for an unbalanced design, where t=n_B/N is the proportion of sample size in treatment B.
Value
total sample sizeTotal sample size mSample size group 1 nSample size group 2
Examples
## example out of: ## Zhao YD, Rahardja D, Qu Yongming. ## Sample size calculation for the Wilcoxon-Mann-Whitney test adjsuting for ties. ## Statistics in Medicine 2008; 27:462-468 n.wilcox.ord(power = 0.8, alpha = 0.05, t = 0.53, p = c(0.66, 0.15, 0.19), q = c(0.61, 0.23, 0.16))
Author
Ralph Scherer
References
Zhao YD, Rahardja D, Qu Yongming. Sample size calculation for the Wilcoxon-Mann-Whitney test adjsuting for ties. Statistics in Medicine 2008; 27:462-468
samplesize-package
Computes sample size for several two-sample tests
CRAN · 0.2-4 · package · samplesize/man/samplesize-package.Rd · 2026-05-07

Computes sample size for independent and paired Student's t-test, Student's t-test with Welch-approximation, Wilcoxon-Mann-Whitney test with and without ties on ordinal data

Aliases
samplesize-package
Keywords
htest
Details
ll Package: samplesize Type: Package Version: 0.2-4 Date: 2016-12-22 License: GPL (>=2) LazyLoad: yes n.ttest(): sample size for Student's t-test and t-test with Welch approximation n.wilcox.ord(): sample size for Wilcoxon-Mann-Whitney test with and without ties
Author
Ralph Scherer Maintainer: Ralph Scherer <shearer.ra@gmail.com>
References
Bock J., Bestimmung des Stichprobenumfangs fuer biologische Experimente und kontrollierte klinische Studien. Oldenbourg 1998 Zhao YD, Rahardja D, Qu Yongming. Sample size calculation for the Wilcoxon-Mann-Whitney test adjusting for ties. Statistics in Medicine 2008; 27:462-468

버전 이력

RepositoryVersionPublishedFirst seenLast seenDocs
CRAN0.2-42026-05-292026-05-30

보안

표시할 OSV 데이터가 없습니다.

문헌 신호

표시할 OpenAlex 데이터가 없습니다.