Hi Emmanuel,

You'll need to tell us what EXX.dm is - as that is likely the issue.

Best,
Jeff

On Mon, May 30, 2011 at 12:27 PM, Emmanuel Senyo
<emmanuel.senyo@gmail.com>wrote:

> Dear All,
> I am creating an xts object for a univariate time series data , EXX.dm but
> it does not work. The data starts from 01/01/2008 to 09/05/2011 and I use
> 01/01/1970 as the base year. Below is my code.
> library(PerformanceAnalytics)
> library(xts)
> b<-as.xts(EXX.dm, order.by=as.Date(13880:15104), origin=1970-01-01)
> C<-VaR(b, p=0.5,method = c("historical"),portfolio_method =
> c("single"),weights = NULL, mu = NULL, sigma = NULL,
>    m3 = NULL, m4 = NULL, invert = TRUE))
>
> I got the following error message:
> Error in xts(x, order.by = order.by, frequency = frequency, ...) :
>  NROW(x) must match length(order.by)
> I am new to R and need an assistance.
> Regards
> Emma
>
>        [[alternative HTML version deleted]]
>
> _______________________________________________
> R-SIG-Finance@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only. If you want to post, subscribe first.
> -- Also note that this is not the r-help list where general R questions
> should go.
>



-- 
Jeffrey Ryan
jeffrey.ryan@lemnica.com

www.lemnica.com
www.esotericR.com

	[[alternative HTML version deleted]]

