Package marqlevalg. February 20, 2015

Similar documents
Package glmmml. R topics documented: March 25, Encoding UTF-8 Version Date Title Generalized Linear Models with Clustering

Package SmoothHazard

Package cwm. R topics documented: February 19, 2015

Package ICsurv. February 19, 2015

Package Combine. R topics documented: September 4, Type Package Title Game-Theoretic Probability Combination Version 1.

Package mrm. December 27, 2016

Package parfossil. February 20, 2015

Package pnmtrem. February 20, Index 9

Package extweibquant

Package hsiccca. February 20, 2015

Package cgh. R topics documented: February 19, 2015

Package mixphm. July 23, 2015

Package datasets.load

Package subplex. April 5, 2018

Package sfadv. June 19, 2017

Package intccr. September 12, 2017

Package PedCNV. February 19, 2015

Package PTE. October 10, 2017

Package pso. R topics documented: February 20, Version Date Title Particle Swarm Optimization

Package ihs. February 25, 2015

Package intcensroc. May 2, 2018

Package rpst. June 6, 2017

Package sglr. February 20, 2015

Package acebayes. R topics documented: November 21, Type Package

Package coxsei. February 24, 2015

Package mnlogit. November 8, 2016

Package dfoptim. April 2, 2018

Package spark. July 21, 2017

Package GenSA. R topics documented: January 17, Type Package Title Generalized Simulated Annealing Version 1.1.

Package robustreg. R topics documented: April 27, Version Date Title Robust Regression Functions

Package MTLR. March 9, 2019

Package survivalmpl. December 11, 2017

Package missforest. February 15, 2013

Package simmsm. March 3, 2015

Package sensory. R topics documented: February 23, Type Package

Package mtsdi. January 23, 2018

Package FisherEM. February 19, 2015

Package SmoothHazard

Package longclust. March 18, 2018

Package flexcwm. May 20, 2018

Package TVsMiss. April 5, 2018

Package DSBayes. February 19, 2015

Package ConvergenceClubs

Package spatialtaildep

Package svapls. February 20, 2015

Package ETC. February 19, 2015

Package cumseg. February 19, 2015

Package SoftClustering

Package inca. February 13, 2018

Package BayesCR. September 11, 2017

Package oglmx. R topics documented: May 5, Type Package

Package gpr. February 20, 2015

Package calibrar. August 29, 2016

Package cosinor. February 19, 2015

Package StVAR. February 11, 2017

Package mixsqp. November 14, 2018

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

Package gppm. July 5, 2018

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

Package kirby21.base

Package ScottKnottESD

Package anidom. July 25, 2017

Package bayesdp. July 10, 2018

Package gsscopu. R topics documented: July 2, Version Date

Package FMsmsnReg. March 30, 2016

Package lhs. R topics documented: January 4, 2018

Package lgarch. September 15, 2015

Package XMRF. June 25, 2015

Package intreg. R topics documented: February 15, Version Date Title Interval Regression

Package SSLASSO. August 28, 2018

Package pwrrasch. R topics documented: September 28, Type Package

Package subtype. February 20, 2015

Package bmd. R topics documented: February 19, Title Benchmark dose analysis for dose-response data. LazyLoad yes. LazyData yes. Version 0.

Package capushe. R topics documented: April 19, Type Package

Package PUlasso. April 7, 2018

Package nearfar. June 3, 2017

Package munfold. R topics documented: February 8, Type Package. Title Metric Unfolding. Version Date Author Martin Elff

Modern Methods of Data Analysis - WS 07/08

Package edrgraphicaltools

Package sspline. R topics documented: February 20, 2015

Package clusternomics

Package MicroStrategyR

Package PCADSC. April 19, 2017

Package gee. June 29, 2015

Package mvprobit. November 2, 2015

Package RPMM. August 10, 2010

Package ssmn. R topics documented: August 9, Type Package. Title Skew Scale Mixtures of Normal Distributions. Version 1.1.

Package OLScurve. August 29, 2016

Package glassomix. May 30, 2013

Louis Fourrier Fabien Gaie Thomas Rolf

Package GLDreg. February 28, 2017

Package orthodr. R topics documented: March 26, Type Package

Package PrivateLR. March 20, 2018

Package ALKr. August 29, 2016

Package RNAseqNet. May 16, 2017

Package InformativeCensoring

Package addhaz. September 26, 2018

Package biglars. February 19, 2015

Package jointdiag. September 9, 2017

Package sbf. R topics documented: February 20, Type Package Title Smooth Backfitting Version Date Author A. Arcagni, L.

Transcription:

Type Package Title An algorithm for least-squares curve fitting Version 1.1 Date 2013-03-01 Package marqlevalg February 20, 2015 Author D. Commenges <Daniel.Commenges@isped.u-bordeaux2.fr>, M. Prague <Melanie.Prague@isped.u-bordeaux2.fr> and A. Diakite Maintainer Melanie Prague <Melanie.Prague@isped.u-bordeaux2.fr> Depends R (>= 2.0.0) LazyLoad yes This algorithm provides a numerical solution to the problem of minimizing a function. This is more efficient than the Gauss-Newton-like algorithm when starting from points very far from the final minimum. A new convergence test is implemented (RDM) in addition to the usual stopping criterion : stopping rule is when the gradients are small enough in the parameters metric (GH-1G). License GPL (>= 2.0) URL http://www.r-project.org Encoding latin1 Repository CRAN NeedsCompilation yes Date/Publication 2013-03-18 23:14:20 R topics documented: marqlevalg-package.................................... 2 dataemilie.......................................... 3 deriva............................................ 4 ForInternalUse....................................... 5 marqlevalg......................................... 5 1

2 marqlevalg-package print.marqlevalg...................................... 8 summary.marqlevalg................................... 8 weib............................................. 9 Index 10 marqlevalg-package An algorithm for least-squares curve fitting. Details This algorithm provides a numerical solution to the problem of minimizing a function. This is more efficient than the Gauss-Newton-like algorithm when starting from points vey far from the final minimum. A new convergence test is implemented (RDM) in addition to the usual stopping criterion : stopping rule is when the gradients are small enough in the parameters metric (GH-1G). Package: marqlevalg Type: Package Version: 1.1 Date: 2012-03-09 License: GPL (>= 2.0) LazyLoad: yes This algorithm provides a numerical solution to the problem of minimizing a function. This is more efficient than the Gauss-Newton-like algorithm when starting from points vey far from the final minimum. A new convergence test is implemented (RDM) in addition to the usual stopping criterion : stopping rule is when the gradients are small enough in the parameters metric (GH-1G). Author(s) D. Commenges <Daniel.Commenges@isped.u-bordeaux2.fr>, M. Prague <Melanie.Prague@isped.ubordeaux2.fr> and Amadou Diakite <Amadou.Diakite@isped.u-bordeaux2.fr> References marqlevalg Algorithm Donald W. marquardt An algorithm for Least-Squares Estimation of Nonlinear Parameters. Journal of the Society for Industrial and Applied Mathematics, Vol. 11, No. 2. (Jun, 1963), pp. 431-441. Convergence criteria : Relative distance to Minimim Commenges D. Jacqmin-Gadda H. Proust C. Guedj J. A Newton-like algorithm for likelihood maximization the robust-variance scoring algorithm arxiv:math/0610402v2 (2006)

dataemilie 3 ### 1 ### initial values b <- c(8,9) ### your function f1 <- function(b){ return(4*(b[1]-5)^2+(b[2]-6)^2) ## Call test1 <- marqlevalg(b=b,fn=f1) ### 2 ### initial values b <- c(3,-1,0,1) ### your function f2 <- function(b){ return((b[1]+10*b[2])^2+5*(b[3]-b[4])^2+(b[2]-2*b[3])^4+10*(b[1]-b[4])^4) ## Call test2 <- marqlevalg(b=b,fn=f2) test2 dataemilie data Emilie. data. data(dataemilie) Format A data frame with 1313 observations on the following 15 variables. tempssuividc10_1 a numeric vector inddc10 a numeric vector t1delai1 a numeric vector t2delai1 a numeric vector DEM1_10 a numeric vector AGEENTRE a numeric vector sexe2 a numeric vector CEP a numeric vector

4 deriva SPT1_1 a numeric vector SPT1_2 a numeric vector IADL4_1 a numeric vector MMS_TW1 a numeric vector ISA1_15 a numeric vector BENTON1 a numeric vector COD_W1 a numeric vector Details data. data(dataemilie) deriva Numerical approch to derivate. The function to return the first, second derivate and the information score matrix. There are the central finite-difference and forward finite-difference will be used. deriva(b, funcpa) Arguments b funcpa value of parameters to be optimized over. function to be minimized (or maximized), with argument the vector of parameters over which minimization is to take place. It should return a scalar result. Value v rl the information score matrix. log-likelihood or likelihood of the model. Author(s) D. Commenges

ForInternalUse 5 References Donald W. Marquardt An algorithm for Least-Squares Estimation of Nonlinear Parameters. Journal of the Society for Industrial and Applied Mathematics, Vol. 11, No. 2. (Jun, 1963), pp. 431-441. b<-0.1 f <- function(b){return((2*b[1]**2+3*b[1])) d <- deriva(b=b,funcpa=f) ForInternalUse For internal use only... For internal use only... marqlevalg An algorithm for least-squares curve fitting. This algorithm provides a numerical solution to the problem of minimizing a function. This is more efficient than the Gauss-Newton-like algorithm when starting from points vey far from the final minimum. A new convergence test is implemented (RDM) in addition to the usual stopping criterion : stopping rule is when the gradients are small enough in the parameters metric (GH-1G). marqlevalg(b, m = FALSE, fn, gr=null, hess = NULL, maxiter = 500, epsa = 0.001, epsb = 0.001, epsd = 0.01, digits = 8, print.info = FALSE, blinding = TRUE, multipletry = 25) Arguments b an optional vector containing the initial values for the parameters. Default is 0.1 for every parameter. m fn an optional parameter if the vector of parameter is not missing compulsory if b is not given. The function to be minimized (or maximized), with argument the vector of parameters over which minimization is to take place. It should return a scalar result.

6 marqlevalg gr hess maxiter epsa epsb epsd Details Value a function to return the gradient value for a specific point. If missing, finitedifference approximation will be used. a function to return the hessian matrix for a specific point. If missing, finitedifference approximation will be used. optional maximum number of iterations for the marqlevalg iterative algorithm. Default is 500. optional threshold for the convergence criterion based on the parameter stability. Default is 0.001. optional threshold for the convergence criterion based on the log-likelihood stability. Default is 0.001. optional threshold for the relative distance to minimum. This criterion has the nice interpretation of estimating the ratio of the approximation error over the statistical error, thus it can be used for stopping the iterative process whathever the problem. Default is 0.01. digits Number of digits to print in outputs. Default value is 8. print.info blinding multipletry Logical.Equals to TRUE if report (parameters at iteration, function value, convergence criterion...) at each iteration is requested. Default value is FALSE. Logical. Equals to TRUE if the algorithm is allowed to go on in case of an infinite or not definite value of function. Default value is FALSE. Integer, different from 1 if the algorithm is allowed to go for the first iteration in case of an infinite or not definite value of gradients or hessian. This account for a starting point to far from the definition set. As many tries as requested in multipletry will be done by changing the starting point of the algorithm. Default value is 25. Convergence criteria are very strict as they are based on derivatives of the log-likelihood in addition to the parameter and log-likelihood stability. In some cases, the program may not converge and reach the maximum number of iterations fixed at 500. In this case, the user should check that parameter estimates at the last iteration are not on the boundaries of the parameter space. If the parameters are on the boundaries of the parameter space, the identifiability of the model should be assessed. If not, the program should be run again with other initial values, with a higher maximum number of iterations or less strict convergence tolerances. cl ni istop v fn.value summary of the call to the function marqlevalg. number of marqlevalg iterations before reaching stopping criterion. status of convergence: =1 if the convergence criteria were satisfied, =2 if the maximum number of iterations was reached, =4 if the algorithm encountered a problem in the function computation. vector containing the upper triangle matrix of variance-covariance estimates at the stopping point. function evaluation at the stopping point.

marqlevalg 7 b ca cb rdm time stopping point value. convergence criteria for parameters stabilisation. convergence criteria for function stabilisation. convergence criteria on the relative distance to minimum. a running time. Author(s) D. Commenges - M. Prague - A. Diakite References marqlevalg Algorithm Donald W. marquardt An algorithm for Least-Squares Estimation of Nonlinear Parameters. Journal of the Society for Industrial and Applied Mathematics, Vol. 11, No. 2. (Jun, 1963), pp. 431-441. Convergence criteria : Relative distance to Minimim Commenges D. Jacqmin-Gadda H. Proust C. Guedj J. A Newton-like algorithm for likelihood maximization the robust-variance scoring algorithm arxiv:math/0610402v2 (2006) ### 1 ### initial values b <- c(8,9) ### your function f1 <- function(b){ return(4*(b[1]-5)^2+(b[2]-6)^2) ## Call test1 <- marqlevalg(b=b,fn=f1) ### 2 ### initial values b <- c(3,-1,0,1) ### your function f2 <- function(b){ return((b[1]+10*b[2])^2+5*(b[3]-b[4])^2+(b[2]-2*b[3])^4+10*(b[1]-b[4])^4) ## Call test2 <- marqlevalg(b=b,fn=f2) test2

8 summary.marqlevalg print.marqlevalg Summary of a marqlevalg object The function provides a summary of a marqlevalg optimisation. ## S3 method for class marqlevalg print(x, digits,...) Arguments x an marqlevalg object. digits Number of digits to print in outputs. Default value is 8.... other unusued arguments. Author(s) See Also D. Commenges - M. Prague - A. Diakite marqlevalg, summary.marqlevalg f1 <- function(b){ return(4*(b[1]-5)^2+(b[2]-6)^2) test.marq <- marqlevalg(b=c(8,9),m=2,maxiter=100,epsa=0.001,epsb=0.001, epsd=0.001,fn=f1) test.marq summary.marqlevalg summary of optimization. A short summary of parameters estimates by marqlevalg algorithm. ## S3 method for class marqlevalg summary(object, digits,...)

weib 9 Arguments object a marqlevalg object. digits Number of digits to print in outputs. Default value is 8.... other unusued arguments. Author(s) D. Commenges - M. Prague - A. Diakite See Also marqlevalg, print.marqlevalg f1 <- function(b){ return(4*(b[1]-5)^2+(b[2]-6)^2) test.marq <- marqlevalg(b=c(8,9),m=2,maxiter=100,epsa=0.001,epsb=0.001, epsd=0.001,fn=f1) summary(test.marq) weib Simulated dataset for the weibull function. a dataset contains 936 rows and 5 columns. data(weib) Format A data frame with 936 observations on the following 5 variables. c a numeric vector. t0 entry time. t1 left border of interval censored. t2 right border of interval censored. ve a numeric vector. data(weib) ## maybe str(weib) ; plot(weib)...

Index Topic algorithm Topic datasets dataemilie, 3 weib, 9 Topic marqlevalg Topic maximisation Topic minimization Topic optimization Topic package Topic print print.marqlevalg, 8 Topic summary summary.marqlevalg, 8 searpas (ForInternalUse), 5 summary.marqlevalg, 8, 8 sup (ForInternalUse), 5 valfpa (ForInternalUse), 5 weib, 9 dataemilie, 3 deriva, 4 deriva_grad (ForInternalUse), 5 ForInternalUse, 5 func (ForInternalUse), 5 func1 (ForInternalUse), 5 ghg (ForInternalUse), 5, 8, 9 print.marqlevalg, 8, 9 10