|
18 | 18 | #' In \code{formula} most shortcut notation allowed by \code{glmer()} function is |
19 | 19 | #' also allowed by \code{ds.glmerSLMA}. |
20 | 20 | #' Many GLMEs can be fitted very simply using a formula like: |
21 | | -#' \deqn{y~a+b+(1|c)} |
| 21 | +#' \code{y~a+b+(1|c)} |
22 | 22 | #' which simply means fit an GLME with \code{y} as the outcome variable (e.g. |
23 | 23 | #' a binary case-control using a logistic regression model or a count or a survival |
24 | 24 | #' time using a Poisson regression model), \code{a} and \code{b} |
25 | 25 | #' as fixed effects, and \code{c} as a random effect or grouping factor. |
26 | 26 | #' |
27 | 27 | #' It is also possible to fit models with random slopes by specifying a model such as |
28 | | -#' \deqn{y~a+b+(1+b|c)} |
| 28 | +#' \code{y~a+b+(1+b|c)} |
29 | 29 | #' where the effect of \code{b} can vary randomly between groups defined by \code{c}. |
30 | | -#' Implicit nesting can be specified with formulas such as: \eqn{y~a+b+(1|c/d)} |
31 | | -#' or \eqn{y~a+b+(1|c)+(1|c:d)}. |
| 30 | +#' Implicit nesting can be specified with formulas such as: \code{y~a+b+(1|c/d)} |
| 31 | +#' or \code{y~a+b+(1|c)+(1|c:d)}. |
32 | 32 | #' |
33 | 33 | #' |
34 | 34 | #' The \code{dataName} argument avoids you having to specify the name of the |
35 | 35 | #' data frame in front of each covariate in the formula. |
36 | 36 | #' For example, if the data frame is called \code{DataFrame} you avoid having to write: |
37 | | -#' \eqn{DataFrame$y~DataFrame$a+DataFrame$b+(1|DataFrame$c)}. |
| 37 | +#' \code{DataFrame$y~DataFrame$a+DataFrame$b+(1|DataFrame$c)}. |
38 | 38 | #' |
39 | 39 | #' The \code{checks} argument verifies that the variables in the model are all defined (exist) |
40 | 40 | #' on the server-site at every study |
|
228 | 228 | #' |
229 | 229 | #' # Fit a Logistic regression model |
230 | 230 | #' |
231 | | -#' ds.glmerSLMA(formula = "Male ~ incid_rate +diabetes + (1 | age)", |
| 231 | +#' ds.glmerSLMA(formula = "Male ~ incid_rate +diabetes + (1 | age)", |
232 | 232 | #' dataName = "D", |
233 | | -#' datasources = connections[2],#only the second server is used (study2) |
| 233 | +#' datasources = connections[2], # only the second server is used (study2) |
234 | 234 | #' family = "binomial") |
235 | 235 | #' |
236 | 236 | #' |
|
0 commit comments