Learn R Programming

CDsampling (version 0.1.6)

Fdet_func_GLM: Determinant of Fisher information matrix for GLM

Description

Determinant of Fisher information matrix for GLM

Usage

Fdet_func_GLM(w, beta, X, link = "logit")

Value

the determinant of Fisher information matrix given X and model parameter beta

Arguments

w

allocation (can be exact or approximate)

beta

GLM model covariate coefficient

X

model matrix

link

link function, default"logit", choose from "logit", "cloglog", "loglog", "probit", and "identity"(for regular linear regression)

Examples

Run this code
w = c(1/3,1/3, 1/3)
beta = c(0.5, 0.5, 0.5)
X = matrix(data=c(1,-1,-1,1,-1,1,1,1,-1), byrow=TRUE, nrow=3)
Fdet_func_GLM(w=w, beta=beta, X=X, link='logit')

Run the code above in your browser using DataLab