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 0.2.10 (6th June 2024)
Changes
Change URL to reflect my GitHub username change from lukepilling to lcpilling to be more consistent between different logins, websites, and social media
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
lukesRlib 0.2.7 (29th Jan 2024)
get_assoc() - add return_all_terms argument. Default is false. If TRUE, adds a new col terms and returns the estimates for all independent variables in the models.
Fix problem getting n in get_assoc() when model="coxph"
lukesRlib 0.2.0 (5 May 2023)
get_assoc() can now perform coxph() models from the {survival} package. The user provides strings depicting the survival object as the outcome e.g., “Surv(time, event)”
Added two genetics-related functions: lambda_gc() (to calculate Lambda GC!) and get_loci() (to crudely determine independent loci in GWAS summary stats)
General improvements/clarifications throughout code and documentation
lukesRlib 0.1.9
Added dependency {rlang} >= v1.0.0 so that the sym() function can be used - i.e., using provided variable name strings in dplyr::mutate() etc
get_assoc() now allows options inv_norm_x and inv_norm_y
lukesRlib 0.1.8
Changed get_assoc() so that x and y can be vectors - i.e., multiple exposures/outcomes can be provided. Then uses {purrr} function map2() to iterate over combinations
This package now depends on {purrr} >= v1.0.0 & {stringr} >= v1.5.0
Added functions xv() and yv() to improve ease of using {purrr} function map2() with get_assoc() for PheWAS of multiple exposures and outcomes in one analysis
lukesRlib 0.1.7
Calculate R^2 in tidy_ci() if glm() is linear regression
tidy_ci() now tidies up terms included as categorical variables. “as.factor(x_var)1” is replaced with “x_var-1”. Can be disabled with tidy_factors=FALSE
addition of “Plotting” category of functions, starting with doCoxSplinePlot() that nicely plots the output of a spline term in a CoxPH model
Minor fix to tidy_ci() to avoid breaks due to missing p-values in model summary statistics