UDtable {UncDecomp} | R Documentation |
Make uncertainty table
Description
This function summarizes the uncertainty into a table.
Usage
UD_table(UD, ...)
## S3 method for class 'UD_model'
UD_table(UD, include.nat = TRUE, include.tot = TRUE,
...)
## S3 method for class 'UD_stage'
UD_table(UD, include.nat = TRUE, include.tot = TRUE,
...)
Arguments
UD |
model-wise uncertainty or stage-wise uncertainty |
... |
further arguments passed to or from other methods. include.nat or include.tot |
include.nat |
If include.nat is TRUE and UD has nat_unc, create a table containing it. |
include.tot |
If include.tot is TRUE, create a table containing it. |
Value
uncertainty table
Examples
set.seed(0)
stage1 <- LETTERS[1:3]
stage2 <- LETTERS[1:2]
stage3 <- LETTERS[1:4]
y <- rnorm(3*2*4)
data <- expand.grid(stage1=stage1,
stage2=stage2,
stage3=stage3)
stages <- names(data)
data <- cbind(data, y)
UD_bal_model_range <- UD_bal_model(data, "y", stages, u_range, flist_range)
UD_bal_model_range
UD_bal_stage_range <- UD_model2stage(UD_bal_model_range)
UD_bal_stage_range
UD_table(UD_bal_model_range)
UD_table(UD_bal_stage_range)
[Package UncDecomp version 1.0.1 Index]