newPrior: Elicitation of the joint prior distribution

Description Usage Arguments Details Value See Also Examples

View source: R/Medbetareg.r

Description

Computation of the joint prior distribution on parameters from expert assessments. Note: the original scales of variables are not required.

Usage

1
newPrior(assess.code, nrep = 100, digits = 6)

Arguments

assess.code

The code for expert assessments. See details.

nrep

The number of bootstrap replications to approximate the prior covariance matrix. Default is 100.

digits

The number of decimals to be shown. Default is 6.

Details

The code for expert assessments must be a character string containing several instructions. Each instruction is delimited from the other by a semicolumn or a line break, and must be of one of the types detailed below.

- Features of the response variable. Syntax:

RESP nameOfResponse scaleOfResponse

where RESP is the keyword of the instruction, nameOfResponse is the name of the response variable, scaleOfResponse is the set of its cutpoints indicated within round brackets and separated by commas. There must be one and only one of this instruction;

- Features of a continuous explanatory variable. Syntax:

CEV nameOfEV scaleOfEV SelectedProp SelectedRange expectedProp expectedRange nCase

where CEV is the keyword of the instruction, nameOfEV is the name of the continuous explanatory variable, scaleOfEV is the set of its cutpoints indicated within round brackets and separated by commas, SelectedProp and SelectedRange are the relative position and the range selected by the expert, expectedProp and expectedRange are the relative position and the range of the expected value of the response assessed by the expert, nCase is the number of patient cases on which the assessment is based. There must be any instances of this instruction, even zero;

- Features of a binary explanatory variable. Syntax:

BEV nameOfEV expectedProp expectedRange nCase

where BEV is the keyword of the instruction, nameOfEV is the name of the binary explanatory variable, expectedProp and expectedRange are the relative position and the range of the expected value of the response assessed by the expert, nCase is the number of patient cases on which the assessment is based. There must be any instances of this instruction, even zero;

- Features of an interaction among a set of explanatory variables. Syntax:

INTER nameOfEV_first ... nameOfEV_last expectedProp expectedRange nCase

where INTER is the keyword of the instruction, nameOfEV_first ... nameOfEV_last are the names of the interacting explanatory variables separated by spaces, expectedProp and expectedRange are the relative position and the range of the expected value of the response assessed by the expert, nCase is the number of patient cases on which the assessment is based. There must be any number of instances of this instruction, even zero; There must be any instances of this instruction, even zero;

- Assessments to determine the precision parameter. Syntax:

TAU expectedProp expectedRange

where TAU is the keyword of the instruction, expectedProp and expectedRange are the relative position and the range of the expected value of the response when all explanatory variables take their respectove neutral values. There must be one and only one of this instruction.

Value

An object of class mbr, that is a list with the following components:

S3 methods available for the mbr class:

See Also

predictive

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
 
assess.test <- 'RESP RespRate (0,15,25,40);
  CEV intraShunt (0,2,5,100) 0.5 hp 0.5 hp 5;
  CEV deadSpace (0,0,30,100) 0.5 hp 0.5 hp 5;
  CEV extraShunt (0,0,5,100) 0.5 hp 0.5 hp 5;
  CEV redAlvSpace (0,0,5,100) 0.5 hp 0.5 hp 5;
  BEV Panic 0.25 hp 25;
  BEV Neuromusc 0.6 lp 100;
  INTER intraShunt deadSpace 0.9 hp 5;
  TAU 0.3 n'
###  NOT RUN: replicate the results in Magrini et al. (2018)
# set.seed(10)
# prior.test <- newPrior(assess.test, nrep=5000)
#############
prior.test <- newPrior(assess.test, nrep=100)

alessandromagrini/Medbetareg documentation built on March 7, 2021, 4:54 p.m.