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 am trying to analyse data from a survey examining what variables affect teachers perceived barriers to incorporating technology into their classroom. I have 5 predictor variables however my DV...
06 August 2024 1,752 3 View
I am using unit level data (IHDS round 2) & Stata 17
06 August 2024 5,725 2 View
When we conduct linear regression, there are several assumptions. The assumption of normality is whether the residual errors are normally distributed, not whether a predictor is normal?
31 July 2024 6,164 3 View
PeptiCloud (www.pepticloud.com) is a bioinformatic platform that allows researchers to organize and share their data for their projects as well as collaborate with others in one place. Through...
28 July 2024 4,762 2 View
I am currently working on a regression model for a project and considering using both Random Forest and Decision Tree algorithms. Given that Random Forest is essentially an ensemble of Decision...
23 July 2024 4,306 3 View
> library(meta) Error: package or namespace load failed for ‘meta’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): there is no package called ‘numDeriv’
18 July 2024 3,536 0 View
Hello connection !!!!! I am currently studying MSc. Statistics in Tribhuwan University. I want to do thesis in the topic of Bayesian Inference . Can you share me the probable topic for my thesis.
17 July 2024 2,590 1 View
In my data set, T is greater than N, so I chose quantile regression for my data set. So is it appropriate for that?
15 July 2024 6,416 4 View
Why direct inversion of mutivariate regression equation is not preferred and instead optimization techniques are used?
15 July 2024 8,642 3 View
Hi guys, in the context of my master thesis i analyze the statistical relationship between income and subjective well-being (Panel: SOEP, n: 300.000 observations over 10 years). After creating a...
13 July 2024 7,539 6 View