| .calc_alpha_star | R Documentation |
Implements Strategy B normalization of the demand elasticity parameter
\alpha so that values are comparable across different k values
(Rzeszutek et al., 2025). The formula is
\alpha^* = -\alpha / \ln(1 - 1/(k \cdot \ln(b))) where b is the logarithmic base used by the
demand equation (10 for HS/Koff, e for hurdle models).
.calc_alpha_star(params, param_scales, vcov = NULL, base = c("e", "10"))
params |
Named list of parameter values. Must contain entries matchable
to alpha and k (e.g., |
param_scales |
Named list indicating the scale of each parameter in
|
vcov |
Optional. Either a variance–covariance matrix with named rows/columns, or a named numeric vector of standard errors for the alpha and k parameters. |
base |
Character; the logarithmic base: |
Standard errors are obtained via the delta method when a variance–covariance matrix (or SE vector) is supplied.
A list with elements:
Numeric scalar; the alpha_star value, or NA.
Numeric scalar; delta-method SE, or NA.
Character or NULL; diagnostic message if alpha_star
could not be computed.
Rzeszutek, M. J., Regnier, S. D., Franck, C. T., & Koffarnus, M. N. (2025). Overviewing the exponential model of demand and introducing a simplification that solves issues of span, scale, and zeros. Experimental and Clinical Psychopharmacology.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.