search for: xifara

Displaying 7 results from an estimated 7 matches for "xifara".

2008 Aug 19
0
Converting monthly data to quarterly dataMonday, August 18, 2008 11:38 AM
Dear Gavin, This is really great, thank you! I created some long loops to get rid of extra months at the beginning and the end of my data but your code is great for putting it then together quarterly. thanks again, Denise On Mon, 2008-08-18 at 14:31 +0100, Denise Xifara wrote: > Thank you very much Stephen, but how will aggregate deal with months that > fall outside annual quarters? eg, one extra month at the end of the dataset? [Without your data I'm kind of guessing at the exact format and problem, but the example below shows one way to deal with quar...
2008 Jul 28
3
speeding up loop and dealing wtih memory problems
Dear All and Mark, Given a dataset that I have called dat, I was hoping to speed up the following loop: for(i in 1:835353){ for(j in 1:86){ if (is.na(dat[i,j])==TRUE){dat[i,j]<-0 }}} Actually I am also having a memory problem. I get the following: Error: cannot allocate vector of size 3.2 Mb In addition: Warning messages: 1: In dat[i, j] <- 0 : Reached total allocation of 1535Mb: see
2008 Aug 18
1
Converting monthly data to quarterly data
Dear R users, I have a dataframe where column is has countries, column 2 is dates (monthly) for each countrly, the next 10 columns are my factors where I have measurements for each country and for each date. I have attached a sample of the data in csv format with the data for 3 countries. I would like to convert my monthly data into quarterly data, finding the mean over 3 month periods for
2010 Mar 11
2
Problem with rcmd SHLIB
Hi all, I am trying to call a C function from R (version 2.10.1) on a windows machine. The C code is in a .c file, I have pasted the code below although I'm very confident that it does not contain any errors (it is not my code), but also, the problem that I have occurs with every .c file that I have tried this with. I have installed Rtools and included: C:\Rtools\bin; C:\Rtools\perl;
2008 Aug 05
0
unexpected problem
Dear R users, I have run into a very unexpected problem and I was hoping someone could explain it to me. I have a 650 000 by 12 matrix and I want to perform a rolling regression on it, width 36 or 48, using the package performanceAnalytics. ie: rol.lm<-rollingRegression(lm(y~x1+x2+x3+x4+x5),data=denise,width=36) The regressions occur without a problem and I store my output (coefficients,
2008 Jul 21
1
fama-macbeth
Hi all, I was wondering whether there is a standard method to carry out fama-macbeth regressions in R. I have spent the last few hours looking around the help pages but nothing seems to be written about this. Thanks a lot! [[alternative HTML version deleted]]
2008 Jul 22
0
loop for multiple regressions
Dear all, I have the following data in excel: day1 y 1 2 3 2 3 x1 0.2 0.3 0.4 0.3 0.2 x2 7 3.4 2 8 6 day2 y 2 4 3 2 2 x1 0.4 0.5 0.3 0.3 0.2 x2 7 8 9.1 6 5 I have the following problems: first of all, when I ask R to read the file (with the package xlsReadWrite and the command read.xls) it has a problem with the fact that the left most corner is labelled the same way, so in order for it