You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I find that that when mboost subsets to remove missing values here it fails to subset the weights so the dimensions don't line up down the road.
Example:
library(mboost)
# generate random data
set.seed(2017-5-22)
weights <- sample(1:100, 100, replace=FALSE)
x <- rnorm(100)
y <- runif(100)
# create missing value
x[25] <- NA
myData <- data.frame(x=x, y=y)
# errors
mboost(
y ~ bols(x),
data = myData,
weights = weights,
family = Gaussian()
)
# works
mboost(
y ~ bols(x),
data = myData,
weights = weights[-25],
family = Gaussian()
)
# base R modeling functions subset weights
lm(y ~ x, myData, weights = weights)
Kind Regards,
Carl Ganz
The text was updated successfully, but these errors were encountered:
Hello,
I find that that when
mboost
subsets to remove missing values here it fails to subset the weights so the dimensions don't line up down the road.Example:
Kind Regards,
Carl Ganz
The text was updated successfully, but these errors were encountered: