rgeco | R Documentation |
The Generable API is a HTTP REST API that provides access to data and inferences. The rgeco package provides convenient access to the information in the API in an R-friendly format.
xarray
An object of class python.builtin.module
(inherits from python.builtin.object
) of length 0.
This package requires authentication to the Generable API before you can access data or inferences.
You can configure your login credentials as ENV variables by adding
them to an .Renviron
file in your project root.
The full list of ENV vars supported includes:
GECO_API_USER= GECO_API_PASSWORD= GECO_API_URL=https://geco.generable.com GECO_API_PROJECT= GECO_API_PROJECT_VERSION=
However, only GECO_API_USER and GECO_API_PASSWORD are required.
Once your environment variables are set up, you can run login()
to test authentication.
The data namespace provides access to study or project data stored in the Geco database.
Key methods for accessing these data are:
fetch_biomarkers
: Fetch biomarkers data
fetch_subjects
: Fetch subjects data
fetch_labs
: Fetch labs data
fetch_pkpd
: Fetch and format pkpd data from biomarkers data
list_biomarker_names
: List biomarkers present in the data
The inference namespace provides access to inferences from pre-computed model runs.
A model run is a model fit to a prepared analysis datasets.
Key methods for working with inferences are:
find_runs
: List and search runs
fetch_dataset
: Fetch analysis dataset (training data) used for the run
fetch_predicted_survival
: Fetch inferences for predicted survival
fetch_predicted_biomarkers
: Fetch inferences for predicted biomarkers
fetch_biomarker_params
: Fetch inferences for biomarker-submodel parameters
fetch_hazard_betas
: Fetch inferences for relative hazard according to covariates
fetch_predicted_hazard
: Fetch inferences for predicted hazard over time
fetch_association_state
: Fetch inferences for association state(s), linking biomarker model to hazard model
list_parameter_names
: List and describe parameters available for a model run
list_predictive_names
: List and describe predicted quantities available for a model run
fetch_draws
: Fetch draws for any parameter or predicted quantity available for a model run
fetch_quantiles
: Fetch quantiles for any parameter or predicted quantity available for a model run
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.