Skip to content

Commit

Permalink
Stopped inference when using non-gaussian kernels #9
Browse files Browse the repository at this point in the history
  • Loading branch information
lukesonnet committed Jul 29, 2017
1 parent 6756d7b commit 3b77a01
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/inference.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ inference.krls2 <- function(obj,
derivative = TRUE,
cpp = TRUE) {

if (obj$kernel != 'gaussian') {
stop("Currently standard errors and marginal effects are only supported for gaussian kernels.")
}

if (!vcov) {
warning("Standard errors only available if vcov = TRUE")
}
Expand Down

0 comments on commit 3b77a01

Please sign in to comment.