Skip to content

Commit

Permalink
checking off flag
Browse files Browse the repository at this point in the history
  • Loading branch information
rajitachandak committed Nov 7, 2024
1 parent 5785b2b commit 9a18e88
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/lpcde/tests/testthat/test-lpcde.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ test_that("error checking", {
model2 = lpcde(x_data=x_data, y_data=y_data, y_grid=y_grid, x=0, kernel_type="triangular", bw=1.8, cov_flag="diag")
expect_equal(model2$opt$kernel, "triangular")
expect_equal(model2$opt$cov_flag, "diag")

model2 = lpcde(x_data=x_data, y_data=y_data, y_grid=y_grid, x=0, kernel_type="triangular", bw=1.8, cov_flag="off")
expect_equal(model2$CovMat$CovMat, NA)
expect_equal(model2$CovMat$CovMat_RBC, NA)
})

test_that("lpcde multivariate output", {
Expand Down

0 comments on commit 9a18e88

Please sign in to comment.