Estimate the parameters of the lognormal approximation to the sum
estimateSumLognormalSample(mu, sigma, resLog,
effAcf = computeEffectiveAutoCorr(resLog),
isGapFilled = logical(0), na.rm = TRUE)
numeric vector of center parameters of terms at log scale
numeric vector of variance parameter of terms at log scale
time series of model-residuals at log scale to estimate correlation
effective autocorrelation
coefficients (may provide precomputed for efficiency or if the sample
of resLog
is too small) set to 1 to assume uncorrelated sample
logical vector whether entry is gap-filled rather than an original measurement, see details
neglect terms with NA values in mu or sigma
numeric vector with components mu
, sigma
,
and nEff
,
the parameters of the lognormal distribution at log scale
(Result of link{estimateSumLognormal}
)
and the number of effective observations.
If there are no gap-filled values, i.e. all(!isGapFilled)
or
!length(isGapFilled)
(the default), distribution parameters
are estimated using all the samples. Otherwise, the scale parameter
(uncertainty) is first estimated using only the non-gapfilled records.
Also use isGapFilled == TRUE for records, where sigma cannot be trusted. When setting sigma to missing, this is also affecting the expected value.
If there are only gap-filled records, assume uncertainty to be (before v0.1.5: the largest uncertainty of given gap-filled records.) the mean of the given multiplicative standard deviation