get_v {cprobit}R Documentation

Inpernal function: compute difference in the (transformed) outcome

Description

Inpernal function: compute difference in the (transformed) outcome

Usage

get_v(y1, y2, lambda = NA, scaled = TRUE)

Arguments

y1

Numeric vector of the observed outcome at observation time 1.

y2

Numeric vector of the observed outcome at observation time 2.

lambda

The Box-Cox transformation parameter. Default is NA, indicating no need for a transformation. See Details.

scaled

Whether the difference in the transformed outomes should be scaled by the Jacobian.

Value

Returns the difference in the observed outcomes if lambda = NA, or the difference in the scaled transformed outcomes with transformation parameter lambda.


[Package cprobit version 1.0.2 Index]