-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
55 lines (40 loc) · 1.44 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "80%"
)
```
# standist
<!-- badges: start -->
<!-- badges: end -->
The goal of standist is to provide functions to easily calculate and visualize the probability density functions of the distributions supported by the Stan platform for probabilistic computing (using the same names and parameterizations as Stan). These functions should be helpful for pedagogical purposes (e.g., learning about the distributions and their parameters) as well as for selecting prior distributions for Bayesian data analyses.
## Installation
You can install the development version from [GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("jmgirard/standist")
```
## Example
```{r}
library(standist)
d_student_t(x = -10:10, nu = 3, mu = 0, sigma = 2)
```
```{r}
visualize("student_t(3, 0, 2)", xlim = c(-10, 10))
```
```{r}
visualize("student_t(3, 0, 2)", "student_t(1, 0, 2)", xlim = c(-10, 10))
```
```{r}
visualize("normal(0, 2)", "student_t(1, 0, 2)", xlim = c(-10, 10))
```
## Contributor Code of Conduct
Please note that the 'standist' project is released with a
[Contributor Code of Conduct](.github/CODE_OF_CONDUCT.md).
By contributing to this project, you agree to abide by its terms.