Skip to contents

Compares an amended theory new with its prior version by content, not by prediction ids, and returns a verdict by fixed rules that borrow the terms of Lakatos (1970), with the evidence behind it.

Usage

tf_appraise_amendment(new, prior)

Arguments

new

The amended theory object (named list).

prior

The prior theory object (named list).

Value

A named list whose first element, verdict, is one of "progressive", "degenerating" and "neutral". new_predictions, corroborated_new, ad_hoc_assumptions, articulated, underived, corroborated_new_registered, dropped, dropped_corroborated, content_lost, new_anomalies, weakened_refuted, unresolved, protected_only and refuted_new are ascending-sorted character vectors. content_lost holds the untested predictions the amendment drops, under their prior ids, and, under their new ids, the untested or corroborated predictions it weakens or whose claim it no longer entails. weakened_refuted holds the predictions refuted or mixed in the prior that it weakens. refuted_new holds the new predictions refuted or mixed in new. renamed is a list of list(prior, new) pairs sorted by new, and revised a list of list(id, change) records, one per revised prediction sorted by its new id, where change is "weakened", "strengthened", "reworded" or "changed". assumptions holds one list(id, added_for, class, independent, added_for_inferred, change) per new or revised assumption added for an anomaly, in file order. added_for_inferred is TRUE when added_for was taken from protects. change is "new" for an assumption under an id the prior lacks and "revised" for one kept under its id whose statement changed, by any change of wording, even one that keeps its meaning. independent lists, each as list(id, status) and in the order of protects, the distinct predictions the assumption protects that are new in this version and differ from added_for, with their status in new ("corroborated", "refuted", "mixed" or "untested"). class is "ad_hoc1", "pending", "ad_hoc2" or "independently_corroborated", and ad_hoc_assumptions holds the ids of those classed "ad_hoc1" or "ad_hoc2". theoretically_progressive and empirically_progressive are logical. implications_lost and implications_lost_unrefuted hold the statements of the lost implications, all of them and the unrefuted ones, in the order of the prior's record, and implications_gained the statements of the pairs the new graph separates and the prior's does not, in the order of the new record. entailments_lost is a list of list(id, prior, new) records, under the new id, with the verdicts of the two graphs, sorted by id. signs_lost holds statements "effect of <x> on <y>: <sign>" in the prior graph's vertex order, x and then y. It lists ordered pairs, so it can grow with the square of the number of constructs: one changed relation in a large feedback loop can give up the sign of nearly every pair the loop joins. corroborated_new_severity is a list of list(id, severity) records, one per corroborated new prediction sorted by id, where severity is the smallest value of tf_post_data_severity() over its passes that record an estimate and a standard error for a prediction with bounds, and NA when none does. implications_compared is FALSE when tf_implications() refuses either version, and the three vectors of implications, entailments_lost and signs_lost are then empty and the verdict is not "progressive". The elements come in the order verdict, new_predictions, corroborated_new, ad_hoc_assumptions, articulated, underived, corroborated_new_registered, renamed, dropped, dropped_corroborated, content_lost, new_anomalies, assumptions, theoretically_progressive, empirically_progressive, revised, weakened_refuted, unresolved, implications_compared, implications_lost, implications_lost_unrefuted, implications_gained, entailments_lost, signs_lost, protected_only, refuted_new and corroborated_new_severity.

Details

Lakatos calls a problemshift theoretically progressive when each new theory predicts some novel fact that its predecessor did not, empirically progressive when some of this excess content is corroborated, progressive when it is both and degenerating otherwise. The verdict applies the rules below to what the two files declare, and it holds only if the declarations are true: the test outcomes, the registrations and the added_for and protects of each assumption. A new prediction counts as novel when the prior file does not hold it and the prior's causal graph does not entail its claim. The appraisal cannot tell a prediction from an accommodation of data already seen, since it reads no dates and nothing about where the data came from, so the prior must be the version before the new predictions were stated. A prediction made in one version and corroborated in the next is appraised against the version before it was made. The appraisal does not distinguish a programme's hard core from its protective belt. Read refuted_new and corroborated_new_severity with the verdict: one corroborated new prediction among many that failed, or a pass whose own estimate gives a low post-data severity, is enough for "progressive".

A new prediction whose statement and type match a prediction the amendment dropped is that prediction renamed. Assumptions are compared by statement too. An assumption kept under its id is revised when its statement changed, and one under a new id whose statement matches that of an assumption the amendment dropped is that assumption renamed, so only a new or revised assumption is appraised. A new prediction articulates old content when it derives only from propositions the prior already held and needs no new or revised assumption, or when the prior's causal graph already entails its claim. One that would articulate old content but for an appraised assumption that lists it in protects is new content whose novelty rests on that declaration, and is reported in protected_only. A new prediction is underived when it cites no proposition and unresolved when it cites an id that names no proposition of the new version. A prediction is corroborated when at least one test outcome passes it and none fails it. A new or revised assumption added for an anomaly is classed by the predictions it protects that are new in this version, other than the anomaly: "ad_hoc1" when there are none, "pending" when none of them is tested yet, "ad_hoc2" when some were tested and none is corroborated, and "independently_corroborated" otherwise. The labels "ad_hoc1" and "ad_hoc2" borrow Lakatos's terms, and each means only what its check finds: that the assumption protects no new prediction besides the anomaly, or that some of the new predictions it protects have been tested and none is corroborated. No other sense of ad hoc is assessed. Its added_for names the anomaly. When that is empty, the first prediction it protects that was refuted or mixed in the prior is taken as the anomaly.

A prediction kept from the prior, under its id or renamed, is revised when its statement, type, bounds or claim changed. When either version states a region with a finite end, its content is weaker when its bounds allow a wider region, when it drops its claim or when its claim gives up a sign of positive, negative or zero for nonzero, and a change of type alone neither weakens nor strengthens it. When neither states such a region, a type that ranks lower in existence < directional < interval < point is weaker too. A point or interval label without a finite lower and a finite upper bound reads as directional in both comparisons, as tf_severity() reads it, since the label alone states nothing a test could miss. The two causal graphs are read with cycles = "sigma". They are compared through tf_implications(): a pair of constructs that the prior's graph separates and the new graph does not is an implication lost, refuted when a prediction of the prior that states the independence of the two is refuted or mixed there. A retained prediction untested or corroborated in the prior whose prior claim the prior's graph entails and the new graph does not is in entailments_lost. A total effect of one construct on another that the prior's graph signs positive or negative and the new graph does not sign the same way is in signs_lost, unless a prediction that failed in the prior states an effect claim on the pair with that sign or with nonzero.

The amendment is theoretically progressive when a new prediction adds content, being neither renamed, articulated, underived nor unresolved, and empirically progressive when one of these is corroborated. The verdict is "progressive" when it is both, no assumption is ad hoc, no corroborated prediction is dropped, no content is lost and no prediction refuted or mixed in the prior is weakened. Content is lost when an untested prediction is dropped, an untested or corroborated prediction is weakened or loses the entailment of its claim, an implication is lost without being refuted or a signed effect is lost without having been refuted. The verdict is never "progressive" when implications_compared is FALSE: a graph that tf_implications() refuses, for a repeated construct id or a proposition that names an undeclared construct, cannot be read, so the content of the two versions cannot be compared and what the amendment gives up is unknown. The verdict is "degenerating" when an assumption is ad hoc or a prediction refuted or mixed in the prior is weakened, and no prediction adds corroborated content. It is "neutral" otherwise. Lakatos has only the first two. "neutral" is theoryforge's label for an amendment that meets neither rule, and the vectors returned tell its cases apart. Only corroborated_new_registered reads a test outcome's registered, and only corroborated_new_severity its estimate and se, and neither decides the verdict. No date or version field is read, so which version is the prior is the caller's responsibility. API_SPEC.md section 10 states every rule in full.

A test outcome whose passed is present and not TRUE or FALSE, in new (checked first) or in prior, is refused. Read as not passed, a quoted "true" could turn a progressive amendment into a degenerating one.

References

Lakatos, I. (1970). Falsification and the methodology of scientific research programmes. In I. Lakatos & A. Musgrave (Eds.), Criticism and the growth of knowledge (pp. 91-196). Cambridge University Press. doi:10.1017/cbo9781139171434.009

Meehl, P. E. (1990a). Appraising and amending theories: The strategy of Lakatosian defense and two principles that warrant it. Psychological Inquiry, 1(2), 108-141. doi:10.1207/s15327965pli0102_1

Examples

prior <- tf_theory("demo-1", "A demonstration theory") |>
  tf_add_construct("c_arousal", "Arousal", "Bodily activation.") |>
  tf_add_construct("c_threat", "Perceived threat", "Appraised danger.") |>
  tf_add_proposition("p1", "c_arousal", "c_threat", "increases") |>
  tf_add_prediction("h1", "Threat rises with arousal.", "directional",
                    derives_from = "p1")
new <- prior |>
  tf_add_construct("c_avoid", "Avoidance", "Withdrawal from feared situations.") |>
  tf_add_proposition("p2", "c_threat", "c_avoid", "increases") |>
  tf_add_prediction("h2", "Avoidance rises 0.3 SD per SD of threat.", "point",
                    derives_from = "p2")
new$test_outcomes <- list(list(prediction_id = "h2", passed = TRUE))
tf_appraise_amendment(new, prior)$verdict
#> [1] "progressive"