tests/testthat/test_dcmvtruncnorm.R

context("Testing dcmvtrunnorm")
message("No need to check. All checking is done either in condtMVN or in tmvtnorm package. The tmvtnorm package does a good job checking arguments.")

### Running goodpractice(), the ability to find multivariate densities does not need to be tested for reason above.
# dens <- tmvtnorm::dtmvnorm(
#   y,
#   mean = ret$condMean,
#   sigma = ret$condVar,
#   lower = ret$condLower,
#   upper = ret$condUpper,
#   log = log,
#   margin = NULL
# )

# From GoodPractice, This test is too simple to check.
# if (length(y) != length(dependent.ind))
#    stop("lengths of `y' and `dependent.ind' must be same")

Try the condTruncMVN package in your browser

Any scripts or data that you put into this service are public.

condTruncMVN documentation built on Sept. 17, 2020, 5:06 p.m.