createParameterizedPrior: Create a Cyclops parameterized prior object

View source: R/ParameterizedPrior.R

createParameterizedPriorR Documentation

Create a Cyclops parameterized prior object

Description

createParameterizedPrior creates a Cyclops prior object for use with fitCyclopsModel in which arbitrary R functions parameterize the prior location and variance.

Usage

createParameterizedPrior(
  priorType,
  parameterize,
  values,
  useCrossValidation = FALSE,
  forceIntercept = FALSE
)

Arguments

priorType

Character vector: specifies prior distribution. See below for options

parameterize

Function list: parameterizes location and variance

values

Numeric vector: initial parameter values

useCrossValidation

Logical: Perform cross-validation to determine parameters.

forceIntercept

Logical: Force intercept coefficient into prior

Value

A Cyclops prior object of class inheriting from "cyclopsPrior" and "cyclopsFunctionalPrior" for use with fitCyclopsModel.


Cyclops documentation built on June 22, 2024, 10:24 a.m.