Object returned by uncert
calls.
# S3 method for uncert
print(x, digits=NULL, right=FALSE, …, simplify=TRUE) # S3 method for uncert
summary(object, …, simplify=TRUE)
An object of class uncert
Number of digits to display in budget and (if present) distribution parameter lists.
Passed to format
for distribution parameter list and to print.data.frame
for output.
If TRUE, strings in uncertainty budget are right-justified.
This differs from the default in print.data.frame
.
Other parameters passed to print.data.frame
If TRUE
, only the call, evaluation method, budget, value y
and combined uncertainty (u.y) are printed.
print
and summary
methods invisibly return the original object.
The print method provides a formatted printout of the object. By default,
simplify=TRUE
; this displays a shortened listing. Columns in $budget
are
suppressed if all NA (typically df when not specified).
summary is currently an alias for the print method.
summary.uncert
simply calls print.uncert
.
An object of class "uncert" contains:
The matched call
The calculated value (for function, expression or formula methods) or NA
The combined standard uncertainty
The uncertainty evaluation method used.
A data frame consisting of:
x
(if supplied; otherwise a vector of NA's).
The standard uncertainties in input quantities (originally provided as u
)
The degrees of freedom asscociated with u
Sensitivity coefficients either provided as c
or (for the formula, function
and expression methods) as calculated.
The product of u
and c
. These are the contributions to the
combined uncertainty for uncorrelated quantities.
Any relevant parameters other than those in $budget$x (typically addditional constants passed to function or expression methods)
If available, a named list of the distributions associated with u
.
The list contains either root nams of distribution functions (e.g "norm"
or
function definitions.
If available, a list of lists of parameters describing the
distributions associated with u
.
The covariance matrix used
The correlation matrix used
A data frame of covariances between x and y. Row names correspond to the correlation method used. For all uncertainty evaluation methods but MC, the only correlation calculation is "theoretical"; for MC row names include all methods supported by stats::cor at the time the object was created.
A data frame of correlations between x and y, of the same form as cov.xy
For the formula and expression methods, the result of a call to deriv
;
an expression which evaluates to the value with attributes corresponding to the derivatives
(that is, an expression which can be evaluated to give the value and sensitivity coefficients)
None.
uncert
, especially for calculation methods;
plot.uncert
, uncertMC-class
,
print.data.frame
, format
.
# NOT RUN {
expr <- expression(a+b*2+c*3+d/2)
x <- list(a=1, b=3, c=2, d=11)
u <- lapply(x, function(x) x/10)
u.expr<-uncert(expr, x, u, method="NUM")
print(u.expr)
# }
Run the code above in your browser using DataLab