Package: greta 0.6.0
greta: Simple and 'Scalable' Statistical Modelling in R
Write statistical models in R and fit them by 'MCMC' and optimisation on 'CPUs' and 'GPUs', using Google 'TensorFlow'. 'greta' lets you write your own model like in 'BUGS', 'JAGS' and 'Stan', except that you write models right in R, it scales well to massive datasets, and it’s easy to extend and build on. See the website for more information, including tutorials, examples, package documentation, and the 'greta' forum. This work is discussed at Golding (2019) <doi:10.21105/joss.01601>.
Authors:
greta_0.6.0.tar.gz
greta_0.6.0.tar.gz(r-4.7-any)greta_0.6.0.tar.gz(r-4.6-any)
greta_0.6.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
greta/json (API)
| # Install 'greta' in R: |
| install.packages('greta', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/greta-dev/greta/issues
Pkgdown/docs site:https://greta-dev.github.io
- greta_deps_tf_tfp - Suggested valid Python dependencies for greta
Last updated from:89cb030cc6. Checks:4 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 216 | ||
| source / vignettes | OK | 264 | ||
| linux-release-x86_64 | OK | 208 | ||
| wasm-release | OK | 155 |
Exports:.internals%*%%o%abindadadeltaadagradadagrad_daadamadamaxapplyas_dataas.greta_modelas.unknownsbacksolvebernoullibetabeta_binomialbfgsbinomialcalculatecategoricalcauchycgchi_squaredchol2invchol2symmcholesky_variablecobylacolMeanscolSumscov2corcpu_onlydestroy_greta_depsdiagdirichletdirichlet_multinomialdistributiondistribution<-eigenexponentialextra_samplesfforwardsolveftrlgammagpu_onlygradient_descentgreta_arraygreta_create_conda_envgreta_deps_receiptgreta_deps_specgreta_install_minicondagreta_list_py_modulesgreta_notes_tf_num_errorgreta_removegreta_remove_all_depsgreta_reset_pythongreta_set_depsgreta_set_install_logfilegreta_set_pythongreta_sitrephmchypergeometricicauchiticloglogidentityilogitimultilogitinitialsinstall_greta_depsinstall_tensorflowinverse_gammaiprobitis.greta_arrayis.greta_mcmc_listjointl_bfgs_blaplacelkj_correlationlog1pelogisticlognormalmcmcmixturemodelmomentummultinomialmultivariate_normalnadamnegative_binomialnelder_meadnewton_cgnormalonesopen_greta_install_logoptordered_variableouterparetopoissonpowellproximal_adagradproximal_gradient_descentpy_module_availablepy_versionrdistreinstall_greta_depsreinstall_greta_envreinstall_minicondaremove_greta_envremove_minicondaremove_reticulate_uv_cacherms_proprowMeansrowSumsrun_optimiserrwmhsimplex_variablesliceslsqpstashed_samplesstudentsweeptapplytncuniformvariableweibullwishartwrite_greta_install_logzeros
Dependencies:abindbackportsbase64enccallrclicodacodetoolsconfigcrayondigestfutureglobalsglueherehmsjsonlitelatticelifecyclelistenvmagrittrMatrixotelparallellypkgconfigpngprettyunitsprocessxprogresspsR6rappdirsRcppRcppTOMLreticulaterlangrprojrootrstudioapitensorflowtfautographtfrunstidyselectvctrswhiskerwithryamlyesno
Last update: 2026-07-20
Started: 2017-06-26
Last update: 2026-07-20
Started: 2022-03-15
Last update: 2026-07-20
Started: 2017-06-26
Last update: 2026-07-20
Started: 2024-11-12
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| convert other objects to greta arrays | as_data |
| Convert object to a "greta_model" object | as.greta_model |
| Create objects of class 'unknowns' to nicely print ? valued arrays | as.unknowns |
| calculate greta arrays given fixed values | calculate |
| Compute the Cholesky Factor of a Matrix | chol.greta_array |
| Cholesky Factor to Symmetric Matrix | chol2symm |
| generic to grab dimensions of nodes | dim.node |
| set dims like on a matrix/array | dim<-.unknowns |
| define a distribution over data | distribution distribution<- |
| probability distributions | bernoulli beta beta_binomial binomial categorical cauchy chi_squared dirichlet dirichlet_multinomial distributions exponential f gamma hypergeometric inverse_gamma laplace lkj_correlation logistic lognormal multinomial multivariate_normal negative_binomial normal pareto poisson student uniform weibull wishart |
| extract, replace and combine greta arrays | c.greta_array cbind.greta_array diag.greta_array dim.greta_array dim<-.greta_array extract extract-replace-combine head.greta_array length.greta_array rbind.greta_array rep.greta_array replace tail.greta_array [.greta_array [<-.greta_array |
| functions for greta arrays | functions |
| Set GPU or CPU usage | cpu_only gpu_cpu gpu_only |
| greta: simple and scalable statistical modelling in R | greta-package greta |
| Create conda environment for greta | greta_create_conda_env |
| Capture greta python dependencies. | greta_deps_receipt |
| Specify python dependencies for greta | greta_deps_spec |
| Suggested valid Python dependencies for greta | greta_deps_tf_tfp |
| Installs miniconda | greta_install_miniconda |
| List Python modules installed in greta env | greta_list_py_modules |
| Retrieve python messages. | greta_notes_tf_num_error |
| Remove greta's Python dependencies | greta_remove |
| Choose the dependency versions greta installs | greta_set_deps |
| Set logfile path when installing greta | greta_set_install_logfile |
| Choose the Python environment greta uses | greta_reset_python greta_set_python |
| Greta Situation Report | greta_sitrep |
| Statistical inference on greta models. | extra_samples inference initials mcmc opt stashed_samples |
| Install Python dependencies for greta | install_greta_deps reinstall_greta_deps |
| internal greta methods | .internals internals |
| Is object a greta array? | is.greta_array |
| Is object a 'greta_mcmc_list'? | is.greta_mcmc_list |
| define joint distributions | joint |
| mixtures of probability distributions | mixture |
| greta model objects | model plot.greta_model print.greta_model |
| Read a greta logfile | open_greta_install_log |
| arithmetic, logical and relational operators for greta arrays | operators |
| optimisation methods | adadelta adagrad adagrad_da adam adamax bfgs cg cobyla ftrl gradient_descent l_bfgs_b momentum nadam nelder_mead newton_cg optimisers powell proximal_adagrad proximal_gradient_descent rms_prop slsqp tnc |
| Functions overloaded by greta | %*% %o% abind apply backsolve chol2inv colMeans colSums cov2cor diag eigen forwardsolve identity outer overloaded rdist rowMeans rowSums sweep tapply |
| Print method for greta python deps | print.greta_deps_spec |
| Print method for greta MCMC list | print.greta_mcmc_list |
| Dispatch optimisation method to right class | run_optimiser |
| MCMC samplers | hmc rwmh samplers slice |
| Simulate Responses From 'greta_model' Object | simulate.greta_model |
| create data greta arrays | greta_array ones structures zeros |
| transformation functions for greta arrays | icauchit icloglog ilogit imultilogit inverse-links iprobit log1pe transforms |
| create greta variables | cholesky_variable ordered_variable simplex_variable variable |
| Write greta dependency installation log file | write_greta_install_log |
