I have a small doubt in R pertaining to LDA, Like in spss when i tried to get fishers classification function coefficients of linear discriminant analysis in R with the package MASS, I am getting only coefficients of linear discriminant like the following:
Coefficients of linear discriminants:
LD1 LD2 LD3 LD4
Var1 0.018952518 0.010766163 0.534278507 -2.32E-02
Var2 -0.000827315 -0.012934214 -0.013986988 -3.14E-01
Var3 -3.616088667 -0.18684861 -2.962979702 1.36E-01
Var4 0.000139365 -0.003802969 0.000313853 9.33E-05
Var5 0.007675119 0.006891405 0.05536683 -9.69E-02
LD5
Var1 5.64E-02
Var2 6.04E-02
Var3 -3.69E-01
Var4 -3.40E-05
Var5 -4.92E-01
But I have 7 groups in my grouping variable, I need to get fishers classification function coefficients for each cluster of all five variables so that I can use them for further analysis in Excel.I intend to get similiar table add below:
Classification Function Coefficients
Cluster
7 8 9 10 11 12 13
Var1 .630 .580 .555 .571 .598 .714 .642
Var2 .025 .028 .028 .029 .026 .029 .029
Var3 .685 .684 .752 .681 .678 .695 .700
Var4 1.019 .997 1.015 .998 1.023 1.033 1.033
Var5 17.331 21.253 21.457 21.347 9.166 8.850 8.860
(Constant)-44.687 -57.762 -59.353-58.928 -36.337 -42.367 -42.744
So I want the same output like the above in R, Please help me out: