Package: greta 0.5.0.9000

Nicholas Tierney

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.

Authors:Nick Golding [aut], Nicholas Tierney [aut, cre], Simon Dirmeier [ctb], Adam Fleischhacker [ctb], Shirin Glander [ctb], Martin Ingram [ctb], Lee Hazel [ctb], Lionel Hertzog [ctb], Tiphaine Martin [ctb], Matt Mulvahill [ctb], Michael Quinn [ctb], David Smith [ctb], Paul Teetor [ctb], Jian Yen [ctb]

greta_0.5.0.9000.tar.gz
greta_0.5.0.9000.zip(r-4.5)greta_0.5.0.9000.zip(r-4.4)greta_0.5.0.9000.zip(r-4.3)
greta_0.5.0.9000.tgz(r-4.4-any)greta_0.5.0.9000.tgz(r-4.3-any)
greta_0.5.0.9000.tar.gz(r-4.5-noble)greta_0.5.0.9000.tar.gz(r-4.4-noble)
greta_0.5.0.9000.tgz(r-4.4-emscripten)greta_0.5.0.9000.tgz(r-4.3-emscripten)
greta.pdf |greta.html
greta/json (API)
NEWS

# Install 'greta' in R:
install.packages('greta', repos = c('https://greta-dev.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/greta-dev/greta/issues

Datasets:

On CRAN:

12.23 score 532 stars 5 packages 326 scripts 451 downloads 2 mentions 121 exports 45 dependencies

Last updated 9 days agofrom:39ef12f0b9. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 13 2024
R-4.5-winOKNov 13 2024
R-4.5-linuxOKNov 13 2024
R-4.4-winOKNov 13 2024
R-4.4-macOKNov 13 2024
R-4.3-winOKNov 13 2024
R-4.3-macOKNov 13 2024

Exports:.internals%*%abindadadeltaadagradadagrad_daadamadamaxapplyare_nullas_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_notes_tf_num_errorgreta_set_install_logfilegreta_sitrephmchypergeometricicauchiticloglogidentityilogitimultilogitinitialsinstall_greta_depsinstall_tensorflowinverse_gammaiprobitis.greta_arrayis.greta_mcmc_listjointl_bfgs_blaplacelkj_correlationlog1pelogisticlognormalmcmcmixturemodelmomentummultinomialmultivariate_normalnadamnegative_binomialnelder_meadnewton_cgnormalonesopen_greta_install_logoptordered_variableparetopoissonpowellproximal_adagradproximal_gradient_descentrdistreinstall_greta_depsreinstall_greta_envreinstall_minicondaremove_greta_envremove_minicondarms_proprowMeansrowSumsrun_optimiserrwmhsimplex_variablesliceslsqpstashed_samplesstudentsweeptapplytncuniformvariableweibullwishartwrite_greta_install_logzeros

Dependencies:abindbackportsbase64enccallrclicodacodetoolsconfigcrayondigestfutureglobalsglueherehmsjsonlitelatticelifecyclelistenvmagrittrMatrixparallellypkgconfigpngprettyunitsprocessxprogresspsR6rappdirsRcppRcppTOMLreticulaterlangrprojrootrstudioapitensorflowtfautographtfrunstidyselectvctrswhiskerwithryamlyesno

Example models

Rendered fromexample_models.Rmdusingknitr::rmarkdownon Nov 13 2024.

Last update: 2024-10-10
Started: 2017-05-22

FAQ

Rendered fromfaq.Rmdusingknitr::rmarkdownon Nov 13 2024.

Last update: 2024-08-01
Started: 2021-12-14

Get started with greta

Rendered fromget_started.Rmdusingknitr::rmarkdownon Nov 13 2024.

Last update: 2024-10-10
Started: 2017-06-20

Installing Dependencies

Rendered frominstallation.Rmdusingknitr::rmarkdownon Nov 13 2024.

Last update: 2024-08-21
Started: 2024-08-21

Readme and manuals

Help Manual

Help pageTopics
Vectorised is.nullare_null
convert other objects to greta arraysas_data
Convert object to a "greta_model" objectas.greta_model
Create objects of class 'unknowns' to nicely print ? valued arraysas.unknowns
calculate greta arrays given fixed valuescalculate
Compute the Cholesky Factor of a Matrixchol.greta_array
Cholesky Factor to Symmetric Matrixchol2symm
Remove greta dependencies and remove minicondadestroy_greta_deps
generic to grab dimensions of nodesdim.node
set dims like on a matrix/arraydim<-.unknowns
define a distribution over datadistribution distribution<-
probability distributionsbernoulli 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 arraysc cbind extract extract-replace-combine rbind rep replace
functions for greta arraysfunctions
Set GPU or CPU usagecpu_only gpu_cpu gpu_only
greta: simple and scalable statistical modelling in Rgreta-package greta
Create conda environment for gretagreta_create_conda_env
Capture greta python dependencies.greta_deps_receipt
Specify python dependencies for gretagreta_deps_spec
Suggested valid Python dependencies for gretagreta_deps_tf_tfp
Installs minicondagreta_install_miniconda
Retrieve python messages.greta_notes_tf_num_error
Set logfile path when installing gretagreta_set_install_logfile
Greta Situation Reportgreta_sitrep
Statistical inference on greta models.extra_samples inference initials mcmc opt stashed_samples
Install Python dependencies for gretainstall_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 distributionsjoint
mixtures of probability distributionsmixture
greta model objectsmodel plot.greta_model print.greta_model
Read a greta logfileopen_greta_install_log
arithmetic, logical and relational operators for greta arraysoperators
optimisation methodsadadelta 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%*% abind apply backsolve chol2inv colMeans colSums cov2cor diag eigen forwardsolve identity overloaded rdist rowMeans rowSums sweep tapply
Print method for greta python depsprint.greta_deps_spec
Print method for greta MCMC listprint.greta_mcmc_list
Helpers to remove, and reinstall python environments and minicondareinstallers reinstall_greta_env reinstall_miniconda remove_greta_env remove_miniconda
Dispatch optimisation method to right classrun_optimiser
MCMC samplershmc rwmh samplers slice
Simulate Responses From 'greta_model' Objectsimulate.greta_model
create data greta arraysgreta_array ones structures zeros
transformation functions for greta arraysicauchit icloglog ilogit imultilogit inverse-links iprobit log1pe transforms
create greta variablescholesky_variable ordered_variable simplex_variable variable
Write greta dependency installation log filewrite_greta_install_log