Description Usage Arguments Details Value References Examples
Calculates a distribution free confidence interval for a sample median by deriving for the 100pth distribution percentile of a continuous random variable. .
1 2 | onesampsgn(x, test = FALSE, alt = 0, theta0 = 0, alpha = 0.05,
maktable = TRUE, plotb = FALSE)
|
x |
Sample of size 'n' |
test |
Computes a two-sided sign test about theta0. If |
alt |
Computes a one-sided sign test for theta0. If |
theta0 |
Variance of sample x |
alpha |
Level of significance |
maktable |
If true provides more descriptive output for x |
plotb |
If true a boxplot is produced |
Computes the solution to Example 1.3.3 (8th Edition)
The probability bday
of at least two people having the same
birthdays
Hogg, R. McKean, J. Craig, A. (2018) Introduction to Mathematical Statistics, 8th Ed. Boston: Pearson.
1 2 3 | x <- c(56, 70, 89, 94, 96, 101, 102, 102, 102, 105, 106, 108, 110, 113, 116)
# Confidence interval for the median:
onesampsgn(x, alpha = 0.12)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.