My dataframe is like:
samples.L samples.T le.1 le.2 le.3 le.4 le.5
10 1.0 9.683726 9.691982 9.704387 9.719390 9.735400
10 3.5 9.828530 9.829962 9.832273 9.835296 9.838709
25 1.0 24.675467 24.677010 24.679439 24.682560 24.685718
25 3.5 24.822328 24.822601 24.823026 24.823410 24.823209
Now I want to operate linear regression between independent variables samples.L
and samples.T
and respectively each respond variables le.?
(?=1,2,3,4,5), so that I could get 5 models ?
How could I use apply family function or other method to realize it?