1010# ' @param id A character string giving the name of the variable that
1111# ' indicates which rows of the dataset belong to the same person
1212# ' or group for the multilevel analysis.
13- # ' @param data A data table or data frame to be used for analysis.
13+ # ' @param data A \code{ data. table} or \code{ data. frame} to be used for analysis.
1414# ' @param savemodel A logical value indicating whether the underlying model
1515# ' should be saved and returned. Defaults to \code{FALSE}.
1616# ' @return a list with two elements, the first, \dQuote{Results} contains the
2323# ' @export
2424# ' @importFrom lavaan sem parameterEstimates
2525# ' @examples
26- # '
2726# ' data(aces_daily, package = "JWileymisc")
2827# ' omegaSEM(
2928# ' items = c("COPEPrb", "COPEPrc", "COPEExp"),
@@ -316,8 +315,8 @@ if(getRversion() >= "2.15.1") utils::globalVariables(c("Estimator", "N_Groups",
316315# ' This function provides fit statistics and effect sizes for
317316# ' model comparisons. The models must be nested.
318317# '
319- # ' @param model1 A model estimated by \code{lmer}.
320- # ' @param model2 A model estimated by \code{lmer}.
318+ # ' @param model1 A model estimated by \code{\link[lme4]{ lmer} }.
319+ # ' @param model2 A model estimated by \code{\link[lme4]{ lmer} }.
321320# ' @param ... Additional arguments, not currently used but included to match generic.
322321# ' @return a data table with the fit indices for each model
323322# ' and comparing models to each other.
@@ -429,13 +428,13 @@ if(getRversion() >= "2.15.1") utils::globalVariables(c("var1", "var2", "sdcor",
429428
430429# ' estimate detailed results per variable and effect sizes for both fixed and random effects from lmer models
431430# '
432- # ' This function extends the current \code{drop1} method for
431+ # ' This function extends the current \code{\link[stats]{ drop1} } method for
433432# ' \code{merMod} class objects from the lme4 package. Where
434433# ' the default method to be able to drop both fixed and random
435434# ' effects at once.
436435# '
437- # ' At the moment, the function is aimed to \code{lmer} models
438- # ' and has very few features for \code{glmer} or \code{nlmer}
436+ # ' At the moment, the function is aimed to \code{\link[lme4]{ lmer} } models
437+ # ' and has very few features for \code{\link[lme4]{ glmer}} or \code{\link[lme4]{ nlmer} }
439438# ' models. The primary motivation was to provide a way to
440439# ' provide an overall test of whether a variable
441440# ' \dQuote{matters}. In multilevel data, a variable may be
@@ -453,9 +452,9 @@ if(getRversion() >= "2.15.1") utils::globalVariables(c("var1", "var2", "sdcor",
453452# ' mixed effects models do not accomodate all types of models. For example,
454453# ' if a model includes only a random slope with no random intercept,
455454# ' if the random slope was dropped, there would be no more random effects,
456- # ' and at that point, \code{lmer} or \code{glmer} will not run the model.
455+ # ' and at that point, \code{\link[lme4]{ lmer}} or \code{\link[lme4]{ glmer} } will not run the model.
457456# ' It is theoretically possible to instead fit the model using
458- # ' \code{lm} or \code{glm} but this becomes more complex for certain
457+ # ' \code{\link[stats]{ lm}} or \code{\link[stats]{ glm} } but this becomes more complex for certain
459458# ' model comparisons and calculations and is not currently implemented.
460459# ' Marginal and conditional R2 values are calculated for each term,
461460# ' and these are used also to calculate something akin to an
@@ -474,12 +473,12 @@ if(getRversion() >= "2.15.1") utils::globalVariables(c("var1", "var2", "sdcor",
474473# ' main effect but keeping the interaction term, so present
475474# ' and interpret these with caution.
476475# '
477- # ' @param object A \code{merMod} class object, the fitted result of
478- # ' \code{lmer}.
476+ # ' @param object A \code{link[lme4]{ merMod- class}} object, the fitted result of
477+ # ' \code{\link[lme4]{ lmer} }.
479478# ' @param method A character vector indicating the types of confidence
480479# ' intervals to calculate. One of \dQuote{Wald}, \dQuote{profile}, or
481480# ' \dQuote{boot}.
482- # ' @param control A \code{lmerControl() } results used to control how
481+ # ' @param control A \code{\link[lme4]{ lmerControl} } results used to control how
483482# ' models are estimated when updating.
484483# ' @param ... Additional arguments passed to \code{confint}
485484# ' @importFrom JWileymisc modelTest as.na as.modelTest
@@ -495,7 +494,7 @@ if(getRversion() >= "2.15.1") utils::globalVariables(c("var1", "var2", "sdcor",
495494# ' ## these examples are slow to run
496495# ' library(JWileymisc)
497496# ' m1 <- lme4::lmer(extra ~ group + (1 | ID),
498- # ' data = sleep, REML= FALSE)
497+ # ' data = sleep, REML = FALSE)
499498# ' modelTest(m1)
500499# '
501500# ' \donttest{
@@ -748,7 +747,7 @@ modelTest.merMod <- function(object, method = c("Wald", "profile", "boot"), cont
748747# '
749748# ' Currently only linear mixed effects models are allowed.
750749# '
751- # ' @param formula A \code{character} string giving the \code{lmer() } formula
750+ # ' @param formula A \code{character} string giving the \code{\link[lme4]{ lmer} } formula
752751# ' to use as a base. The variable to be tested with lags gets added as fixed effects
753752# ' only to this, currently.
754753# ' @param lagvar A \code{character} string giving the name of the variable to test lags for.
0 commit comments