i need a package that implements Bayesian logistics regression in r
Hi.
Try ‘BayesLogit’. Here is an example streight forward from the package:
data(spambase)
## A subset of the data.
sbase = spambase[seq(1,nrow(spambase),10),]
X = model.matrix(is.spam ~ word.freq.free + word.freq.1999, data=sbase)
y = sbase$is.spam
## Run logistic regression which is Bayesian as default.
output = logit(y, X, samp=1000, burn=100);
For a general purpose package STAN is the best available. It has comprehensive documentation and a large and growing user community.
Hi Bich,
Using STAN is a good option as Kevin already suggested above.
Here is the manual:
http://www.uvm.edu/~bbeckage/Teaching/DataAnalysis/Manuals/stan-reference-2.8.0.pdf
Here is the google group where they can support you very fast:
http://discourse.mc-stan.org/
Take a look at this example:They compare results using GLM and Bayesian modeling fit using STan. The code is also there with some explanation.
https://rpubs.com/kaz_yos/stan-glm1
They compare results using GLM and Bayesian modeling fit using STan. The code is also there with some explanation.
Bascially, you need:
- To arrange the data in a list: something like:
dat
I have an experiment with 28 participants The independent variable is the times 1, 2, 5, and 10 used as the cross hairs during a task These 4 times were tested using 4 different blocks, each...
03 March 2021 9,692 2 View
I just wanted to check if I need to run a linear regression separately if I am using PROCESS MACRO to run mediation analysis. Thank you.
02 March 2021 4,359 3 View
Good afternoon, I recently used OmniLog from BIOLOG for my experimentations : I tested the metabolism of different strains on 2 types of plates. I have 16 strains of 3 different groups...
02 March 2021 3,584 1 View
Hello, Could you please share any interesting research explaining how to choose the number of hidden layers and nodes per layer in case of regression problems using ANN? Thank you, any help would...
01 March 2021 6,200 3 View
Please, if Gaussian Parameter optimization is possible in this code structure
28 February 2021 278 3 View
I build a model of 4 regression equations (probit and OLS) in R studio. I need to take the weights of observations into consideration. While it is simple to do so for every regression equation,...
27 February 2021 1,233 1 View
Hello. I have a question whether if my coefficients (statistically significant) would be valid when VIFs are really high. In my model, there are independent variables(IV), moderating variables...
26 February 2021 956 13 View
In R-studio, there are many commands of Gumbel package. Arguments are also different. I`m asking about the alpha parameter of the Copula which must be greater than 1. If this is the one used to...
25 February 2021 5,229 3 View
I am looking to package lentivirus in endothelial cells but I am opposed to using 293 cells due to personal ethics regarding the source. I have done some reading and saw that COS1, COS7, & CHO...
25 February 2021 3,030 1 View
While performing the Linear regression analysis in SPSS version 26.0.0. my intermediate/mediation variable goes to the excluded section. Please share your valuable suggestion "How to restrain the...
25 February 2021 4,591 5 View