如何修复R中的Traj包错误

时间:2018-04-18 17:10:19

标签: r

我有一个轨迹数据集,我使用两个数据集(经度和时间)来聚类一组轨迹,我先调用Traj包然后开始使用这些函数,当我应用因子分析时出现错误:< / p>

    install.packages("traj") #Traj package
    library("traj")          #Traj Package

    > dd$A   #the longitude data
         ID        X1        X2        X3        X4        X5        X6
    [1,]  1 -8.610084 -8.610669 -8.610903 -8.610516 -8.610111 -8.610039
    [2,]  2 -8.610111 -8.610759 -8.610831 -8.610723 -8.610471 -8.608203
    [3,]  3 -8.582373 -8.582238 -8.582913 -8.584020 -8.584488 -8.585370
    [4,]  4 -8.601246 -8.601048 -8.601417 -8.600724 -8.598618 -8.597376
    > dd$B  #the time data
         ID t1 t2 t3 t4 t5 t6
    [1,]  1  1 15 30 45 60 75
    [2,]  2  1 15 30 45 60 75
    [3,]  3  1 15 30 45 60 75
    [4,]  4  1 15 30 45 60 75

    >s1 = step1measures(dd$A,dd$B, ID=TRUE) #Apply measurements 
    >s2 = step2factors(s1)                  #Factor Analysis

    I had the following error:

    >     [1] "m6 is removed because it is perfectly correlated with m5"  
    >     [2] "m8 is removed because it is perfectly correlated with m7"  
    >     [3] "m13 is removed because it is perfectly correlated with m12"
    >     [1] "Computing reduced correlation e-values..."
    >     Error in smc(data) : 
    >     m5 is perfectly correlated with a prevois measurment. It must be  removed.m7 is perfectly correlated with a prevois measurment. It must be removed.m9 is perfectly correlated with a prevois measurment. It must be removed.m10 is perfectly correlated with a previous measurment. It must be removed.m11 is perfectly correlated with a previous measurment. It must be removed

0 个答案:

没有答案