Skip to content

Commit 5fbad91

Browse files
committed
Fixed typo
1 parent a65f606 commit 5fbad91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/kernel.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
computeForestLeafIndices <- function(model_object, covariates, forest_type=NULL, forest_inds=NULL) {
5050
# Extract relevant forest container
5151
stopifnot(any(c(inherits(model_object, "bartmodel"), inherits(model_object, "bcfmodel"), inherits(model_object, "ForestSamples"))))
52-
model_type <- ifelse(object_name=="bartmodel", "bart", ifelse(object_name=="bcfmodel", "bcf", "forest_samples"))
52+
model_type <- ifelse(inherits(model_object, "bartmodel"), "bart", ifelse(inherits(model_object, "bcfmodel"), "bcf", "forest_samples"))
5353
if (model_type == "bart") {
5454
stopifnot(forest_type %in% c("mean", "variance"))
5555
if (forest_type=="mean") {

0 commit comments

Comments
 (0)