P
Phil C
Hi folks,
This question is similar to Elizabeth Brown's, but with a slight twist. I am
also looking to calculate r ..from a exponential function plotted as a
log-lin scatter graph:
I posted last week (5 August) about a way of calculating the correlation
coefficient from a log-lin plot that is tolerant of deleted/mssing data, but
the proposed solution (CORREL array-entered) doesn't seem to work. Unless I
have overlooked something?
To restate, I have a Log-lin plot based on data in columns A and C. Column C
contains the y-values. Columns A and B just contain data (A1:A4 =
100,150,200,250; B1:B4 = 4900,3700,3000,2500]. Column C is derived from
column B, thus: C1 =IF(B1="",NA(),B1), C2 =IF(B2="",NA(),B2) etc.
BTW, have to use NA() rather than "" or the graph fails when a data point is
deleted.
The log lin x-y plot + exponential trendline + equation derived from columns
A and C all work fine. Deleting either an x value (from column A) or a y
value from column B causes the associated data point to disappear from the
graph and the trendline is sensibly recalculated, including the correlation
coefficient (r). Unfortunately, I need to use the r value for further
calculations and am trying to use the CORREL func: =CORREL(LN(C1:C4),A1:A4),
which fails (returns #NA) if I delete one of the y values (say C3). It is OK
if I delete one of the x-values. If the R squared value displayed as a
trendline option can 'survive' deleting a y value then it must surely be
possible using a standard function? I have already found out (via this NG)
that using SLOPE and INTERCEPT instead of INDEX(LOGEST..) will give the
slope and intercept values even when there is missing data. I now just need
r!
Thanks for your help..
Phil
This question is similar to Elizabeth Brown's, but with a slight twist. I am
also looking to calculate r ..from a exponential function plotted as a
log-lin scatter graph:
I posted last week (5 August) about a way of calculating the correlation
coefficient from a log-lin plot that is tolerant of deleted/mssing data, but
the proposed solution (CORREL array-entered) doesn't seem to work. Unless I
have overlooked something?
To restate, I have a Log-lin plot based on data in columns A and C. Column C
contains the y-values. Columns A and B just contain data (A1:A4 =
100,150,200,250; B1:B4 = 4900,3700,3000,2500]. Column C is derived from
column B, thus: C1 =IF(B1="",NA(),B1), C2 =IF(B2="",NA(),B2) etc.
BTW, have to use NA() rather than "" or the graph fails when a data point is
deleted.
The log lin x-y plot + exponential trendline + equation derived from columns
A and C all work fine. Deleting either an x value (from column A) or a y
value from column B causes the associated data point to disappear from the
graph and the trendline is sensibly recalculated, including the correlation
coefficient (r). Unfortunately, I need to use the r value for further
calculations and am trying to use the CORREL func: =CORREL(LN(C1:C4),A1:A4),
which fails (returns #NA) if I delete one of the y values (say C3). It is OK
if I delete one of the x-values. If the R squared value displayed as a
trendline option can 'survive' deleting a y value then it must surely be
possible using a standard function? I have already found out (via this NG)
that using SLOPE and INTERCEPT instead of INDEX(LOGEST..) will give the
slope and intercept values even when there is missing data. I now just need
r!
Thanks for your help..
Phil