Description Usage Arguments Value Examples
Check linearity assumption in a model using a given link function.
1 | LFL(dsn,X,Y,nkat,link.type,outlier)
|
dsn |
data set name containing X and Y; |
X |
continuous covariate |
Y |
outcome variable |
nkat |
number of categories into which X should be divided (an even number) |
link.type |
link function to be used: link.type is coded as follows: "identity" = identity link; "logit" = logit link; "probit" = probit link; "log" = log link; "clog-log" = complementary log-log link; "log-log" = log-log link; "reciprocal" = reciprocal link; |
outlier |
exclude outliers from the plot. |
Return a matrix with 6 columns:
X |
intervals of continuous covariate. |
Frequency |
number of observations in each group. |
mean |
group means of outcome variable. |
link |
name of link function. |
gmu |
group means of outcome variable with link function. |
midpt |
median of continuous covariate in each group. |
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.