I have been trying to write a function for the following problem: Suppose I have three vectors a,b,c of different lengths: e.g. a=c(a1,a2,a3,...) where a[i] form the basis of our function variables: if we define a table for example: and define the fn(x) <-function{..sum(argument)..} where x<-c(a,b,c) so that we can maximise fn(x) as: optim(...,fn,....). So in other words the problem if to find optimal values for vectors a,b,c. I'm not sure how to set this problem up as a function in R. Any help would be much appreciated. Regards Lloyd Barcza ----- Forwarded by Lloyd Barcza/UK/RoyalSun on 16/11/2009 15:07 ----- Lloyd Barcza Pricing Analyst Affinity Pricing Royal & SunAlliance Tel: 01403 234784 Email: lloyd.barcza at uk.rsagroup.com ______________________________________________________________________ ********************************************************************** MORE TH>N ? is a trading style of Royal & Sun Alliance Insurance plc (No. 93792). Registered in England and Wales at St. Mark's Court, Chart Way, Horsham, West Sussex RH12 1XL. Authorised & regulated by the Financial Services Authority For your protection, telephone calls will be recorded and may be monitored. The information in this e-mail is confidential and ma...{{dropped:15}}
I have been trying to write a function for the following problem: Suppose I have three vectors a,b,c of different lengths: e.g. a=c(a1,a2,a3,...) where a[i] form the basis of our function variables: if we define a table for example: and define the fn(x) <-function{..sum(argument)..} where x<-c(a,b,c) so that we can maximise fn(x) as: optim(...,fn,....). So in other words the problem if to find optimal values for vectors a,b,c. I'm not sure how to set this problem up as a function in R. Any help would be much appreciated. Regards Lloyd Barcza ----- Forwarded by Lloyd Barcza/UK/RoyalSun on 16/11/2009 15:07 ----- Lloyd Barcza Pricing Analyst Affinity Pricing Royal & SunAlliance Tel: 01403 234784 Email: lloyd.barcza at uk.rsagroup.com ______________________________________________________________________ ********************************************************************** MORE TH>N ? is a trading style of Royal & Sun Alliance Insurance plc (No. 93792). Registered in England and Wales at St. Mark's Court, Chart Way, Horsham, West Sussex RH12 1XL. Authorised & regulated by the Financial Services Authority For your protection, telephone calls will be recorded and may be monitored. The information in this e-mail is confidential and ma...{{dropped:15}}
Im lost i want to post on the other forum...the address was something like... http://old.nabble.com/R ...to get help with using R but i kept getting redirected to this one (http://n4.nabble.com), and when i tried to post a querie it made me sign up so i thought the forum was changing or being updated or something like that. When i type in http://old.nabble.com/ then click on R I get redirected to... http://n4.nabble.com/R-f789695.html ...?????????????? Im sorta lost i just want help with my R code nothing else as im new to R. [[alternative HTML version deleted]]
> -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] > On Behalf Of CHRISTOPHER FRENCH > Sent: Saturday, November 28, 2009 10:27 AM > To: r-help at r-project.org > Subject: [R] r-help > > > Im lost i want to post on the other forum...the address was something > like... http://old.nabble.com/R ...to get help with using R but i kept > getting redirected to this one (http://n4.nabble.com), and when i tried to > post a querie it made me sign up so i thought the forum was changing or > being updated or something like that. > > When i type in http://old.nabble.com/ then click on R I get redirected > to... http://n4.nabble.com/R-f789695.html ...?????????????? > > > Im sorta lost i just want help with my R code nothing else as im new to R. > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting- > guide.html > and provide commented, minimal, self-contained, reproducible code.Christopher, I do not use Nabble, but it is my understanding that the forum always redirected posts to the R-help mailing list, which is where your posts are still coming to. So, go ahead and post your questions concerning your R code. You are in the right place. Hope this is helpful, Dan Daniel Nordlund Bothell, WA USA