qw: Quantile Function of W

View source: R/all_functions.R

qwR Documentation

Quantile Function of W

Description

This function computes quantile of W induced by a Beta(a,b) prior on R2 for any link function

Usage

qw(
  p,
  a = 1,
  b = 1,
  b0 = 0,
  link = c("Gaussian", "Logistic", "Poisson", "Poisson_offsets", "ZIP", "NegBinom",
    "Arbitrary"),
  theta = 1,
  mu,
  sigma2,
  disp = FALSE
)

Arguments

p

vector of probabilities

a

value of a for prior R2~Beta(a,b)

b

value of b for prior R2~Beta(a,b)

b0

value of beta0

link

link function used to compute R2. Default options are "Gaussian", "Logistic", "Poisson", "Poisson_offsets", "ZIP" and "NegBinom". Also can have user-inputted link function using "Arbitrary".

theta

dispersion parameter (if necessary)

mu

if link="Arbitrary", then this is the mean function of the linear predictor. May depend on theta

sigma2

if link="Arbitrary", then this is the variance function of the linear predictor. May depend on theta

disp

logical. TRUE if arbitrary link function depends on a dispersion parameter

Value

quantile of W at p


eyanchenko/r2d2glmm documentation built on July 1, 2023, 12:37 p.m.