Proceedings of the 2013 International Conference on Advances in Social Science, Humanities, and Management

One and Two Samples Using Only an R Function

Authors
Ying-Ying Zhang, Yi Wei
Corresponding Author
Ying-Ying Zhang
Available Online December 2013.
DOI
10.2991/asshm-13.2013.29How to use a DOI?
Keywords
one and two samples, interval estimation, hypothesis testing, mean, variance, R.
Abstract

We create an R function one_two_sample() which deals with one and two (normal) samples. For one normal sample x, the function reports descriptive statistics, plot, interval esti-mations and hypothesis testings of the means and variances of x. For one ab-normal sample x, the function reports descriptive statistics, plot, two sided in-terval estimation of the mean of x. For two normal samples x and y, the func-tion reports descriptive statistics, plot, interval estimations and hypothesis testings of the means and variances of x and y, respectively. It also reports interval estimations and hypothesis testings of the difference of the means of x and y and the ratio of the variances of x and y, tests whether x and y are from the same population, finds the correlation coefficient of x and y if they have the same length. The function is in a tailor-made R package OneTwoSamples which is available on CRAN.

Copyright
© 2013, the Authors. Published by Atlantis Press.
Open Access
This is an open access article distributed under the CC BY-NC license (http://creativecommons.org/licenses/by-nc/4.0/).

Download article (PDF)

Volume Title
Proceedings of the 2013 International Conference on Advances in Social Science, Humanities, and Management
Series
Advances in Intelligent Systems Research
Publication Date
December 2013
ISBN
978-90-78677-93-2
ISSN
1951-6851
DOI
10.2991/asshm-13.2013.29How to use a DOI?
Copyright
© 2013, the Authors. Published by Atlantis Press.
Open Access
This is an open access article distributed under the CC BY-NC license (http://creativecommons.org/licenses/by-nc/4.0/).

Cite this article

TY  - CONF
AU  - Ying-Ying Zhang
AU  - Yi Wei
PY  - 2013/12
DA  - 2013/12
TI  - One and Two Samples Using Only an R Function
BT  - Proceedings of the 2013 International Conference on Advances in Social Science, Humanities, and Management
PB  - Atlantis Press
SP  - 159
EP  - 164
SN  - 1951-6851
UR  - https://doi.org/10.2991/asshm-13.2013.29
DO  - 10.2991/asshm-13.2013.29
ID  - Zhang2013/12
ER  -