glmbfamfunc: Return family functions used during simulation and post...

Description Usage Arguments Details Value Examples

View source: R/Envfamfunc.R

Description

This function takes as input a family object and returns a set of functions that are used during simulation and summarization of models using the glmb, and rglmb functions.

Usage

1
2
3
4
glmbfamfunc(family)

## S3 method for class 'glmbfamfunc'
print(x, ...)

Arguments

family

an object of class family

x

an object of class "glmbfamfunc" for which a printed output is desired.

...

additional optional arguments

Details

This function takes as input a family and returns a set of functions related to the family.

Value

A list with the following components

f1

Negative log-likelihood function

f2

Negative log-posterior function

f3

Gradient function for negative log-posterior function

f4

Deviance function

f7

Another function

Examples

1
2
3
4
5
6
7
8
9
famfunc<-glmbfamfunc(binomial(logit))

print(famfunc)

f1<-famfunc$f1
f2<-famfunc$f2
f3<-famfunc$f3
f5<-famfunc$f5
f6<-famfunc$f6

knygren/glmbayes documentation built on Sept. 4, 2020, 4:39 p.m.