Learn R Programming

pql (version 0.1.0)

pqlLogist: pqlLogist

Description

The average weighted estimator and the unknown weighted estimator of the PQL in Poisson-GLMS through damped Gauss-Newton

Usage

pqlLogist(data,G,nk)

Value

betaW

estimation value of betaW

betaA

estimation value of betaA

MSEW

estimation of MSEW

MSEA

estimation of MSEA

Arguments

data

data is a highly correlated data set

G

G is the number of nodes

nk

n1 is the length of each data subset

Examples

Run this code
p<- 5;G<- 20;n<- 1000;nk=200
X<- matrix(runif(n*p, 0, 0.5), ncol = p)
beta =matrix(runif(p, 0, 1),nrow=p)
L=X%*%beta
y<- rpois(n, exp(L))
data=cbind(y,X)
pqlLogist(data,G,nk)

Run the code above in your browser using DataLab