I have a set of date covering petrol prices.
My example has two columns where each row represents a sequential date.
unleaded diesel
1 1.39 1.35
2 1.3901 1.3502
3 1.3902 1.3501
.....
I generate eigen values:
my.eigen $values [1] 7.053791e-07 9.097811e-08
$vectors
PC1 PC2
unleaded 0.6489256 -0.7608519
diesel 0.7608519 0.6489256
my.eigen $values [1] 7.053791e-07 9.097811e-08
How can I produce a timeseries using the first, second or first two Components. That would give me something that replicates(but of course is different to) the original data?
I would like to plot unleaded, diesel timeseries against the "replicated" data for different inclusion of components.