gumPrint: Printing Functions

Description Usage Arguments Value Examples

Description

Print results with prescribed number of digits following GUM recommendations.

uncPrint() is used to print the mean value and standard uncertainty. UncPrint() is used to print the mean value and enlarged uncertainty. CIPrint() is used to print coverage intervals from mean value, standard uncertainty and coverage factor. CIPrint1() is used to print coverage intervals from interval limits.

Usage

1
2
3
4
5
6
7
uncPrint(y, uy)

UncPrint(y, uy, fac = 2)

CIPrint(y, uy, p = 0.95, fac = 1.96)

CIPrint1(uy, y_low, y_high, p = 0.95)

Arguments

y

Mean value.

uy

Standard uncertainty on Y. Should be strictly positive.

fac

Enlargment factor corresponding to p.

p

Coverage of confidence interval.

y_low, y_high

Lower and upper limits of coverage interval.

Value

A character string.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
fExpr = expression(x1+x2)
x.mu = c(1,1); names(x.mu)=c('x1','x2')
x.u = c(0.1,0.1); names(x.u)=c('x1','x2')
x.pdf = c('unif','triangle'); names(x.pdf)=c('x1','x2')
S=gumS1(fExpr,x.mu,x.u,x.pdf,x.df=NULL,nrunMax=1000)
uncPrint(S$y.mu,S$y.u)
#
UncPrint(S$y.mu,S$y.u,fac=2)
#
CIPrint(S$y.mu,S$y.u)
#
CIPrint1(S$y.u,S$y.low,S$y.high)

ppernot/rgumlib documentation built on May 25, 2019, 11:24 a.m.