Skip to content

Commit

Permalink
get var as diag
Browse files Browse the repository at this point in the history
  • Loading branch information
lukesonnet committed Nov 16, 2018
1 parent 5363a35 commit 4239e16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/inference.R
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ inference.krls2 <- function(obj,
if (!binaryindicator[i]) {
deriv_list <- pwmfx(obj$K, X[, i, drop = FALSE], obj$coeffs, vcov.c, tau, tau2, obj$b)
derivatives[, i] <- deriv_list$deriv
var.derivatives[, i] <- deriv_list$var_deriv
var.derivatives[, i] <- diag(deriv_list$var_deriv)
var.avgderivatives[i] <- deriv_list$var_avg_deriv
}
}
Expand Down

0 comments on commit 4239e16

Please sign in to comment.