Fitting to power law to the data sets of different lengths in excel....

drniranjan

New Member
Joined
Jun 15, 2011
Messages
19
Hi all,
I have data sets of X and Y arranged in rows. the first half coulmn data is the X and remaining half coulmns data are the Y..likewise, every row has even number of columns of which 1st half is the X and second half is the Y...

For example, I have data sets like

2 3 4 5 6 7 12 34 32 56 12 11
1 3 2 4 9 6 11 23 12 45 12 12
1 5 5 12 21 45
2 6 7 8 22 43 56 11

please note that length of X and Y pairs are not same for all rows .......
as shown in the above example set say for 1st row, 1st six values are X and remaining six values are Y...this follows for every row......

I need to fit these data sets using power law and to return only R2 (fittting coefficient) of the fitting...
Can anyone come up with either macro or any formuale so that I can calculate the R2 for all rows........I have thousands of rows of data sets like above pattern.

Your expertise and quick reply will be higly appreciated.......

best regards, Niranjan
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Forum statistics

Threads
1,224,617
Messages
6,179,914
Members
452,949
Latest member
beartooth91

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top