Question with BAPC+INLA analysis

235 views
Skip to first unread message

Song Cheng

unread,
Sep 24, 2022, 4:41:41 AM9/24/22
to R-inla discussion group
bapc_result <- BAPC(lc_HNC, predict = list(npredict = 30, retro = FALSE),secondDiff = FALSE, stdweight = wstand, verbose = TRUE)
Error in inla.check.control(control.compute, data) :
 Name `return.marginals.predictor' in control-argument `control.compute', is void.

  Valid ones are:
    config
    cpo
    dic
    gdensity
    graph
    hyperpar
    mlik
    openmp.strategy
    po
    q
    return.marginals
    smtp
    waic

I would like to use BPAC model to predict the cancer burden but constantly received this error. I do not know how to fix it? What is the meaning of Name..... is void?

Song Cheng

unread,
Sep 24, 2022, 5:22:45 AM9/24/22
to R-inla discussion group
I reaaaaaaaaaaaaaaally need someone to help me. Have been stuck for several days! 

pav

unread,
Sep 25, 2022, 3:20:20 PM9/25/22
to R-inla discussion group
I can't really help on the substantive question, but in this context "void" means "invalid" (as you might guess from the list of "valid" arguments that the error message helpfully supplies.) So what it means is that somehow inla() has received a specification of its control.compute argument that includes "return.marginals.predictor", which it thinks is unsupported (the supported argument is "return.marginals"). Since the control.compute argument doesn't  actually appear in the example you posted, I'd guess that this is generated by the BAPC function which presumably calls inla(), and you should probably take it up with the author of that package. But before you do, it might be a good idea to check whether the BAPC example at https://rdrr.io/rforge/BAPC/man/BAPC.html gives the same error message, and if not, why your case and the one there are different.

Finn Lindgren

unread,
Sep 26, 2022, 6:49:36 AM9/26/22
to R-inla discussion group
Hi,

the latest INLA version does have return.marginals.predictor in control.compute.
Check what INLA version you have, and if you have something older than
22.09.15, upgrade it and test the BAPC estimation again.
Finn
> --
> You received this message because you are subscribed to the Google Groups "R-inla discussion group" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to r-inla-discussion...@googlegroups.com.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/r-inla-discussion-group/2227fa0d-7e62-4706-949d-c97c96648d4an%40googlegroups.com.



--
Finn Lindgren
email: finn.l...@gmail.com

Havard Rue

unread,
Sep 27, 2022, 5:40:36 AM9/27/22
to Song Cheng, R-inla discussion group

This is an issue with the BAPC package, that they do not update it along the developments of INLA.

--

You received this message because you are subscribed to the Google Groups "R-inla discussion group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to r-inla-discussion...@googlegroups.com.

Finn Lindgren

unread,
Sep 27, 2022, 5:45:50 AM9/27/22
to Havard Rue, Song Cheng, R-inla discussion group
In this particular case, I believe it's just due needing to install
the latest INLA version; searching online, I found the BAPC package
was updated not long ago to support updated INLA.
Song Cheng, check what BAPC and INLA version you have, and make sure
they are both updated.
If you still get the error after that, you'll need to contact the BAPC
developers to get it fixed.
Finn
> To view this discussion on the web, visit https://groups.google.com/d/msgid/r-inla-discussion-group/DU0PR09MB5545C7DB0B7F6D8D77402969F0559%40DU0PR09MB5545.eurprd09.prod.outlook.com.
Reply all
Reply to author
Forward
0 new messages