Closed chjackson closed 9 months ago
The recommended alternative to using X
and beta
is to adjust the intercept gamma0
to include the effects of the covariates before calling the dpqr function:
gamma <- matrix(rep(c(-2,1,0), 10), nrow=10, byrow=TRUE)
beta <- c(0,1)
X <- matrix(rep(c(0,0), 10), ncol=2, byrow=TRUE)
gamma[,1] <- gamma[,1] + X %*% beta
rsurvspline(n = 10, gamma = gamma, knots = c(-1,0,1))
X
andbeta
arguments are not supported properly inrsurvspline
andqsurvspline
. They fail silently by returning a vector of the wrong dimension.I intend to fix by withdrawing support for these arguments. They are currently deprecated, as dpqr functions in R don't typically have arguments like this.