[R] on the output of constrOptim()

Christophe Dutang dutangc at gmail.com
Wed Apr 13 21:25:38 CEST 2016

Dear list,

The following example of constrOptim() where the initial point is the solution shows that the component counts is not a two-element vector as documented in the man page. 

constrOptim(c(1,1), fr, grr, ui = diag(2), ci = c(0,0))

Does anyone have the same behavior?

A possible solution is to put line 69 in constrOptim.R before the first possible break line 67.

Regards, Christophe

> sessionInfo()
R version 3.2.4 (2016-03-10)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.10.5 (Yosemite)

[1] fr_FR.UTF-8/fr_FR.UTF-8/fr_FR.UTF-8/C/fr_FR.UTF-8/fr_FR.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] nlstools_1.0-2     fitdistrplus_1.0-7 survival_2.38-3    MASS_7.3-45       

loaded via a namespace (and not attached):
[1] tools_3.2.4   splines_3.2.4
Christophe Dutang
LMM, UdM, Le Mans, France
web: http://dutangc.free.fr <http://dutangc.free.fr/>

	[[alternative HTML version deleted]]

More information about the R-help mailing list