Description Usage Arguments Details References See Also Examples
Takes a clogitL1
object and produces a summary of the sequence of models fitted.
1 2 |
object |
an object of type |
... |
any additional arguments passed to |
Returns a list with a elements Coefficients
, which holds the matrix of coefficients estimated (each row holding the estimates for a given value of the smoothing parameter) and Lambda
, which holds the vector of smoothing parameters at which fits were produced.
http://www.jstatsoft.org/v58/i12/
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | set.seed(145)
# data parameters
K = 10 # number of strata
n = 5 # number in strata
m = 2 # cases per stratum
p = 20 # predictors
# generate data
y = rep(c(rep(1, m), rep(0, n-m)), K)
X = matrix (rnorm(K*n*p, 0, 1), ncol = p) # pure noise
strata = sort(rep(1:K, n))
par(mfrow = c(1,2))
# fit the conditional logistic model
clObj = clogitL1(y=y, x=X, strata)
summary(clObj)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.