Git Product home page Git Product logo

Comments (4)

barracuda156 avatar barracuda156 commented on August 24, 2024

Also ANOVA fails to parse (but Binomial and Gaussian models works fine):

> fit_grp <- stan(file = code_grp_aov, data = data_grp, seed = SEED)
SYNTAX ERROR, MESSAGE(S) FROM PARSER:
 error in 'model12db7706b1fe7_grp_aov' at line 5, column 2
  -------------------------------------------------
     3:   int<lower=0> N; // number of observations
     4:   int<lower=0> K; // number of groups
     5:   array[N] int<lower=1, upper=K> x; // discrete group indicators
         ^
     6:   vector[N] y; // real valued observations
  -------------------------------------------------

PARSER EXPECTED: <one of the following:
  a variable declaration, beginning with type,
      (int, real, vector, row_vector, matrix, unit_vector,
       simplex, ordered, positive_ordered,
       corr_matrix, cov_matrix,
       cholesky_corr, cholesky_cov
  or '}' to close variable declarations>
Error in stanc(file = file, model_code = model_code, model_name = model_name,  : 
  failed to parse Stan model 'grp_aov' due to the above error.

from bda_r_demos.

barracuda156 avatar barracuda156 commented on August 24, 2024
> sessionInfo(package=NULL)
R version 4.2.2 (2022-10-31)
Platform: powerpc-apple-darwin10.0.0d2 (32-bit)
Running under: OS X Snow Leopard 10.6

Matrix products: default
BLAS:   /opt/local/Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRblas.dylib
LAPACK: /opt/local/Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRlapack.dylib

locale:
[1] en_US.utf-8/en_US.utf-8/en_US.utf-8/C/en_US.utf-8/en_US.utf-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] rprojroot_2.0.3      shinystan_2.6.0      shiny_1.7.4          bayesplot_1.10.0     gridExtra_2.3        loo_2.5.1           
 [7] rstan_2.21.8         ggplot2_3.4.1        StanHeaders_2.21.0-7 tidyr_1.3.0         

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.10          lattice_0.20-45      prettyunits_1.1.1    ps_1.7.2             zoo_1.8-11           gtools_3.9.4        
 [7] digest_0.6.31        utf8_1.2.3.9002      mime_0.12            plyr_1.8.8           R6_2.5.1             backports_1.4.1     
[13] stats4_4.2.2         colourpicker_1.2.0   pillar_1.8.1.9004    rlang_1.0.6          miniUI_0.1.1.1       callr_3.7.3         
[19] DT_0.27              checkmate_2.1.0      labeling_0.4.2       shinythemes_1.2.0    shinyjs_2.1.0        stringr_1.5.0       
[25] htmlwidgets_1.6.1    igraph_1.4.1         munsell_0.5.0        compiler_4.2.2       httpuv_1.6.9         pkgconfig_2.0.3     
[31] base64enc_0.1-3      pkgbuild_1.4.0       htmltools_0.5.4      tidyselect_1.2.0     tensorA_0.36.2       tibble_3.1.8.9005   
[37] codetools_0.2-18     threejs_0.3.3        matrixStats_0.63.0   fansi_1.0.3          crayon_1.5.2         dplyr_1.1.0         
[43] withr_2.5.0          later_1.3.0          distributional_0.3.1 grid_4.2.2           xtable_1.8-4         gtable_0.3.1        
[49] lifecycle_1.0.3      posterior_1.4.0      magrittr_2.0.3       scales_1.2.1         RcppParallel_5.1.6   stringi_1.7.12      
[55] cli_3.6.0            farver_2.1.1         reshape2_1.4.4       promises_1.2.0.1     dygraphs_1.1.1.6     ellipsis_0.3.2      
[61] xts_0.13.0           generics_0.1.3       vctrs_0.5.2          tools_4.2.2          glue_1.6.2           markdown_1.5        
[67] purrr_1.0.1          crosstalk_1.2.0      abind_1.4-5          processx_3.8.0       parallel_4.2.2       fastmap_1.1.1       
[73] inline_0.3.19        colorspace_2.1-0

from bda_r_demos.

avehtari avatar avehtari commented on August 24, 2024

Sorry, I had missed this. Upgrade to a newer RStan, e.g. 2.26.23 available in CRAN works.

from bda_r_demos.

barracuda156 avatar barracuda156 commented on August 24, 2024

@avehtari Yes, we have already upgraded it in Macports: https://ports.macports.org/port/R-rstan/details

from bda_r_demos.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.