Learn R Programming

OpasnetUtils (version 1.3)

odebug: Debugging ovariables

Description

Check shared indices, dropped locations and some statistical metrics

Usage

odebug(x, variance = FALSE)

Arguments

x

ovariable to be debugged

variance

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

Value

List of outputs.

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.

Examples

Run this code
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)

Run the code above in your browser using DataLab