[R] XLSM Question

2011-05-18 Thread Gabrielsen, Alexandros
Hi, I would like to ask you how to read an arrary from an *.xlsm file? I have tried different packages such as xlsReadWrite and RODBC. Everything is performed on the final versions of addons and R. Additionally, when I tried the RODBC received the following error: > library(RODBC) > con = od

[R] Optimization Question

2011-02-14 Thread Gabrielsen, Alexandros
Hi all, This is my first optimization code and am receiving the following error for the following function: fn <- function(p) { +263*log(sqrt(2*pi)*sd(test$A))+ sum(log(abs(c(test$A[-1], 1))^p[3])) + (sum(((test$A-p[1]+(p[2]+1)*c(test$A[-1], 1)))^2)/sum(sd(test$A)*(abs(c(test$A[-1], 1))^p[3])