[R] replication time series using permutations of the each "y" values
Josué Polanco
jomopo at gmail.com
Tue Jun 22 12:53:13 CEST 2010
Dear All,
I'm trying to create this:
I've these data (a, b,c, etc. are numbers) :
1 a b
2 c d f
3 g
4 h
...
N
I'm trying to create the all "time series permutations" (length = N)
taking account
the possibilities for each value. For example (N=4),
1 a
2 c
3 g
4 h
next,
1 b
2 c
3 g
4 h
next
1 a
2 d
3 g
4 h
and so on. For this example, there are 2*3 different (possibilities)
time series, but
I need to do, v. gr., N = 100, and 2^14 different (possibilities)
time series. I am wondering
if somebody could give me a hint (suggestion) to make this using a
function in R.
thank you so much
best regards
--
Josue Polanco
More information about the R-help
mailing list