odebug: Debugging ovariables

Description Usage Arguments Details Value Author(s) Examples

View source: R/odebug.R

Description

Check shared indices, dropped locations and some statistical metrics

Usage

1
odebug(x, variance = FALSE)

Arguments

x

ovariable to be debugged

variance

If TRUE runs variance analysis between indices of the given ovariable.

Details

Checks output lengths, number of NAs, common and matching marginals, missing locations in common marginals and performs variance analysis if required. Variance analysis is only performed up to second order, the intended use is to quantify overlap between indices.

Value

List of outputs.

Author(s)

T. Rintala [email protected]

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
test <- data.frame(
  A = c("x","y","z"), 
  B = rep(c("a","b","c"), each = 3), 
  C = rep(c("1","2","3"), each = 3*3), 
  testResult = runif(1*3*3*3)
)
test <- Ovariable(
  name = "test", 
  output = test, 
  marginal = c(TRUE, TRUE, TRUE, FALSE)
)
odebug(test, variance = TRUE)

OpasnetUtils documentation built on July 4, 2017, 9:44 a.m.