search for: dimdata

Displaying 3 results from an estimated 3 matches for "dimdata".

Did you mean: simdata
2009 Sep 19
1
Converting matrices into row vectors and saving as ASCII text
...ions: 5 3 100 which correspond to the x, y, and time dimensions, for a variable, p. I need the data in this format: 100 rows (1 row per time unit), and 15 values in each row. I have attempted to reshape my data >dim(data) 5 3 100 >attr(data,'dim')<-c(dim(data)[3],dim(data)[1]*dimdata[2]) So I get data with 100 rows, 15 columns. I need to use this data outside of R, and so have to save it as an ASCII file that retains the row-column structure of the data, but I do not know how to. It would be ideal if I could end up with a text file that also has an additional column that lab...
2009 Jul 08
3
Suggestion: Dimension-sensitive attributes
Hi, I agree with Henrik that his suggestion to have "dimension vector attributes" working like dimnames (see below) would be an extremely useful infrastructure adittion to R. If this is not considered for R-core, I am happy to try to implement this in a package, as a new class. And possibly do the same thing for data frames. Should you have any comments, ideas or suggestions about it,
2012 Jul 19
1
Switching log(J) to log(J+1) to avoid log(0) in HAR-RVJ model
...RV1 = match.fun( RVest[1]); RM1 = apply.daily( data, RV1 ); # save dates: alldates = index(RM1) if( nest == 2 ){ RV2 = match.fun( RVest[2]); RM2 = apply.daily( data, RV2 ); } } if( sum(data<0) == 0 ){ #The input is most likely already realized measures dimdata = dim(data)[2]; alldates = index(data); RM1 = data[,1]; if( dimdata > 1 ){ RM2 = data[,2]; } if( type != "HARRV" ){ warning("Please provide returns as input for the type of model you want to estimate. All your returns are positive which is quite unlikely honestly...