Skip to content

Commit a9e58ba

Browse files
committed
per issue #16
1 parent 80e673e commit a9e58ba

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1031
-520
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# MIT License
2+
3+
Copyright (c) 2020 Michael Clark
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

NAMESPACE

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,18 @@ S3method(extract_vc,merMod)
4141
S3method(extract_vc,stanreg)
4242
export(converge_it)
4343
export(count_grps)
44+
export(extract_VarCorr)
45+
export(extract_coef)
4446
export(extract_cor_structure)
4547
export(extract_fixed_effects)
48+
export(extract_fixef)
4649
export(extract_het_var)
4750
export(extract_model_data)
51+
export(extract_random_coefficients)
4852
export(extract_random_coefs)
4953
export(extract_random_effects)
54+
export(extract_ranef)
55+
export(extract_variance_components)
5056
export(extract_vc)
5157
export(find_typical)
5258
export(summarise_model)

R/extract_fixed_effects.R

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
#' case, Only the p-value from the process is provide, all other output is
2020
#' default provided `lme4` without adjustment.
2121
#'
22+
#' `extract_fixef` is an alias.
23+
#'
24+
#'
2225
#' @note For `nlme`, this is just a multiplier based on the estimated standard
2326
#' error and critical value for the `ci_level`.
2427
#'
@@ -503,3 +506,9 @@ extract_fixed_effects.gam <-
503506

504507
fe
505508
}
509+
510+
511+
512+
#' @rdname extract_fixed_effects
513+
#' @export
514+
extract_fixef <- extract_fixed_effects

R/extract_random_coefs.R

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
#' models. In addition, `nlme` adds all random effects to the fixed effects,
4040
#' whereas `lme4` and others only add the effects requested.
4141
#'
42+
#' `extract_coef` and `extract_random_coefficients` are aliases.
43+
#'
4244
#' @return A data frame of the random coefficients and their standard errors.
4345
#'
4446
#' @family extract
@@ -456,3 +458,12 @@ extract_random_coefs.gam <- function(
456458

457459
coefs
458460
}
461+
462+
463+
#' @rdname extract_random_coefs
464+
#' @export
465+
extract_coef <- extract_random_coefs
466+
467+
#' @rdname extract_random_coefs
468+
#' @export
469+
extract_random_coefficients <- extract_random_coefs

R/extract_random_effects.R

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
#' For mgcv, the `Vp` (Bayesian) estimated variance covariance matrix is
4444
#' used.
4545
#'
46+
#' `extract_ranef` is an alias.
47+
#'
4648
#' @return data frame of the random effects
4749
#'
4850
#' @seealso
@@ -696,3 +698,9 @@ extract_random_effects.gam <- function(
696698

697699
random_effects
698700
}
701+
702+
703+
704+
#' @rdname extract_random_effects
705+
#' @export
706+
extract_ranef <- extract_random_effects

R/extract_vc.R

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
#' for either, the relative proportion of variance, and all in a data frame
2727
#' with names that are clean and easy to use.
2828
#'
29+
#' `extract_variance_components` and `extract_VarCorr` are aliases.
30+
#'
2931
#'
3032
#' @note Right now, there are several issues with getting confidence intervals
3133
#' for `glmmTMB` objects
@@ -680,3 +682,10 @@ extract_vc.gam <- function(
680682
}
681683

682684

685+
#' @rdname extract_vc
686+
#' @export
687+
extract_variance_components <- extract_vc
688+
689+
#' @rdname extract_vc
690+
#' @export
691+
extract_VarCorr <- extract_vc

docs/ISSUE_TEMPLATE.html

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/LICENSE-text.html

Lines changed: 23 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/fixed_effects.html

Lines changed: 24 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/* Styles for section anchors */
2+
a.anchor-section {margin-left: 10px; visibility: hidden; color: inherit;}
3+
a.anchor-section::before {content: '#';}
4+
.hasAnchor:hover a.anchor-section {visibility: visible;}

0 commit comments

Comments
 (0)