Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

covariate search -- "object covInfo' not found error #50

Open
snailittle opened this issue Feb 9, 2023 · 1 comment
Open

covariate search -- "object covInfo' not found error #50

snailittle opened this issue Feb 9, 2023 · 1 comment

Comments

@snailittle
Copy link

snailittle commented Feb 9, 2023

rxode2::.rxWithWd(tempdir(), {# with temporary directory
library(nlmixr2)
library(rxode2)
library(vpc)
library(xpose)
library(xpose.nlmixr2)
library(ggplot2)

pheno <- function() {
ini({
tcl <- log(0.008) # typical value of clearance
tv <- log(0.6) # typical value of volume
## var(eta.cl)
eta.cl + eta.v ~ c(1,
0.01, 1) ## cov(eta.cl, eta.v), var(eta.v)
# interindividual variability on clearance and volume
prop.err <- 0.1 # residual variability
})
model({
cl <- exp(tcl + eta.cl) # individual value of clearance
v <- exp(tv + eta.v) # individual value of volume
ke <- cl / v # elimination rate constant
d/dt(A1) = - ke * A1 # model differential equation
cp = A1 / v # concentration in plasma
cp ~ prop(prop.err) # define error model
})
}

fit_focei <- nlmixr(pheno, pheno_sd, "focei",
control=list(print=0),
table=list(cwres=TRUE, npde=TRUE))

auto3 <- covarSearchAuto(fit_focei, varsVec = c("v", "cl"), covarsVec = c("WT","APGR"),
restart = TRUE,
searchType = "backward", pVal=list(fwd=0.01,bck=0.001))
})

.... # it was running for quite a while and everything seems OK, then it comes the error below;

Error in backwardSearch(varsVec, covarsVec, catvarsVec, fitorig = fit, :
object 'covInfo' not found

@mattfidler mattfidler transferred this issue from nlmixr2/nlmixr2 Feb 10, 2023
@mattfidler
Copy link
Member

Thanks for reporting @snailittle

I will look at it when I get a chance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants