rstanarm

Not able to install rstanarm on Ubuntu 18.04 LTS

霸气de小男生 提交于 2021-02-08 12:29:29
问题 I'm not able to install rstanarm on R 3.5.3 running on Ubuntu 18.04 LTS . I used the following commands: install.packages("rstanarm") and devtools::install_github("stan-dev/rstanarm", build_vignettes = FALSE) and both throws the following error: Execution halted Makevars:17: recipe for target 'stan_files/lm.cc' failed make: *** [stan_files/lm.cc] Error 1 ERROR: compilation failed for package ‘rstanarm’ sessionInfo sessionInfo() R version 3.5.3 (2019-03-11) Platform: x86_64-pc-linux-gnu (64

Calculating marginal effects in binomial logit using rstanarm

邮差的信 提交于 2019-12-22 17:42:11
问题 I am trying to get the marginal effects, according to this post: http://andrewgelman.com/2016/01/14/rstanarm-and-more/ td <- readRDS("some data") CHAINS <- 1 CORES <- 1 SEED <- 42 ITERATIONS <- 2000 MAX_TREEDEPTH <- 9 md <- td[,.(y,x1,x2)] # selection the columns i need. y is binary glm1 <- stan_glm(y~x1+x2, data = md, family = binomial(link="logit"), prior = NULL, prior_intercept = NULL, chains = CHAINS, cores = CORES, seed = SEED, iter = ITERATIONS, control=list(max_treedepth=MAX_TREEDEPTH)

Calculating marginal effects in binomial logit using rstanarm

久未见 提交于 2019-12-06 13:15:47
I am trying to get the marginal effects, according to this post: http://andrewgelman.com/2016/01/14/rstanarm-and-more/ td <- readRDS("some data") CHAINS <- 1 CORES <- 1 SEED <- 42 ITERATIONS <- 2000 MAX_TREEDEPTH <- 9 md <- td[,.(y,x1,x2)] # selection the columns i need. y is binary glm1 <- stan_glm(y~x1+x2, data = md, family = binomial(link="logit"), prior = NULL, prior_intercept = NULL, chains = CHAINS, cores = CORES, seed = SEED, iter = ITERATIONS, control=list(max_treedepth=MAX_TREEDEPTH) ) # launch_shinystan(glm1) tmp <- posterior_predict(glm1,newdata=md[,.(x1,x2)]) Issue After running