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 am reporting a possible issue with covarsearch auto.
I tested the code in the documentation:
one.cmt<-function() {
ini({
## You may label each parameter with a commenttka<-0.45# Log Katcl<- log(c(0, 2.7, 100)) # Log Cl## This works with interactive models## You may also label the preceding line with label("label text")tv<-3.45; label("log V")
## the label("Label name") works with all modelseta.ka~0.6eta.cl~0.3eta.v~0.1add.sd<-0.7
})
model({
ka<- exp(tka+eta.ka)
cl<- exp(tcl+eta.cl)
v<- exp(tv+eta.v)
linCmt() ~ add(add.sd)
})
}
d<-theo_sdd$SEX<-0d$SEX[d$ID<=6] <-1fit<- nlmixr2(one.cmt, d, "focei")
fitcovarWT<- covarSearchAuto(fit, varsVec= c("ka", "cl"),
covarsVec= c("WT"))
covarSearchAuto(fit, varsVec= c("ka", "cl"),
covarsVec= c("SEX"), catvarsVec= c("SEX"))
The code runs fine when using WT as covariate, while for SEX it gives me an error.
The covarsearchauto gives me this error:
── starting forward search... ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Error in .foceiPreProcessData(.data, .ret, .ui, .control$rxControl) :
Assertion on 'names(data)' failed: Names must include the elements {'ID','DV','TIME','SEX'}, but is missing elements {'SEX'}.
I don't understand why, in d there is the SEX column:
Hello,
I am reporting a possible issue with covarsearch auto.
I tested the code in the documentation:
The code runs fine when using WT as covariate, while for SEX it gives me an error.
The covarsearchauto gives me this error:
I don't understand why, in d there is the SEX column:
I wonder if the categorical variable might cause the problem here.
Thank you for your support.
Daniele
The text was updated successfully, but these errors were encountered: