Re: [R] Fwd: Quadratic programming, for loop

2018-06-26 Thread Maija Sirkjärvi
Thanks for your reply! Unfortunately something is still wrong. After the transpose, dvec and Amat are still incompatible. > d <- -hsmooth > dvec <- t(d) > c <- dvec*Amat Error in dvec * Amat : non-conformable arrays Moreover, I don't understand the following: > If dvec is of length *J*, then b

[R] Convert Hijri to Gregorian

2018-06-26 Thread Jeff Reichman
R-help Does R have a package or function that will convert Gregorian to Hijri (Islamic) dates (time series)? Jeff [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

Re: [R] Adding Axis value to R Plot

2018-06-26 Thread AbouEl-Makarim Aboueissa
Dear Jim: many thanks abou __ *AbouEl-Makarim Aboueissa, PhD* *Professor of Statistics* *Department of Mathematics and Statistics* *University of Southern Maine* On Mon, Jun 25, 2018 at 7:25 PM, Jim Lemon wrote: > Hi Abou, > You can't display an axis if it is not in

Re: [R] Fwd: Quadratic programming, for loop

2018-06-26 Thread Spencer Graves
  sos::findFn('{quadratic programming}') just identified 156 help pages in 68 packages containing the term "quadratic programming".  The function mentioned by Berwin Turlach, "solve.QP", is in package "quadprog", which has not been updated since 2016-12-20.  I've used qudprod successfully,

Re: [R] Automating Azure ML Experiments from R

2018-06-26 Thread Regardt Schalkwyk
Hi Paul Microsoft has made this really easy for you. Just deploy the web service, go to services.azureml.net, select your web service, click on consume, go to sample code and select R. It will give you a sample script using RCurl and rjson to consume your service. Regards Regardt Regardt

Re: [R] Help with transpose please.

2018-06-26 Thread Bill Poling
Yep, thanks Dan, that’s got it. Thank you to everyone who responded as well. WHP ClaimServiceID ClaimID Dx1 Dx10 Dx11 Dx12 Dx2 Dx3 Dx4 Dx5 Dx6Dx7Dx8Dx9 1183056004 78044473C562 C778C784C786 C7961 C7982 C7989 2

Re: [R] Fwd: Quadratic programming, for loop

2018-06-26 Thread Jeff Newmiller
The recommended (see the Posting Guide) way to resolve questions like this is to post a reproducible example so we can see the problem occur in our R session. There are a number of Internet resources that can help you get this right such as [1][2][3]. Note that one key to success is to learn

Re: [R] Help with transpose please.

2018-06-26 Thread Bill Poling
Thank you Dan, that was very helpful. Sorry for the delayed response. Cheers WHP From: Daniel Nordlund [mailto:djnordl...@gmail.com] Sent: Saturday, June 23, 2018 6:04 AM To: Bill Poling ; r-help (r-help@r-project.org) Subject: Re: [R] Help with transpose please. On 6/22/2018 4:43 AM, Bill

Re: [R] Fwd: Quadratic programming, for loop

2018-06-26 Thread Berwin A Turlach
G'day all, On Tue, 26 Jun 2018 11:16:55 +0300 Maija Sirkjärvi wrote: > It seems that my Amat and dvec are incompatible. Amat is a matrix of > zeros size: *2*J-3,J* and dvec is a vector of length *J*. There > should be no problem, but apparently there is. [...] solve.QP solves the quadratic

Re: [R] Fwd: Quadratic programming, for loop

2018-06-26 Thread Maija Sirkjärvi
Thanks for the reply! dvec, thus hsmooth, has the same length J. It shouldn't be the problem. 2018-06-26 11:24 GMT+03:00 Eric Berger : > The statement > > dvec <- -hsmooth > > looks like it might be the source of the problem, depending on what > hsmooth is. > > > On Tue, Jun 26, 2018 at 11:16

Re: [R] Fwd: Quadratic programming, for loop

2018-06-26 Thread Eric Berger
The statement dvec <- -hsmooth looks like it might be the source of the problem, depending on what hsmooth is. On Tue, Jun 26, 2018 at 11:16 AM, Maija Sirkjärvi wrote: > Thanks for the reply! I got that figured out, but still have some problems > with the quadratic programming. > > It seems

Re: [R] Fwd: Quadratic programming, for loop

2018-06-26 Thread Maija Sirkjärvi
Thanks for the reply! I got that figured out, but still have some problems with the quadratic programming. It seems that my Amat and dvec are incompatible. Amat is a matrix of zeros size: *2*J-3,J* and dvec is a vector of length *J*. There should be no problem, but apparently there is. The piece