View source: R/newtonRaphsonR.R
newtonRaphsonR | R Documentation |
Estimates alpha and beta parameter with Newton Raphson method by J.N.K. Rao
newtonRaphsonR(data.dir, pcap, maxiter, tol)
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 |
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 |
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.