Runs the 12 items of the checklist over a theory object and returns a report, with the items in checklist order.
Arguments
- theory
A theory object (named list), such as one from
tf_read().- cycles
How a causal graph with a feedback loop is read, as in
tf_entailments()."refuse"(the default) leaves unread the claims that name a construct on a loop or downstream of one, and"sigma"reads every claim by sigma-separation, which assumes that each loop settles to a unique equilibrium. The derivation chain and diagnosticity read the claims this way.
Value
A named list with elements theory_id, schema_version
(the theory's), checklist_version (the checklist's, which is what
the weights and thresholds came from), maturity,
aggregate_score (the checklist score, 0 to 100, to one decimal),
aggregate_range, coverage, gate,
n_blockers_failed and items. aggregate_range holds
the lowest and highest score over the checklist's weights, equal weights
and each applicable item's weight halved and then doubled with the others
unchanged. It is not an interval for the score, and it leaves out the
choices made in coding the file and the rubric's constants. gate is
"advisory" at draft maturity, and otherwise
"blocked" when an item whose severity_if_fail is
"blocker" (falsifiability or derivation_chain) fails and
"pass" when none does. items holds one list per checklist
item, in checklist order, with id, status, score,
weight, severity_if_fail ("blocker" or
"warning") and citation. The derivation_chain item has two
more elements, not_checked and phenomena_not_checked, lists
of the ids of the predictions and of the phenomena whose claims were not
checked. A prediction and a phenomenon may share an id, so the two are
listed apart.
Details
The checklist score describes how completely the file states what checklist 3.1 asks for. Most items read whether a field is filled in or how a prediction is labelled, and stated claims are checked against the causal graph. Test outcomes are read only by the parsimony item, the weights are conventions, and no study has established what difference between two scores is meaningful. The score does not show that the theory is true or well reasoned.
Each item has a status ("pass", "warn" or "fail") and
a score from 0 to 1. An item with nothing to assess has the status
"n/a" and a NULL score: the redundancy screen with fewer than
two constructs, the derivation chain with no prediction and parsimony when
no auxiliary assumption names, in added_for, an anomaly it was added
to answer. The checklist score (aggregate_score) is the weighted mean
of the applicable items' scores, times 100, and coverage is the share
of the checklist's weight that was applicable.
The derivation chain counts a prediction as derived when the propositions
it cites are declared and it states no claim or one that the causal graph
entails. It fails when some prediction cites a proposition that is not
declared, or none, or states a claim that the graph contradicts, leaves
open, cannot read as written or cannot place because it names a construct
no proposition relates, and when the graph contradicts the claim of a
phenomenon. Under the default, a claim of a prediction or a phenomenon that
names a construct on a feedback loop or downstream of one is left unread. It
is not checked and, failing anything else, makes the item warn, which does
not block the gate. A prediction whose claim is not checked counts as
derived when the propositions it cites are declared, since nothing was found
wrong with it. Such a claim therefore gets full credit and leaves the gate
open whatever the graph would say of it read by sigma-separation, so a file
whose claims a loop reaches is checked in full only with
cycles = "sigma". A loop that reaches no claim changes nothing.
Three values are refused before anything is scored, since no score built
on them would be defensible. One is a cycles other than
"refuse" or "sigma". Another is a test outcome whose
passed is present and not TRUE or FALSE, such as the
quoted string "true". The third is a prediction severity that
is present and not a finite number from 0 to 1. Each stops with an error,
and tf_validate() with full = TRUE reports the last two.
Examples
theory <- 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", "causes",
mechanism = "Activation raises salience of threat cues.") |>
tf_add_prediction("h1", "Arousal precedes threat appraisal.", "directional",
derives_from = "p1")
report <- tf_check(theory)
report$aggregate_score
#> [1] 54.3
report$gate
#> [1] "pass"