I have a data set (below) with a power relationship. (Y =aX^b)
The power fit in Excel and xmgrace gave me an almost identical values for the fit. (R^2 of 0.993) Y = 215.47 X^0.812
However when I try R's nls() function I get a different value. Plus it does not calculate a R^2 because it is not statistically sound.
However if i take logarithms, I can do a lm() and get a R^2 of 0.993. How do I reproduce the values excel and xmgrace produce with power fits using R..Is R nls() not correct??
Drift Time Mass_Independent CS
2.32 407.3417277
2.32 419.1267553
2.81 503.9859708
2.92 501.0465281
3.78 640.9024985
4.00 688.7906761
4.48 776.3958584
5.67 918.9991003
6.05 949.4448047
6.86 993.9763311
6.86 1064.539603
6.97 1041.422648
7.94 1112.407393
8.42 1183.070416
9.23 1302.622263
9.29 1291.525748