Learn R Programming

CDsampling (version 0.1.6)

F_func_GLM: Fisher information matrix of generalized linear model (GLM)

Description

Fisher information matrix of generalized linear model (GLM)

Usage

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

Value

object of class "matrix_output", 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)
F_func_GLM(w=w, beta=beta, X=X, link='logit')

Run the code above in your browser using DataLab