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
when I provide weights for observations, it raises a size error: "Error: sizes of weights and data don't match." Could you check it?
set.seed(2)
x <- matrix(rnorm(200), 100, 2)
y <- x %*% c(1, -2)
dat <- data.frame(y = y, x = x, z = as.factor(rbinom(100, 2, 0.5)))
ww <- rep(1, nrow(data))
fit <- vinereg(formula=y ~ ., data=dat, weights = ww)
The text was updated successfully, but these errors were encountered:
Hi,
when I provide weights for observations, it raises a size error: "Error: sizes of weights and data don't match." Could you check it?
set.seed(2)
x <- matrix(rnorm(200), 100, 2)
y <- x %*% c(1, -2)
dat <- data.frame(y = y, x = x, z = as.factor(rbinom(100, 2, 0.5)))
ww <- rep(1, nrow(data))
fit <- vinereg(formula=y ~ ., data=dat, weights = ww)
The text was updated successfully, but these errors were encountered: