inst/doc/Multi_Realization.R

## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## ----setup--------------------------------------------------------------------
library(Colossus)
library(data.table)

## -----------------------------------------------------------------------------
names <- c("a", "r0", "s0")
term_n <- c(0, 0, 0)
tform <- c("loglin", "loglin", "loglin")
modelform <- "M"

a_n <- c(0.1, 0.1, 0.1)
model_control <- list("mcml" = FALSE)
# Setting to true uses the Monte-Carlo Maximum Likelihood option and optimizes the average log-likelihood, setting to false optimizes each realization separately.

## ----eval=FALSE---------------------------------------------------------------
# dose_index <- c("r0", "s0")
# # The two columns in the model to replace are the radiation and sleeping covariates
# dose_realizations <- matrix(
#   c("r0", "r1", "r2", "r3", "r4", "s0", "s1", "s2", "s3", "s4"),
#   nrow = 2
# )
# # columns to be used for realizations 0-4, rows for each column being replaced

Try the Colossus package in your browser

Any scripts or data that you put into this service are public.

Colossus documentation built on June 8, 2025, 1:10 p.m.