personality_questionnaire.vasf

Backwards-compatible surface for the pre-2.0 VAS-F API.

vasf() keeps its exact pre-2.0 signature and return value – an item-wise post - pre difference of shape (N, 18). Subscale scoring added in 2.0 is reached through the registry instead, so no existing caller’s indexing changes:

>>> import personality_questionnaire as pq
>>> paired = pq.delta(pq.get("vasf"), pre, post)
>>> paired.subscale_delta

Attributes

VASF_QUESTIONNAIRE

The 18 VAS-F items, keyed by item number.

ANSWER_DIMS

Per-item low and high anchor labels.

Functions

vasf(→ numpy.ndarray)

Calculate the item-wise VAS-F change across an intervention.

Module Contents

personality_questionnaire.vasf.VASF_QUESTIONNAIRE: dict[int, str]

The 18 VAS-F items, keyed by item number.

personality_questionnaire.vasf.ANSWER_DIMS: dict[int, tuple[str, str]]

Per-item low and high anchor labels.

personality_questionnaire.vasf.vasf(pre_answers: list[int] | numpy.ndarray, post_answers: list[int] | numpy.ndarray) → numpy.ndarray[source]

Calculate the item-wise VAS-F change across an intervention.

Parameters:
  • pre_answers – Answers given before the experiment.

  • post_answers – Answers given after it.

Returns:

The item-wise post - pre difference.