Re: [R] Relatively Simple Maximization Using Optim Doesnt Optimize

2020-03-13 Thread Abby Spurdle
> It is correctly signalling that it hasn't converged (look at > optim.sol$convergence, which "indicates that the iteration limit maxit > had been reached".) But CG should be taking bigger steps. On a 1D > quadratic objective function with no errors in the derivatives, it > should take one step t

Re: [R] How to make our data normally distributed in R

2020-03-13 Thread Neha gupta
Thanks a lot Jin.. If my total number of observations are 500, n will be 500, mu will be average (500) s will be sd (500) and m will be RMSE value i.e. 4500 in this case? tovecv(n=500, mu=average (500), s=sd, m=4500, measure="rmse") On Fri, Mar 13, 2020 at 12:46 AM Jin Li wrote: > Hi, > Why d

Re: [R] How to make our data normally distributed in R

2020-03-13 Thread Rui Barradas
Hello, Why would it be awkward to show values like 4600? If those are the values, show them. When there is a large difference, orders of magnitude, you can plot logs by setting parameter log = "y" as in boxplot(10^(0:5), log = "y") But I don't see why to have values in the range 2900-4600 (s

Re: [R] Relatively Simple Maximization Using Optim Doesnt Optimize

2020-03-13 Thread J C Nash
Once again, CG and its successors aren't envisaged for 1D problems. Do you really want to perform brain surgery with a chain saw? Note that production4 <- function(L) { - production3(L) } sjn2 <- optimize(production3, c(900, 1100)) sjn2 gives $minimum [1] 900.0001 $objective [1] 84.44156 Whe

Re: [R] Relatively Simple Maximization Using Optim Doesnt Optimize

2020-03-13 Thread Duncan Murdoch
On 12/03/2020 8:52 p.m., Abby Spurdle wrote: L= 1006.536 L= 1006.537 L= 1006.535 It appears to have chosen step size 0.001, not 0.1. It should be getting adequate accuracy in both 1st and 2nd derivatives. Those little ripples you see in the plot are not relevant. I'm impressed. But you're

Re: [R] Unintended behaviour (possibly bugs)

2020-03-13 Thread Alexey Shipunov
Dear Martin, Great news, thanks! If you wish, please also consider my initial note about help(hist), this is definitely worrying new R users. With best wishes, Alexey пт, 13 мар. 2020 г. в 02:16, Martin Maechler : > > > Alexey Shipunov > > on Tue, 18 Feb 2020 14:34:48 +0900 writes:

[R] output of bounds function (ldbounds package)

2020-03-13 Thread Sorkin, John
I am trying to get information about the output produced by the bounds function. Code that runs the package along with sample output is below. Questions (1) Do the values given under boundaries, lower and upper (Boundaries: TimeLower UpperExit pr. Diff. pr. 1 0.10 -6.9913 6.9913