[R] Non-conformable arrays - Error in var(betas)

2015-11-19 Thread Naomi Evans
Hello, If there is anyone who can offer me some guidance on how to resolve the error below, I would be very grateful. I am attempting to conduct a 'Resource Utilization Function' analysis using the 'ruf' package. My code is below: library(ruf) d78423 <- read.csv("RUF/78423_RelUse.csv") #

Re: [R] non-conformable arrays

2013-07-24 Thread Thomas Stewart
You need to be careful how you index. In the example code, y is a 'zoo series' and y[i] is gives the ith row, as in y[i, ]. This means t(y[i]) %*% y[i] is actually a 2X2 matrix. Also, the code c(S)[c(1,4,2)] picks off the diagonal and lower triangular elements. The example involves two

[R] non-conformable arrays

2013-07-23 Thread G Girija
Hi, I have 5 stock values and i am calculating EWMA followed the logic as given ind following link.[ http://www.orecastingfinancialrisk.com/3.htmlhttp://www.forecastingfinancialrisk.com/3.html ] [EWMA = matrix(nrow=T,ncol=3) # create a matrix to hold the covariance matrix for each t lambda =

[R] Non-conformable arrays

2011-03-02 Thread Gregory Ryslik
Hi Everyone, I'm running some simulations where eventually I need to table the results. The problem is, that while most simulations I have at least one predicted outcome for each of the six possible categories, sometimes the algorithm assigns all the outcomes and one category is left out. Thus

Re: [R] Non-conformable arrays

2011-03-02 Thread Bill.Venables
-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Gregory Ryslik Sent: Thursday, 3 March 2011 1:46 PM To: r-help Help Subject: [R] Non-conformable arrays Hi Everyone, I'm running some simulations where eventually I need to table the results. The problem is, that while most

Re: [R] Non-conformable arrays

2011-03-02 Thread Gregory Ryslik
with the wrong levels, turn it back into a character string vector first. -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Gregory Ryslik Sent: Thursday, 3 March 2011 1:46 PM To: r-help Help Subject: [R] Non-conformable arrays