R and SPSS difference

后端 未结 12 530
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-30 03:09

I will be analysing vast amount of network traffic related data shortly, and will pre-process the data in order to analyse it. I have found that R and SPSS are among the most po

12条回答
  •  余生分开走
    2021-01-30 03:41

    @Henrik, I did the same task you have mentioned (C++ and R) on SPSS. And it turned out that SPSS is faster compared to R on this one. In my case SPSS is aprox. 7 times faster. I am surprised about it.

    Here is a code I used in SPSS.

    data list free
     /x (f8.3).
    begin data
    1
    end data.
    
    comp n = 1e6.
    
    comp t1 = $time.
    
    loop #rep = 1 to 10.
    comp x = 1.
    loop #i=1 to n.
    comp x = 1/(1+x).
    end loop.
    end loop.
    
    comp t2 = $time.
    
    comp elipsed = t2 - t1.
    
    form elipsed (f8.2).
    
    exe.
    

提交回复
热议问题