mpaule(x, ..., tol=.Machine$double.eps^0.25, maxiter=25)
## S3 method for class 'default':
mpaule(x, u=NULL, n=NULL, groups=NULL,
tol=.Machine$double.eps^0.25, maxiter=25, \dots)
mandel.paule(x, ..., tol=.Machine$double.eps^0.25, maxiter=25)
groups
is given) of individual observationsx
NULL
, u
are interpreted as
standard uncertainties or standard errors. n
is recycled to length(x)
.x
is
interpreted as a vector of individual observations and u
and n
ignored.tol*var(x)
df
is
set to $n-1$ where $n$ is the number of non-NA
observations or
group means as appropriate, and method.details
is returned as :converged
indicates the convergence status. 0L
indicates
failure to converge (maxiter
reached before step size drops below tolerance);
1L
indicates normal convergence; 2L
indicates that the final step size resulted
in a negative between-group variance, at which point the variance and step size are set to 0.0x
and the between-group variance.
If the iterative procedure produces a negative estimate for the between-group variance,
the between-group variance is set to zero.
For the default method, if u
is present and n=NULL
, u
is interpreted as
a vector of standard uncertainties or standard errors. If n
is not NULL
, u
is interpreted as a vector of standard deviations and standard errors are calculated as
u/sqrt(n)
.
If groups
is not NULL
, x
is interpreted as a vector of individual
observations grouped by groups
, and the algorithm is applied to the corresponding
group means and standard errors.
If maxiter
is set less than 1, no iterations are performed and the consensus mean
is returned as NA
.
mandel.paule
is an alias for mpaule
retained for backward compatibility.## the second example in the paper cited above
x <- c(201.533, 216.55)
s <- c(0.154, 0.25)
n <- c(6, 2)
mpaule(x, s/sqrt(n))
## Cd heat of vapourisation example from the paper cited above
x2<-c(27.044, 26.022, 26.340, 26.787, 26.796)
v<-c(3, 76, 464, 3, 14)*1e-3
mpaule(x2, sqrt(v))
Run the code above in your browser using DataLab