The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.
greta
greta.censored
is an R package that extends greta
to
support the following distributions with right, left, and interval
censoring:
You can install the development version of
greta.censored
from GitHub with:
# install.packages("devtools")
::install_github("mtwesley/greta.censored") devtools
Here are some examples demonstrating how to use the main functions of
the greta.censored
package:
library(greta)
library(greta.censored)
# Define the parameters
<- as.greta_array(0)
mean <- as.greta_array(1)
sd <- as.greta_array(c(0, 1, 0))
is_censored <- "right"
censor <- -Inf
lower <- 1
upper
# Create the censored normal distribution
<- normal_censored(mean, sd, is_censored, censor, lower, upper)
dist
# Print the distribution
print(dist)
library(greta)
library(greta.censored)
# Define the parameters
<- as.greta_array(0)
meanlog <- as.greta_array(1)
sdlog <- as.greta_array(c(0, 1, 0))
is_censored <- "left"
censor <- 0
lower <- Inf
upper
# Create the censored log-normal distribution
<- lognormal_censored(meanlog, sdlog, is_censored, censor, lower, upper)
dist
# Print the distribution
print(dist)
Please note that the greta.censored project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.
If you use the greta.censored
package in your research,
please cite it as follows:
greta.censored: Censored Distributions for greta
. R
package version 0.1.0. https://github.com/mtwesley/greta.censored
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.