The stats package has the optimize function that could be used for this.


On Tue, Feb 5, 2013 at 2:08 PM, John Sorkin <jsorkin@grecc.umaryland.edu>wrote:

> I am looking for a package that will allow me to choose R (a real number)
> that minimizes the correlation of y and x^R, i.e.
> find R such that corr(y,x^R) is minimized. Any suggestions for packages I
> might look at would be helpful.
> Thanks,
> John
>
>
> John David Sorkin M.D., Ph.D.
> Chief, Biostatistics and Informatics
> University of Maryland School of Medicine Division of Gerontology
> Baltimore VA Medical Center
> 10 North Greene Street
> GRECC (BT/18/GR)
> Baltimore, MD 21201-1524
> (Phone) 410-605-7119
> (Fax) 410-605-7913 (Please call phone number above prior to faxing)
> Confidentiality Statement:
> This email message, including any attachments, is for ...{{dropped:23}}

