newtonRaphsonR {saebnocov} | R Documentation |
Estimates alpha and beta parameter with Newton Raphson method by J.N.K. Rao
Description
Estimates alpha and beta parameter with Newton Raphson method by J.N.K. Rao
Usage
newtonRaphsonR(data.dir, pcap, maxiter, tol)
Arguments
data.dir |
Direct estimates of the data from function pcapdir |
pcap |
weighted sample mean and variance from function pcapdir |
maxiter |
the Maximum iteration value |
tol |
Tolerance error value in iteration |
Value
This function returns a data frame with following objects :
alpha_cap |
an alpha estimator by Newton Raphson method of J.N.K.Rao |
beta_cap |
an beta estimator by Newton Raphson method of J.N.K.Rao |
Examples
## load dataset with no weight value
data(dataEB)
temp = pcapdir(dataEB[,-c(3)])
newtonRaphsonR(data.dir = temp$direst, pcap = temp$pcap,
maxiter = 100, tol = 0.00001)
##load dataset with weight value
data(dataEB)
temp = pcapdir(dataEB)
newtonRaphsonR(data.dir = temp$direst, pcap = temp$pcap,
maxiter = 100, tol = 0.00001)
[Package saebnocov version 0.1.0 Index]