Skip to main content
2 votes
1 answer
118 views

I am running many Bayesian models in parallel and want to skip models that take longer than a certain amount of time (e.g., 10 seconds). To do this, I wrapped rstanarm::stan_glm() inside R.utils::...
MochaModeler's user avatar
0 votes
1 answer
37 views

I am trying to simulate data from a liner mixed model in R using the sim() function from the arm package. Here is a subset of my data. > dput(data) structure(list(id = c(989001026313185, ...
smok's user avatar
  • 57
0 votes
0 answers
149 views

I was fitting the Cox PH model using the Bayesian approach in R software (Using rstanarm package). It shows mean error message "could not find function "stan_surv"". bayes_cox <...
Shivraj Thutte's user avatar
0 votes
1 answer
90 views

I believe the same syntax is used with the lme4 package as rstanarm, but I'm having trouble figuring out exactly what the differences are between the different options when fitting a grouped random ...
colebrookson's user avatar
0 votes
0 answers
80 views

I've been trying to run (RStudio) the following Bayesian regression model in a loop around 400 times to get the results for different parameters. After running it, I get the following error messages. ...
Paul Bäumer's user avatar
2 votes
0 answers
172 views

In conditional logit models, global intercepts cannot be estimated as they do not influence the conditional probability of a positive outcome within groups. I understand the intercept term gets ...
Olifa's user avatar
  • 21
0 votes
0 answers
67 views

I cannot run stan_betareg. Checked that all y variables are in hte proper support and updated the package. Still doesnt work? What else should I check? Running model<-stan_betareg( linformula, link=...
Jonathon Siegle's user avatar
0 votes
1 answer
889 views

Rstanarm seems to install normally. But attempting to load: > library(rstanarm) Error: package or namespace load failed for ‘rstanarm’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), ...
Jonathon Siegle's user avatar
1 vote
0 answers
93 views

I am trying to create a data frame using (either tidyr::expand.grid or tibble::data_frame) in order to then generate posterior predictions using the tidybayes::epred_draws function from tidybayes (...
AJ_0000's user avatar
  • 61
2 votes
0 answers
80 views

Is there a way in rstanarm to specify priors over model parameters (e.g. model coefficents) that are drawn from different probability distribution families (e.g. Cauchy, Gaussian, Geometric, etc.) ...
socialscientist's user avatar
1 vote
0 answers
60 views

I'm creating an R package that contains a selection of new probablity distributions. In addition to implementing the density functions in R I have also implemented them as Stan functions. My idea is ...
andypea's user avatar
  • 1,401
0 votes
1 answer
104 views

I am using rstanarm and want to create priors that are bound to be positive, so lower>0. How can I do this?
StudentT's user avatar
1 vote
0 answers
325 views

EDIT - I have managed to resolve this. See my comment below I am running a Bayesian regression in R using rstanarm using priors I have set, using the following code: priors <- rstanarm::normal(...
William Wormell's user avatar
1 vote
1 answer
423 views

I would like to perform Bayesian Logistic Regression using the bayestestR and rstanarm in R. The output, I believe, is in the log(odds ratio). Do you know of a way in which I can convert everything, i....
HNSKD's user avatar
  • 1,654
0 votes
1 answer
344 views

How can I generate the posterior probability distribution for each outcome for each predictor in an ordinal regression? e.g. what I am looking for is this: library(rstanarm) fit_f <- MASS::polr(...
Misha's user avatar
  • 3,136

15 30 50 per page
1
2 3 4 5