Description Usage Arguments Details Value See Also Examples
The default method transforms the data into a format that fits the framework of the unit level model of Lyu, Berg and Hofmann.
1 2 3 4 5 6 7 8 |
f_pos |
an object of class |
f_zero |
an object of class |
f_area |
an object of class |
data |
sample data containing the variables named in |
transform |
type of transformation for the positive responses to be chosen between the "BoxCox" and "power" families. Default value is "Boxcox". |
lambda |
value for the parameter of the family of transformations specified in |
The response variable in the formula f_zero
is ignored.
I(y>0)
will be used for the binary part where y
is the
response variable in the formula f_pos
.
Although this function
allows a general transformation family for the positive
part, the Empirical Bayes predictor of area means developed in the paper of
Lyu, Berg and Hofmann (ebLBH
) assumes a log transformation
is used. A general transformation family is
provided in this function so as to facilitate a profile likelihood analysis
together with the function mleLBH
to check the assumption of a log transformation
for the positive part, i.e., whether lambda is significantly different from 0.
See here
for an example of profiling lambda with respect to the BoxCox transformation family.
An object of the class "2pdata" which is a list with the following components:
lys
: transformed response vector for the positive part
Xs1
: model matrix for the positive part
deltas
: binary response vector for the binary part
Xs0
: model matrix for the binary part
area
: vector with the area code
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.