Closed YSanchezAraujo closed 6 years ago
@YSanchezAraujo I believe your example should work. There may be a bug in varbvs version 2.4-0. Please try this:
Install the latest version of varbvs from GitHub (2.5-2).
Try running:
library(varbvs)
demo("varbvs.cc")
logodds <- matrix(c(rep(-2,500),rep(-3,500)))
fit2 <- varbvs(X,Z,y,"binomial",logodds = logodds)
Does that work for you? If so, perhaps you can adapt this example as needed to your problem.
@pcarbo thanks it was indeed the older version that was causing the problem
Hi,
I'm trying to run a logistic regression like so:
with the dimension info for example:
so I'd like each prior value of lgs for the logoods to go to it's corresponding column in
X
is this the correct way to go about this?
from: https://github.com/pcarbo/varbvs/blob/master/varbvs-R/R/varbvs.R#L105
it seems that what I would need instead is:
however when I do that I get: