Skip to contents

creating greta arrays

Create greta arrays representing observed data or fixed values

zeros() ones() greta_array()
create data greta arrays
as_data()
convert other objects to greta arrays

variables & distributions

Create variables and assign probability distributions over greta arrays

manipulating greta arrays

Functions and operations for modifying greta arrays

operators
arithmetic, logical and relational operators for greta arrays
functions
functions for greta arrays
extract-replace-combine extract replace cbind rbind c rep
extract, replace and combine greta arrays
iprobit() ilogit() icloglog() icauchit() log1pe() imultilogit()
transformation functions for greta arrays
`%*%` chol2inv() cov2cor() identity() colMeans() rowMeans() colSums() rowSums() sweep() outer() `%o%` backsolve() forwardsolve() apply() tapply() eigen() rdist() abind() diag()
Functions overloaded by greta

modelling

Define and visualise models and fit them to data

extending greta

Write R packages that extend or use greta

internals .internals
internal greta methods

Misc

Misc functions to sort through later

greta-package greta
greta: simple and scalable statistical modelling in R
greta_notes_tf_num_error()
Retrieve python messages.
run_optimiser()
Dispatch optimisation method to right class
simulate(<greta_model>)
Simulate Responses From greta_model Object
gpu_only() cpu_only()
Set GPU or CPU usage
chol2symm()
Cholesky Factor to Symmetric Matrix
chol(<greta_array>)
Compute the Cholesky Factor of a Matrix
as.greta_model()
Convert object to a "greta_model" object
as.unknowns()
Create objects of class 'unknowns' to nicely print ? valued arrays
`dim<-`(<unknowns>)
set dims like on a matrix/array
dim(<node>)
generic to grab dimensions of nodes
is.greta_mcmc_list()
Is object a greta_mcmc_list?
print(<greta_deps_spec>)
Print method for greta python deps
is.greta_array()
Is object a greta array?
print(<greta_mcmc_list>)
Print method for greta MCMC list

Installation helpers

Functions for managing installation of dependencies

greta_remove()
Remove greta's Python dependencies
greta_create_conda_env()
Create conda environment for greta
greta_deps_receipt()
Capture greta python dependencies.
greta_deps_spec()
Specify python dependencies for greta
greta_sitrep()
Greta Situation Report
greta_deps_tf_tfp
Suggested valid Python dependencies for greta
greta_install_miniconda()
Installs miniconda
install_greta_deps() reinstall_greta_deps()
Install Python dependencies for greta
greta_list_py_modules()
List Python modules installed in greta env
greta_set_install_logfile()
Set logfile path when installing greta
write_greta_install_log()
Write greta dependency installation log file
open_greta_install_log()
Read a greta logfile
greta_set_python() greta_reset_python()
Choose the Python environment greta uses
greta_set_deps()
Choose the dependency versions greta installs
remove_greta_env() remove_miniconda() remove_reticulate_uv_cache() greta_remove_all_deps() destroy_greta_deps() reinstall_greta_env() reinstall_miniconda() deprecated
Deprecated removal and reinstallation helpers