Skip to contents

Create a new Theta instance with validation.

Usage

Theta(
  Name = character(),
  InitialEstimates = 1,
  State = "Present",
  Frozen = FALSE,
  StParmName = character(),
  PMLStructure = character()
)

Arguments

Name

A character string representing the name of the Theta instance.

InitialEstimates

An InitialEstimate() class instance or a numerical value for the initial estimate of the Theta or a numeric vector length three with its elements representing the lower bound, initial estimate.

State

Character specifying the presence of the Theta. Possible values are:

  • None The Theta does not exist in the specified PMLStructure.

  • Present The Theta exists in the specified PMLStructure (the default)

  • Searched The presence of the Theta is searched.

Frozen

A logical value indicating whether the Theta will be estimated or not.

StParmName

A character specifying the corresponding structural parameter name. Used for the Name of current Theta construction if it is not specified as 'tv' + StParmName.

PMLStructure

PML structure current theta belongs to

Value

A Theta instance.

See also

InitialEstimate() StParm()

Functions used for Theta specification: InitialEstimate(), create_ModelPD(), create_ModelPK(), modify_Theta()

Examples

# Create a new Theta instance with a name 'tvV' and initial value 2 (no bounds)
theta <- Theta(Name = "tvV", InitialEstimates = 2)