vachette
Transformation Assuming Proportional Error ModelR/plotting.R
p.prop.distances.Rd
This function creates a ggplot2 visualization of the distances
before and after the vachette
transformation between observations
and the relative typical curves. It is useful for assessing the impact of
proportional error model assumption on the distances.
p.prop.distances(vachette_data)
A ggplot2
object representing the plot of distances.
The plot compares the log of the original distances to the log of the distances
after transformation, color-coded by segment.
The plot includes a reference line with a slope of 1, indicating where
the original and transformed distances are equal. The title of the plot is
dynamically generated based on the model name provided in the vachette_data
object.
The subtitle of the plot indicates whether an additive or proportional error transformation was applied. The caption provides the reference covariate(s) used in the model.