-3

I have time series data for two year

12376 167827  3454596 9676112 342102 1232103 546102  5645696 96767110 23423119 
4577140  45435158 56767138 635435167 35443160 34534166 3213133 2132148 2342130 
7656127 43234117 56545130  5645138 56455149

And I want to identify the virality growth rate and then plotting the graphs for growth rate. Nothing is give like number of invitation sent and Percentage of Conversion to invitation. I wanted to know how I can achieve this and is there any package available in R for this.

4

1 に答える 1

3

問題を明確にしないと、この質問は今後数時間で終了する可能性が非常に高くなりますが、これで少なくとも開始できる可能性があります。

mydf <- scan(textConnection("12376 167827  3454596 9676112 342102 1232103 546102  5645696 96767110 23423119  4577140  45435158 56767138 635435167 35443160 34534166 3213133 2132148 2342130 7656127 43234117 56545130  5645138 56455149"), )
plot(mydf, log="y", type="l")  # Gives you an overview of your time serie (with log axis)
gr <- diff(mydf)/mydf[-length(mydf)] # Gives you a growth rate between each of your values.
par(new=TRUE)
plot((1:(length(mydf)-1))+0.5, gr, type="l",   # Plots your growth rate
      col="red", axes=FALSE, xaxt="n", yaxt="n")
axis(4)
于 2013-03-12T08:49:46.823 に答える