I have a dataset of type:
num col1 col2 col3 col4 col5 col6
row1 8.186 8.176 8.171 8.159 8.152 8.141
row2 7.644 7.649 7.656 7.664 7.668 7.665
row3 7.130 7.152 7.168 7.207 7.229 7.251
row4 8.711 8.720 8.723 8.728 8.734 8.729
row5 6.771 6.795 6.827 6.828 6.848 6.852
I basically need to do quadratic fits of each row as a function of (0.1,20,40,80,120,160).
For example I need to do
y = c(8.186, 8.176, 8.171, 8.159, 8.152, 8.141)
x = c(0.1,20,40,80,120,160)
and do the quadratic fit of y vs x.
I have ~300 ROWS of data to be fit as a function of x. I appreciate any help!