Releases: lcpilling/lukesRlib
Releases · lcpilling/lukesRlib
lukesRlib v0.2.12
Bug fixes
get_assoc()
- Drop empty factor levels if using haven::as_factor()get_assoc()
- Correctly identify covariate variable names when using haven::as_factor()
Changes
get_assoc()
- New option "include_formula" allows user to request that the full regression formula (with covariates) is included in the outputget_assoc()
- Outputs exposure/outcome/covariate variables not in data.frame whenverbose=TRUE
(shows first 6 when FALSE)get_assoc()
- Prints a bit more output to the screen by default
lukesRlib v0.2.11
Changes
tidy_ci()
now recognises and tidies factor naming ifhaven::as_factor()
is used instead of the base Ras.factor()
get_assoc()
now useshaven::as_factor()
instead of base Ras.factor()
for categorical exposures so that labels are shown nicely- Update dependencies to include {haven} and be more explicit which tidyverse packages are desired
- Update example data categorical variables to include labels
- Fix NEWS formatting
lukesRlib v0.2.10
Changes
- Change URL to reflect my GitHub username change from
lukepilling
tolcpilling
to be more consistent between different logins, websites, and social media
-- https://lcpilling.github.io/lukesRlib
-- https://github.com/lcpilling/lukesRlib get_assoc()
-- Add options to Winsorize the exposure or outcome
-- Removebeep
-- Improvedverbose
reporting
lukesRlib v0.2.9
Bug fixes
get_assoc()
- Fixfit_stat_se
if missingget_assoc()
- Fix covariate checking if interaction included in formula. Resolving issue #1
lukesRlib v0.2.8
get_assoc()
- add
interacts_with
argument. Default is "". User can provide a variable name (string) to also get interaction terms - Fixed bug in
return_all_terms
when exposure was factor - Include SE for C-statistic if returning
fit_stat
for coxph() models
- add
lukesRlib v0.2.7
get_assoc()
- addreturn_all_terms
argument. Default is false. If TRUE, adds a new colterms
and returns the estimates for all independent variables in the models.get_assoc()
- removesubset_d
argumentget_assoc()
- fixed if exposure or outcome needs to be protected by backticks (previously failed if variable was something like "bmi-1")get_assoc()
- fixed problem where covariate estimates were also included in certain situations (e.g., if x="age" do not get covariate "percentage")- Update examples for many functions
lukesRlib v0.2.6
Since last release:
get_assoc()
- fixed if no covariates providedget_assoc()
- if x and y are the same, skip (useful if providing same list of variables twice for pairwise analysis)get_assoc()
- addedverbose
option for bug checkingget_assoc()
- addedbeep
option for beeping when finishedtidy_ci()
- add some functionality for summarizing fixed-effects fromlme4::lmer()
lukesRlib v0.2.5
get_assoc()
now expects the data as first argument, if not defined. Brings it more into the tidyverse. For instance, one can now:data |> filter(age>60) |> get_assoc(x="BMI", y="diabetes", z="sex")
- Add theme
theme_minimal_modified
for ggplots - Moves most dependencies to "Imports" - this is the preferred way to use existing packages https://r-pkgs.org/dependencies-mindset-background.html#sec-dependencies-namespace
- Fix -log10p calculation
lukesRlib v0.2.3
- Decided to remove genetics-related functions to instead have them in a separate package, as the dependencies were getting out of hand
- Added
annotate_textp()
function for use in ggplot2 plots for adding easy text annotation geoms - Moved some functions to be internal only to tidy up the namespace
- Fix
get_p_extreme
if NaN is passed rather than NA
lukesRlib v0.2.2
- Decided to remove
doCoxSplinePlot()
because it is so much easier to do in {ggplot2} that a whole function is no longer necessary -
- Therefore the {pspline} dependency can be removed
- Set
extreme_ps
default to FALSE inget_assoc()
- Added p-value threshold option to
get_loci()
- Fix problem getting
n
inget_assoc()
whenmodel="coxph"