Revision as of 02:51, 13 January 2016 by Bbecane (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Attribute CorrespondenceMethod

Used as an attribute on an object that serves as an index for an edit Table, DetermTable or ProbTable. Controls how correspondence between previous and new index values is determined when the index value changes.

Possible Values

1 : Positional
2 : Associative
3 : Flexible Associative (current default)


When an index definition changes, where some elements might be removed, others added, some existing elements renamed, and some existing elements potentially re-ordered, edit tables that use that index need to be re-adjusted. In some cases, the correspondence between the old index elements and new index elements may be ambiguous. This is particularly the case when when the index value is computed.

The CorrespondenceMethod attribute determines the method Analytica uses to determine this correspondence. Consider the following example of an 1D edit table indexed by Year.


Index Year := 2007..2010.
Variable Contribution :=
Year ▶
2007 2008 2009 2010
$2500 $3000 $3200 $3400

Now, Year is changed to 2006..2011.

The two most basic correspondence methods, pure positional and pure associative, would result in the following respective adjustments to the Contribution edit table.

Variable Contribution →
Pure Positional Correspondence
Year ▶
2006 2007 2008 2009 2010 2011
$2500 $3000 $3200 $3400

Variable Contribution →
Pure Associative Correspondence
Year ▶
2006 2007 2008 2009 2010 2011
$2500 $3000 $3200 $3400

There are cases where either form of correspondence may be more desirable. In general, pure associational correspondence may lose more data than positional, since if the original element is removed, the data for that row may be lost.

Flex associational, the default used, corresponds by association when it can (i.e., when the same element appears in both old and new), but draws on positional correspondence between paired elements, which helps to preserve data when an element is basically renamed. Thus, flex associational preserves more data than pure associational.

To change the CorrespondenceMethod attribute for an index, use typescript, e.g.:

CorrespondenceMethod In1 : 1

Note: In build, if the number of elements does not change, pure associational reverts to positional. However, this will be changed. Flex Associational will revert to positional if the number of elements is not changed, but Pure Positional (1) will not.

Remember that CorrespondenceMethod is a property of the Index, not of the table.

See Also


You are not allowed to post comments.