give.summary | R Documentation |
This function computes a sample mean, quantiles and a Bayesian
p
-value which is defined as
p = 2\times\min(n_{-},\,n_{+}),
where
n_{-}
is the number of the sampled values which are
negative and n_{+}
is the number of sampled values which
are positive.
give.summary(sample, probs=c(0.5, 0.025, 0.975))
sample |
a data frame or a vector with sampled values |
probs |
probabilities of the quantiles that are to be computed |
A matrix or a vector with the sample mean, quantiles and a Bayesian p
-value.
Arnošt Komárek arnost.komarek@mff.cuni.cz
## Example with a sample stored in a vector:
sample <- rnorm(1000)
give.summary(sample)
## Example with a sample stored in a data.frame:
sample <- data.frame(x=rnorm(1000), y=rgamma(1000, shape=1, rate=1))
give.summary(sample)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.