setup_y_transform: Set y transformations for an MBM object

Description Usage Arguments Details References

View source: R/make_mbm.r

Description

Set y transformations for an MBM object

Usage

1
setup_y_transform(x, link, eps = 0.001)

Arguments

x

an MBM object

link

character, link function to use

eps

Constant to add to avoid infinite values for probit

Details

Sets up y transformations to use instead of a link function for probit links. When the y-data include zeros and ones, an additional step is necessary to squeeze the data from [0,1], (0,1], or [0,1) to the open interval (0,1). In the [0,1] case, the smithson lemon-squeezer is used: yō°‚' = [yō°€(N ā€“ 1) + 1/2]/N. Otherwise, eps is first added or subtracted from all values.

References

Smithson, M. and Verkuilen, J. 2006. A Better Lemon Squeezer? Maximum-Likelihood Regression With Beta-Distributed Dependent Variables. Psychological Methods 11(1): 54-71.


mtalluto/mbmtools documentation built on Aug. 13, 2019, 9:44 a.m.