Learn R Programming

metRology (version 0.9-16.1)

uncertMC-class: The 'uncertMC' class

Description

Object returned by uncertMC calls and by uncertainty with method="MC". summary.uncertMC is currently an alias for print.uncertMC.

Usage

## S3 method for class 'uncertMC':
print(x, digits=NULL, right=FALSE, 
                      \dots, simplify=TRUE, minimise=FALSE)

   ## S3 method for class 'uncertMC':
summary(object, digits=NULL, right=FALSE, 
                      \dots, simplify=TRUE, minimise=FALSE)

Arguments

x, object
An object of class "uncertMC"
digits
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.
right
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
simplify
If TRUE, only the call, evaluation method, budget, value y and combined uncertainty (u.y) are printed.
minimise
If TRUE, the header, call, expr and evaluation method are suppressed; this is the mode used when printing an uncertMC object as part of an uncert object.

Value

  • print and summary methods invisibly return the original object.

Details

An object of class "uncertMC" inherits from class "uncert". In addition to the contents of the "uncert" object, it contains the results from the MC replication as a list MC. The complete description is: [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

References

None.

See Also

uncert, uncertMC, uncert-class, print.data.frame, format.

Examples

Run this code
set.seed(13*17)
  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<-uncertMC(expr, x, u, distrib=rep("norm", 4), method="MC")
  print(u.expr)

Run the code above in your browser using DataLab