Learn R Programming

bayesTFR (version 6.1-2)

tfr.parameter.names: Accessing Parameter Names

Description

Functions for accessing names of the MCMC parameters, either country-independent or country-specific.

Usage

tfr.parameter.names(trans = NULL)
tfr.parameter.names.cs(country.code = NULL, trans = NULL, back.trans = TRUE)
tfr.parameter.names.extended()
tfr.parameter.names.cs.extended(country.code = NULL)

tfr3.parameter.names() tfr3.parameter.names.cs(country.code = NULL)

Arguments

trans

It can be NULL or logical. If TRUE, names of the transformable parameters (i.e. ‘alpha’ in case of country-independent parameters, or ‘gamma’ in case of country-specific parameters) are replaced by the names of the transformed parameters (i.e. ‘alphat’, or ‘gammat’). If trans=FALSE, there is no such replacement. If trans=NULL, all parameter names, including the transformable parameters are returned.

country.code

Country code. If it is given, the country-specific parameter names contain the postfix ‘_c\(x\)’ where \(x\) is the country.code.

back.trans

Logical indicating if back-transformable parameter names (i.e. ‘Triangle_c1’, …, ‘Triangle_c3’) should be returned.

Value

tfr.parameter.names returns names of the country-independent Phase II parameters. tfr.parameter.names.cs returns names of the country-specific Phase II parameters. tfr.parameter.names.extended returns names of all country-independent Phase II parameters, including the transformed parameters. Parameters ‘alpha’, ‘delta’, ‘alphat’, and‘deltat’ are in their extended format with the postfix ‘_1’, ‘_2’ and ‘_3’. tfr.parameter.names.cs.extended returns names of all country-specific Phase II parameters, including the transformed parameters. Parameters ‘gamma’ and‘gammat’ are in their extended format with the postfix ‘_1’, ‘_2’ and ‘_3’. tfr3.parameter.names returns names of the country-independent Phase III parameters. tfr3.parameter.names.cs returns names of the country-specific Phase III parameters.

Examples

Run this code
# NOT RUN {
tfr.parameter.names()
tfr.parameter.names.extended()
tfr.parameter.names.cs()
tfr.parameter.names.cs.extended()
tfr3.parameter.names()
tfr3.parameter.names.cs()
# }

Run the code above in your browser using DataLab