Learn R Programming

greta.censored (version 0.1.0)

lognormal_censored: Log-Normal Censored Distribution

Description

Creates a censored log-normal distribution for use with greta.

Usage

lognormal_censored(
  meanlog,
  sdlog,
  is_censored,
  censor = "right",
  lower = NULL,
  upper = NULL,
  dim = length(is_censored)
)

Value

A greta censored log-normal distribution node.

Arguments

meanlog

Mean of the log-transformed normal distribution.

sdlog

Standard deviation of the log-transformed normal distribution.

is_censored

Logical vector indicating whether each observation is censored.

censor

Type of censoring: one of 'right', 'left', 'interval'.

lower

Lower bound for interval censoring (optional).

upper

Upper bound for interval censoring (optional).

dim

Dimension of the data (optional, defaults to length of meanlog).