Re: [R] Is it possible to create such graph - Which packages can come handy?

2016-12-21 Thread Narendra Modi
violin geom with > jittered points overlaid". > > This shows a series of violin plots, which is another way to display the > shape of a distribution. > > Jean > > On Tue, Dec 20, 2016 at 9:04 AM, Narendra Modi > wrote: >> >> Hello Gurus, >> I i

[R] Is it possible to create such graph - Which packages can come handy?

2016-12-20 Thread Narendra Modi
Hello Gurus, I intend to build attached reference graph in R(r.png). Could you give me some ideas on how it can be done, if at all possible? Basically, I would like to build a Histogram along Y axis for different respective X axis ranges. As shown in the input.png file, there is a value of EUR fo

Re: [R] Optimize selected variables but not all - nloptr

2016-10-20 Thread Narendra Modi
olvers are not yet included. However, I suspect > either Rvmmin or Rcgmin will > work fine. > > I will guess that nloptr does NOT cater for masks. > > JN > > On 16-10-19 05:59 PM, Narendra Modi wrote: >> Hello All, >> I have a matrix with initial values as

[R] Optimize selected variables but not all - nloptr

2016-10-19 Thread Narendra Modi
Hello All, I have a matrix with initial values as below and I need to optimize the variables that are greater than 0. TAU fij fij2 [1,] 14.33375 0.000 0.01449572 [2,] 14.33375 0.000 0. [3,] 14.33375 0.000 0. [4,] 14.33375 0.000 0.02206446 [

Re: [R] Share R.net dll without having to share R script code?

2016-10-17 Thread Narendra Modi
string in the > source of the R.net code, then pass it in to the eval portion or write > it out to a temp dir and pass that to the eval portion of the code. > That way the script is embedded with the DLL and not an extra asset > that needs to be managed. > > On Fri, Oct 14, 2016 at

[R] lb and ub for variables - nloptr

2016-10-17 Thread Narendra Modi
Hello All, I use nloptr to perform optimization. In one example,the lb for each variable is 0 and ub is Inf during the first run. x <- c(10,10,10,10) # initial values lb <- c(0,0,0,0) ub <- c(Inf,Inf,Inf,Inf) optimised.answer = 4.2,0.001,20,21 To run the second time for a better match, I set a

Re: [R] Share R.net dll without having to share R script code?

2016-10-14 Thread Narendra Modi
Thanks Duncan. That's useful to know. On Fri, Oct 14, 2016 at 9:18 AM, Duncan Murdoch wrote: > On 14/10/2016 10:00 AM, Narendra Modi wrote: >> >> Hello Gurus, >> >> I have built a code snippet using R.net wherein I call couple of R >> scripts to run optimiz

[R] Share R.net dll without having to share R script code?

2016-10-14 Thread Narendra Modi
Hello Gurus, I have built a code snippet using R.net wherein I call couple of R scripts to run optimization packages and use the output in C# code. The way I call the R scripts is just by providing its location in the C# code. So, if I have to share the .dll of the complete program, I will also h

[R] Optimization issue - Solution converges for any initial value

2016-09-29 Thread Narendra Modi
I have put together a R snippet wherein I am trying to get optimum values for which error is minimized. The error is the difference between two matrices. Every time I run the below code, I don't see any optimization happening as in the final answer is the same as the initial estimate regardless of

[R] Upper bound vector in Nloptr

2016-07-20 Thread Narendra Modi
Hello Folks, I am using "nloptr" optimizer in my program as below. my.data.var <- c(10,0.25,0.25,0.25,0.25,0.25, 10,0.25,0.25,0.25,0.25,0.25, 10,0.25,0.25,0.25,0.25,0.25, 10,0.25,0.25,0.25,0.25,0.25) #Option for non-linear optimization algorithm

[R] Nloptr vs Excel GRG optimization result

2016-07-11 Thread Narendra Modi
Hi All, For a non-linear minimization optimization problem that I have, I am getting better objective function value in Excel(15) as compared to nloptr (73). the nloptr is setup as: opts = list("algorithm"="NLOPT_LN_COBYLA", "xtol_rel"=1.0e-8, "maxeval"= 1) lb = vector("numeric",l

Re: [R] How to extract "specific"/"last" intercept value from segmented package.

2016-07-06 Thread Narendra Modi
PM, wrote: > Hello, > > Try > > dimnames(inter$x)[[1]] > > You could have seen this by inspecting 'inter': > > str(inter) > > Hope this helps, > > Rui Barradas > > > Citando Narendra Modi : > > I am able to perform regression

[R] How to extract "specific"/"last" intercept value from segmented package.

2016-07-05 Thread Narendra Modi
I am able to perform regression on a dataset as below: plot(x,y) lin.mod <- lm(y~x) m <- mean(x) m segmented.mod <- segmented(lin.mod, seg.Z = ~x, psi= m) plot(segmented.mod, add=T) sl <- slope(segmented.mod) inter <- intercept(segmented.mod) summary(segmented.mod)# Show Summary sl

Re: [R] Non Linear Solver - Optim in R

2016-06-17 Thread Narendra Modi
d not a made-up scam address. You can easily > be reported for impersonation! > > Ranjan > > > On Fri, 17 Jun 2016 08:51:59 -0500 Narendra Modi > wrote: > > > Hello, > > Resending this message in "Plain-text". > > > > Thank you for the add

[R] Non Linear Solver - Optim in R

2016-06-17 Thread Narendra Modi
Hello, Resending this message in "Plain-text". Thank you for the add to the list. I have written a R snippet to solve a non-linear problem using Optim solver. The parameters to be solved are supposed to be in a matrix form as attached such that summation of columns is <=1 except for the first c