Description Usage Arguments Value
View source: R/likelihood_methods.R
compute vgam ranks with likelihood ratio test p-values and aic difference criteria
1 2 | likelihood_rank(data, reg.f = "loess", pval = F, span = 0.75, s.df = 4,
fam = "gaussian", dtw = F)
|
data |
a |
reg.f |
the regression method to use, either "loess" with the gam package, "ns" which fits a natural cubic spline with gam package or "splines" which fits a smoothing spline (default is "loess"). |
pval |
logical, if the pval criteria is to be computedor not (default is F). |
span |
numeric, a smoothing parameter for the regression function (default is 0.75, see |
s.df |
numeric, a smoothing parameter for the nsplines regregression (default is 4, see |
fam |
character, for the vgam regression, the distribution assumption of the residuals; etiher "binomial" or "gaussian" (default is "gaussian"). |
dtw |
logical, if the alignment should be made with dtw before acomputing the likelihood, (default is FALSE) . |
returns rankingDE
objects: one for the likelihood ratio test pvalues and one for the aic difference criteria if aic == T.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.