Last data update: 2014.03.03

R: Variance estimate of the sample estimate for a normal mean...
var.muR Documentation

Variance estimate of the sample estimate for a normal mean parameter

Description

Calculates the variance estimate of a sample estimate for a normal mean parameter.

Usage

var.mu(s, n)

Arguments

s

A numeric value, the sample estimate for normal standard deviation.

n

A numeric value, the sample size of data.

Details

For a sample dataset of size n drawn from a normal distributin N(μ,σ^2, denote the sample estimate on the mean parameter and standard deviation parameter as u and s, Then the variance of the sample mean is Var(u)=s^2/n.

Value

A numeric value, the variance of a sample estimate for a normal mean parameter.

Note

Bug reports, malfunctioning, or suggestions for further improvements or contributions can be sent to Jingqin Luo <rosy@wubios.wustl.edu>.

Author(s)

Jingqin Luo

References

Patel, J.K. and Read, C.B. (1996) Handbook of the Normal Distribution. CRC Press.

Luo, J and Xiong, C. (2012) Youden Index and Associated Optimal Cut-point for Three Ordinal Groups. Communications In Statistics-Simulation and Computation (in press).

See Also

var.sigma

Examples

s <- 1.5
n <- 100
var.mu(s,n)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(DiagTest3Grp)
Loading required package: car
Loading required package: KernSmooth
KernSmooth 2.23 loaded
Copyright M. P. Wand 1997-2009
Loading required package: gplots

Attaching package: 'gplots'

The following object is masked from 'package:stats':

    lowess

> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/DiagTest3Grp/var.mu.Rd_%03d_medium.png", width=480, height=480)
> ### Name: var.mu
> ### Title: Variance estimate of the sample estimate for a normal mean
> ###   parameter
> ### Aliases: var.mu
> ### Keywords: htest univar
> 
> ### ** Examples
> 
> s <- 1.5
> n <- 100
> var.mu(s,n)
[1] 0.0225
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>