Skip to content

Commit

Permalink
updates to the description and readme files
Browse files Browse the repository at this point in the history
  • Loading branch information
mtwesley committed Nov 25, 2024
1 parent 0f5bf6f commit 78b3a15
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 25 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: greta.censored
Title: Extend Greta with Censored Distributions
Title: Censored distributions in greta
Version: 0.1.0
Authors@R: c(
person(
Expand Down
22 changes: 11 additions & 11 deletions R/package.R
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# this R file is just here to produce a package-level helpfile for people to
# look at when they get started

#' @title Extend Greta with Censored Distributions
#' @title Censored distributions in greta
#' @name greta.censored
#'
#' @description Provides additional censored distributions for use with Greta,
#' a probabilistic programming framework for Bayesian modeling. Includes
#' censored versions of Normal, Log-Normal, Student's t, Gamma, Exponential,
#' Weibull, Pareto, and Beta distributions with support for right, left,
#'
#' @description Provides additional censored distributions for use with Greta,
#' a probabilistic programming framework for Bayesian modeling. Includes
#' censored versions of Normal, Log-Normal, Student's t, Gamma, Exponential,
#' Weibull, Pareto, and Beta distributions with support for right, left,
#' and interval censoring.
#'
#'
#' @docType package
#'
#'
#' @importFrom tensorflow tf
#' @importFrom greta .internals
#'
#'
#' @examples
#'
#'
#' # add a simple example here to introduce the package!
#'
#'
NULL
22 changes: 19 additions & 3 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,33 @@ knitr::opts_chunk$set(
out.width = "100%"
)
```
# Extend Greta with Censored Distributions
## greta.censored: Censored distributions in greta

<!-- badges: start -->
<!-- once you've signed into travis and set it to wath your new repository, you can edit the following badges to point to your repo -->
[![Codecov test coverage](https://codecov.io/gh/mtwesley/greta.censored/branch/main/graph/badge.svg)](https://codecov.io/gh/mtwesley/greta.censored?branch=main)
[![R-CMD-check](https://github.com/mtwesley/greta.censored/workflows/R-CMD-check/badge.svg)](https://github.com/mtwesley/greta.censored/actions)
<!-- badges: end -->


## Code of Conduct

Please note that the greta.gp project is released with a [Contributor Code of Conduct](https://greta-dev.github.io/greta.gp/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.

## Overview

`greta.censored` is an R package that extends the functionality of the `greta` package by providing additional censored distributions. These distributions include censored versions of Normal, Log-Normal, Student's t, Gamma, Exponential, Weibull, Pareto, and Beta distributions. The package supports right, left, and interval censoring.
`greta.censored` is an R package that extends [`greta`](https://github.com/greta-dev/greta) to support the following distributions with right, left, and interval censoring:

- Normal
- Log-Normal
- Student's T
- Gamma
- Exponential
- Weibull
- Pareto
- Beta.



## Installation

Expand Down Expand Up @@ -83,4 +99,4 @@ print(dist)

If you use the `greta.censored` package in your research, please cite it as follows:

Wesley, M.-T. (2023). greta.censored: Extend Greta with Censored Distributions. R package version 0.1.0. https://github.com/mtwesley/greta.censored
greta.censored: Censored distributions in greta. R package version 0.1.0. https://github.com/mtwesley/greta.censored
41 changes: 32 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

<!-- README.md is generated from README.Rmd. Please edit that file -->

# Extend Greta with Censored Distributions
## greta.censored: Censored distributions in greta

<!-- badges: start -->
<!-- once you've signed into travis and set it to wath your new repository, you can edit the following badges to point to your repo -->
Expand All @@ -10,26 +11,46 @@ coverage](https://codecov.io/gh/mtwesley/greta.censored/branch/main/graph/badge.
[![R-CMD-check](https://github.com/mtwesley/greta.censored/workflows/R-CMD-check/badge.svg)](https://github.com/mtwesley/greta.censored/actions)
<!-- badges: end -->

## Code of Conduct

Please note that the greta.gp project is released with a [Contributor
Code of
Conduct](https://greta-dev.github.io/greta.gp/CODE_OF_CONDUCT.html). By
contributing to this project, you agree to abide by its terms.

## Overview

`greta.censored` is an R package that extends the functionality of the `greta` package by providing additional censored distributions. These distributions include censored versions of Normal, Log-Normal, Student's t, Gamma, Exponential, Weibull, Pareto, and Beta distributions. The package supports right, left, and interval censoring.
`greta.censored` is an R package that extends
[`greta`](https://github.com/greta-dev/greta) to support the following
distributions with right, left, and interval censoring:

- Normal
- Log-Normal
- Student’s T
- Gamma
- Exponential
- Weibull
- Pareto
- Beta.

## Installation

You can install the development version of `greta.censored` from GitHub with:
You can install the development version of `greta.censored` from GitHub
with:

```r
``` r
# install.packages("devtools")
devtools::install_github("mtwesley/greta.censored")
```

## Usage

Here are some examples demonstrating how to use the main functions of the `greta.censored` package:
Here are some examples demonstrating how to use the main functions of
the `greta.censored` package:

### Example 1: Censored Normal Distribution

```r
``` r
library(greta)
library(greta.censored)

Expand All @@ -50,7 +71,7 @@ print(dist)

### Example 2: Censored Log-Normal Distribution

```r
``` r
library(greta)
library(greta.censored)

Expand All @@ -71,6 +92,8 @@ print(dist)

## Citation

If you use the `greta.censored` package in your research, please cite it as follows:
If you use the `greta.censored` package in your research, please cite it
as follows:

greta.censored: Extend Greta with Censored Distributions. R package version 0.1.0. https://github.com/mtwesley/greta.censored
greta.censored: Censored distributions in greta. R package version
0.1.0. <https://github.com/mtwesley/greta.censored>
2 changes: 1 addition & 1 deletion man/greta.censored.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 78b3a15

Please sign in to comment.