vectorRao {saebnocov}R Documentation

Vector g in Newton Raphson Method by J.N.K.Rao

Description

Vector g in Newton Raphson Method by J.N.K.Rao

Usage

vectorRao(alpha, beta, ni, yi)

Arguments

alpha

An alpha estimate value on iterating process

beta

A beta estimate value on iterating process

ni

The number of sample in each area

yi

The number of "success" value in each area

Value

This function returns a value of vector g.

Examples

## load dataset with no weight value
data(dataEB)
temp = pcapdir(dataEB[,-c(3)])

## estimates alpha and beta parameter
## in EB estimate with Moment method by J.N.K.Rao
temp1 = alphabetaEB(data.dir = temp$direst ,pcap = temp$pcap,
                      method = "rao", opt = "moment",
                      maxiter = 100,tol = 0.00001)

##calculates vector g
vectorRao(alpha = temp1$alpha_cap, beta = temp1$beta_cap,
 ni = temp$direst$ni, yi = temp$direst$yi)


[Package saebnocov version 0.1.0 Index]