Package pearson7. June 22, 2016

Similar documents
Package sklarsomega. May 24, 2018

Package invgamma. May 7, 2017

Package bpp. December 13, 2016

Package skellam. R topics documented: December 15, Version Date

Package depth.plot. December 20, 2015

Package sbgcop. May 29, 2018

Package emg. R topics documented: May 17, 2018

Package leiv. R topics documented: February 20, Version Type Package

Package RootsExtremaInflections

Package elhmc. R topics documented: July 4, Type Package

Package ForwardSearch

Package Delaporte. August 13, 2017

Package condmixt. R topics documented: February 19, Type Package

Package clogitboost. R topics documented: December 21, 2015

Package gtheory. October 30, 2016

Package Bhat. R topics documented: February 19, Title General likelihood exploration. Version

Package msir. R topics documented: April 7, Type Package Version Date Title Model-Based Sliced Inverse Regression

Package rnmf. February 20, 2015

Package beam. May 3, 2018

Package RTransferEntropy

Package locfdr. July 15, Index 5

Package BNN. February 2, 2018

Package darts. February 19, 2015

Package mpmcorrelogram

Package idmtpreg. February 27, 2018

Package DiscreteLaplace

Package ICGOR. January 13, 2017

Package severity. February 20, 2015

Package esaddle. R topics documented: January 9, 2017

Package gk. R topics documented: February 4, Type Package Title g-and-k and g-and-h Distribution Functions Version 0.5.

Package survidinri. February 20, 2015

Package SK. May 16, 2018

Package LindleyR. June 23, 2016

Package horseshoe. November 8, 2016

Package gma. September 19, 2017

Package jmuoutlier. February 17, 2017

Package clustergeneration

Package hurdlr. R topics documented: July 2, Version 0.1

Package EL. February 19, 2015

Package AID. R topics documented: November 10, Type Package Title Box-Cox Power Transformation Version 2.3 Date Depends R (>= 2.15.

Package alphaoutlier

The evdbayes Package

Package MultisiteMediation

Package scio. February 20, 2015

Package jmcm. November 25, 2017

Package sscor. January 28, 2016

Package CEC. R topics documented: August 29, Title Cross-Entropy Clustering Version Date

Package gambin. July 12, 2018

Package unbalhaar. February 20, 2015

Package rbvs. R topics documented: August 29, Type Package Title Ranking-Based Variable Selection Version 1.0.

Package ppcc. June 28, 2017

Package ensemblepp. R topics documented: September 20, Title Ensemble Postprocessing Data Sets. Version

The sbgcop Package. March 9, 2007

Package msbp. December 13, 2018

Package ExtremeBounds

Package dhsic. R topics documented: July 27, 2017

Package goftest. R topics documented: April 3, Type Package

Package ShrinkCovMat

Package rgabriel. February 20, 2015

Package GORCure. January 13, 2017

Package dhga. September 6, 2016

Package sdprisk. December 31, 2016

Package mcmcse. July 4, 2017

Package alabama. March 6, 2015

The nltm Package. July 24, 2006

Package fwsim. October 5, 2018

Package CoxRidge. February 27, 2015

Package EnergyOnlineCPM

Package GPfit. R topics documented: April 2, Title Gaussian Processes Modeling Version Date

Package Select. May 11, 2018

Package FDRSeg. September 20, 2017

Package sindyr. September 10, 2018

Package BayesNI. February 19, 2015

Package EMVS. April 24, 2018

Package penmsm. R topics documented: February 20, Type Package

Package SimSCRPiecewise

Package rarhsmm. March 20, 2018

Package varband. November 7, 2016

Package CorrMixed. R topics documented: August 4, Type Package

Package factorqr. R topics documented: February 19, 2015

Package OGI. December 20, 2017

Package misctools. November 25, 2016

Package effectfusion

Package bivariate. December 10, 2018

Package JointModel. R topics documented: June 9, Title Semiparametric Joint Models for Longitudinal and Counting Processes Version 1.

Package HIMA. November 8, 2017

Package Grace. R topics documented: April 9, Type Package

Package PolynomF. May 17, 2018

Package gumbel. February 15, 2013

Package polypoly. R topics documented: May 27, 2017

Package EBMAforecast

Package lomb. February 20, 2015

Package LCAextend. August 29, 2013

Package chemcal. July 17, 2018

Package netcoh. May 2, 2016

Package IsingFit. September 7, 2016

Package diffeq. February 19, 2015

Package anoint. July 19, 2015

Package SuppDists. September 23, 2016

Package ltsbase. R topics documented: February 20, 2015

Transcription:

Version 1.0-2 Date 2016-06-21 Package pearson7 June 22, 2016 Title Maximum Likelihood Inference for the Pearson VII Distribution with Shape Parameter 3/2 Author John Hughes Maintainer John Hughes <jphughesjr@gmail.com> Supports maximum likelihood inference for the Pearson VII distribution with shape parameter 3/2 and free location and scale parameters. This distribution is relevant when estimating the velocity of processive motor proteins with random detachment. License GPL (>= 2) Collate 'pearson7.r' 'zzz.r' RoxygenNote 5.0.1 NeedsCompilation no Repository CRAN Date/Publication 2016-06-22 05:42:12 R topics documented: dpearson7.......................................... 2 pearson7.fit......................................... 3 pearson7.objective..................................... 4 ppearson7.......................................... 5 qpearson7.......................................... 6 rpearson7.......................................... 7 summary.pearson7..................................... 8 Index 9 1

2 dpearson7 dpearson7 Evaluate the density for the Pearson VII distribution with shape parameter 3/2. Evaluate the density for the Pearson VII distribution with shape parameter 3/2. dpearson7(x, mu = 0, sigma = 1, log = FALSE) x mu sigma log vector of quantiles. vector of means. vector of scales. logical; if TRUE, probabilities p are given as log(p). If mu is not specified, it assumes the default value of 0. If sigma is not specified, it assumes the default value of 1. The Pearson VII distribution with location µ, scale σ, and shape 3/2 has density f(x) = 1/(2σ)[1 + {(x µ)/σ} 2 ] 3/2. the density. Pearson, K. (1916) Mathematical contributions to the theory of evolution. xix. second supplement to a memoir on skew variation. Philosophical Transactions of the Royal Society of London. Series A, Containing Papers of a Mathematical or Physical Character, 216, 429 457. ppearson7, qpearson7, rpearson7

pearson7.fit 3 curve(dpearson7(x), -5, 5, lwd = 2, n = 500, ylab = "f(x)") curve(dnorm(x), lwd = 2, lty = 2, n = 500, add = TRUE) pearson7.fit Find the MLE for a sample from the Pearson VII distribution with shape parameter 3/2. Find the MLE for a sample from the Pearson VII distribution with shape parameter 3/2. pearson7.fit(y, mu0 = median(y), sigma0 = sqrt(3) * median(abs(y - median(y))), tol = 1e-08) y a vector of observations. mu0 an initial value for µ. sigma0 an initial value for σ. tol the convergence tolerance. This function uses a Newton-Raphson algorithm to find the MLE. The starting values for µ and σ are the sample median and 3 times the sample MAD, respectively. See the reference for details. pearson7.fit returns an object of class pearson7, which is a list containing the following components. theta.hat the estimates of µ and σ. hessian iterations value the Hessian matrix evaluated at theta.hat. the number of iterations required to attain convergence. the value of the log likelihood at theta.hat.

4 pearson7.objective pearson7.objective y = rpearson7(100, 100, 10) fit = pearson7.fit(y) fit summary(fit) pearson7.objective Compute the negative log likelihood for a sample. Compute the negative log likelihood for a sample. pearson7.objective(params, y) params y a vector of parameter values. a vector of observations. This function computes the negative log likelihood for (µ, σ) given a sample. This function can be optimized using optim, but it is better to use pearson7.fit. the negative log likelihood. dpearson7, pearson7.fit

ppearson7 5 ppearson7 Evaluate the distribution function for the Pearson VII distribution with shape parameter 3/2. Evaluate the distribution function for the Pearson VII distribution with shape parameter 3/2. ppearson7(q, mu = 0, sigma = 1, lower.tail = TRUE, log.p = FALSE) q mu sigma lower.tail log.p vector of quantiles. vector of means. vector of scales. logical; if TRUE (default), probabilities are P (X x), otherwise P (X > x). logical; if TRUE, probabilities p are given as log(p). If mu is not specified, it assumes the default value of 0. If sigma is not specified, it assumes the default value of 1. The Pearson VII distribution with location µ, scale σ, and shape 3/2 has cdf F (x) = {1 + (x µ)/ σ 2 + (x µ) 2 }/2. the probability. dpearson7, qpearson7, rpearson7 curve(ppearson7(x), 0, 5, lwd = 2, ylim = c(0.8, 1), ylab = "F(x)") curve(pnorm(x), lwd = 2, lty = 2, add = TRUE)

6 qpearson7 qpearson7 Evaluate the quantile function for the Pearson VII distribution with shape parameter 3/2. Evaluate the quantile function for the Pearson VII distribution with shape parameter 3/2. qpearson7(p, mu = 0, sigma = 1, lower.tail = TRUE, log.p = FALSE) p mu sigma lower.tail log.p vector of probabilities. vector of means. vector of scales. logical; if TRUE (default), probabilities are P (X x), otherwise P (X > x). logical; if TRUE, probabilities p are given as log(p). If mu is not specified, it assumes the default value of 0. If sigma is not specified, it assumes the default value of 1. The Pearson VII distribution with location µ, scale σ, and shape 3/2 has quantile function F 1 (x) = µ + (σ/2)(2x 1)/ x(1 x). the quantile. dpearson7, ppearson7, rpearson7 curve(qpearson7(x), 0, 1, lwd = 2, ylab = expression(f^{-1}*(x))) curve(qnorm(x), lwd = 2, lty = 2, n = 500, add = TRUE)

rpearson7 7 rpearson7 Generate random deviates from a Pearson VII distribution with shape parameter 3/2. Generate random deviates from a Pearson VII distribution with shape parameter 3/2. rpearson7(n, mu = 0, sigma = 1) n mu sigma number of observations. vector of means. vector of scales. If mu is not specified, it assumes the default value of 0. If sigma is not specified, it assumes the default value of 1. random deviates. Devroye, L. (1986) Non-Uniform Random Variate Generation. New York: Springer-Verlag. dpearson7, ppearson7, qpearson7 y = rpearson7(1000) hist(y, prob = TRUE, breaks = 100, col = "gray") curve(dpearson7(x), lwd = 2, col = "blue", add = TRUE)

8 summary.pearson7 summary.pearson7 Print a summary of a Pearson VII fit. Print a summary of a Pearson VII fit. ## S3 method for class 'pearson7' summary(object, alpha = 0.05, digits = 4,...) object alpha an object of class pearson7, the result of a call to pearson7.fit. the significance level used to compute the confidence intervals. The default is 0.05. digits the number of significant digits to display. The default is 4.... additional arguments. This function displays (1) a table of estimates, (2) the value of the log likelihood, and (3) the number of Newton-Raphson iterations. Each row of the table of estimates shows the parameter estimate and the approximate (1 α)100% confidence interval for the parameter. pearson7.fit

Index dpearson7, 2, 4 7 optim, 4 pearson7.fit, 3, 4, 8 pearson7.objective, 4, 4 ppearson7, 2, 5, 6, 7 qpearson7, 2, 5, 6, 7 rpearson7, 2, 5, 6, 7 summary.pearson7, 8 9