How to perform a lm for multiple variables in one code

I have a data frame of 11 groups each group has 3 readings of color L, a, b
I want to perform lm for all reading using 1 code followed by ANOVA and post hoc

below is the data I'm trying to test

G_name L a b
A 77.41 7.46 43.05
A 77.4 7.47 43.07
A 77.4 7.46 43.07
B 86.34 13.35 25.62
B 86.34 13.36 25.63
B 86.33 13.37 25.63
C 94.33 -0.42 8.63
C 94.32 -0.42 8.65
C 94.31 -0.41 8.65
D 82.98 6.21 30.92
D 82.97 6.21 30.92
D 82.96 6.21 30.92
E 83.43 7.55 29.88
E 83.42 7.55 29.87
E 83.42 7.56 29.88
F 84.33 9.99 28.7
F 84.32 10 28.71
F 84.31 10 28.71
G 83.23 3.63 29.56
G 83.22 3.63 29.56
G 83.22 3.64 29.57
H 84.13 3.17 27.91
H 84.12 3.17 27.91
H 84.13 3.17 27.92
I 84.35 4.37 28
I 84.34 4.37 28.02
I 84.33 4.37 28.03
J 84.77 8.91 27.57
J 84.76 8.9 27.58
J 84.75 8.91 27.58
K 82.34 8.5 31.49
K 82.33 8.49 31.51
K 82.32 8.49 31.51

Regards,

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.