haplo.prior: Prior values for model parameters

Description Usage Arguments Details Value Author(s)

Description

Function only to be called inside bayhapReg

Usage

1
2
haplo.prior(res.freq=NULL,haplos.name=NULL,coeff=NULL,sd.coeff=NULL,
OR=NULL,CI.OR=NULL,sign.OR=NULL)

Arguments

res.freq

An object of class freq returned by bayhapFreq

haplos.name

Vector containing the name of the haplotypes for which prior values of model coefficient and standard deviation are given by the user.

coeff

Prior values for each model coefficient of the chosen haplotypes. These values must be specified for each haplotype respectively in the same order stated in haplos.name. An analysis without prior information or with only some haplotypes with prior information is allowed.

sd.coeff

Prior values for each sd of each model coefficient of the chosen haplotypes. These values must be specified for each haplotype respectively in the same order stated in haplos.name. An analysis without prior information or with only some haplotypes with prior information is allowed.

OR

If the family model is the binomial, this must be a vector of prior OR's for each haplotype name. The order must be the same as in haplos.name

CI.OR

If the family model is the binomial and you have prior information for OR values, this must be a matrix with two columns and so many rows as the number of haplotypes with prior information. Each row represents a haplotype. For each haplotype the first column is the lower limit of the confidence interval, and the second column is the upper limit.

sign.OR

In case of a binomial model with OR and CI.OR informed, this must be a vector containning each significance used in the computation of each CI.OR.

Details

In order to get the internal haplotype labels assigned by the package, first run bayhapFreq. This object is also needed in haplo.prior. It is not necessary to put prior values for all haplotypes in the sample, only choose the ones for which you have prior information. For them, the model coefficient and the standard deviaton for the coefficient must be given. If the family model is the binomial, there are two possible options. You can put prior information for model coefficients (mean and standard deviation) or you can put prior information for the OR, for the confidence interval and significance of each interval, instead of inform about the coefficients.

For a complet example see the help of bayhapReg.

Value

Internal values only used as a parameter information by the function bayhapReg.

Author(s)

Raquel Iniesta riniesta@pssjd.org


BayHap documentation built on May 2, 2019, 12:44 a.m.