Package: greta 0.5.0.9000
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:
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')) |
Bug tracker:https://github.com/greta-dev/greta/issues
- greta_deps_tf_tfp - Suggested valid Python dependencies for greta
Last updated 3 hours agofrom:39ef12f0b9. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 13 2024 |
R-4.5-win | OK | Nov 13 2024 |
R-4.5-linux | OK | Nov 13 2024 |
R-4.4-win | OK | Nov 13 2024 |
R-4.4-mac | OK | Nov 13 2024 |
R-4.3-win | OK | Nov 13 2024 |
R-4.3-mac | OK | Nov 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.Rmd
usingknitr::rmarkdown
on Nov 13 2024.Last update: 2024-10-10
Started: 2017-05-22
FAQ
Rendered fromfaq.Rmd
usingknitr::rmarkdown
on Nov 13 2024.Last update: 2024-08-01
Started: 2021-12-14
Get started with greta
Rendered fromget_started.Rmd
usingknitr::rmarkdown
on Nov 13 2024.Last update: 2024-10-10
Started: 2017-06-20
Installing Dependencies
Rendered frominstallation.Rmd
usingknitr::rmarkdown
on Nov 13 2024.Last update: 2024-08-21
Started: 2024-08-21
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Vectorised is.null | are_null |
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 |
Remove greta dependencies and remove miniconda | destroy_greta_deps |
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 cbind extract extract-replace-combine rbind rep replace |
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 |
Retrieve python messages. | greta_notes_tf_num_error |
Set logfile path when installing greta | greta_set_install_logfile |
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 | %*% abind apply backsolve chol2inv colMeans colSums cov2cor diag eigen forwardsolve identity 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 |
Helpers to remove, and reinstall python environments and miniconda | reinstallers reinstall_greta_env reinstall_miniconda remove_greta_env remove_miniconda |
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 |