Title: | Valencia International Bayesian Summer School |
---|---|
Description: | Materials for the introductory course on Bayesian inference. Practicals, data and interactive apps. |
Authors: | VIBASS7 [aut], Facundo Muñoz [ctb, cre] (Cirad, Package developer, <https://orcid.org/0000-0002-5061-4241>), Carmen Armero [ctb] (Universitat de València), Anabel Forte [ctb] (Universitat de València), David Conesa [ctb] (Universitat de València), Mark Brewer [ctb] (Biomathematics and Statistics Scotland (BioSS), <https://orcid.org/0000-0001-7559-389X>), Virgilio Gómez-Rubio [ctb] (Universidad Castilla-La Mancha) |
Maintainer: | Facundo Muñoz <[email protected]> |
License: | GPL-3 |
Version: | 0.0.55 |
Built: | 2024-11-12 05:14:55 UTC |
Source: | https://github.com/VABAR/vibass |
App codes that are available for use in [vibass_app()].
available_apps()
available_apps()
Character vector.
available_apps()
available_apps()
Make a table of several summary statistics with proper formatting.
summary_table( mean, var, quant, ic95 = NULL, prop0 = NULL, prop1 = NULL, label, digits = 2, ... )
summary_table( mean, var, quant, ic95 = NULL, prop0 = NULL, prop1 = NULL, label, digits = 2, ... )
mean |
Real. |
var |
Real. |
quant |
Named numeric vector. Names must be of the form "xx
numeric xx. As from the output of the function |
ic95 |
Numeric vector. |
prop0 |
Real. |
prop1 |
Real. |
label |
Character. Name of the summarised variable. |
digits |
Integer. Number of decimal places to be used. |
... |
Passed to knitr::kable(). |
The table includes the mean, variance and standard deviation, a vector of 3 quantiles at 0.05, 0.50 and 0.95, a 95 numeric value to be interpreted as a proportion above 0 and 1. All values are rounded to the specified number of decimal places.
A knitr_kable object.
summary_table(mean = 1, var = 1, quant = quantile(1:10, 0:4/4), ic95 = 4:5, prop1 = .6, label = "test")
summary_table(mean = 1, var = 1, quant = quantile(1:10, 0:4/4), ic95 = 4:5, prop1 = .6, label = "test")
Overcome default colouring schemes (e.g. for packageStartupMessages()) and make sure some text is printed in a contrasting colour depending on the theme (dark or light) in RStudio.
text_col(x)
text_col(x)
x |
Character. Text to print. |
Uses cli
for printing white text in dark themes or black text
on light themes in RStudio.
Borrowed from package tidyverse
(https://github.com/tidyverse/tidyverse/blob/72af810106d7249c905d6b0f5b8b42dc33e6ac21/R/utils.R)
vibass:::text_col("Hello world") message("Hello world") message(vibass:::text_col("Hello world"))
vibass:::text_col("Hello world") message("Hello world") message(vibass:::text_col("Hello world"))
Launches the Shiny interactive applications for the practicals.
vibass_app(x = NULL)
vibass_app(x = NULL)
x |
integer or character interpretable as integer. See [get_available_apps()] for valid options. |
Data for the VIBASS session on linear models. This is a simulated dataset that includes data about children. The variables in the dataset are:
data("Weights")
data("Weights")
An object of class "data.frame"
.
age. Age (in years).
vegetables. Measure of vegetables consumption.
weight. Weight (in kg).
sex. Girl or Boy.
height. Height (in cm).
ethnicity Asian, Black or European.
VIBASS Team.
data(Weights) summary(Weights) # ML estimates lmW <- lm(weight ~ age, data = Weights) summary(lmW)
data(Weights) summary(Weights) # ML estimates lmW <- lm(weight ~ age, data = Weights) summary(lmW)