library(ClinicoPath)
#> Loading required package: acepack
#> Loading required package: askpass
#> Loading required package: assertthat
#> Loading required package: backports
#> Loading required package: base64enc
#> Loading required package: bayestestR
#> Loading required package: BH
#> Loading required package: blavaan
#> Loading required package: lavaan
#> This is lavaan 0.6-5
#> lavaan is BETA software! Please report any bugs.
#> Loading required package: Rcpp
#> This is blavaan 0.3-8
#> On multicore systems, we suggest use of future::plan("multiprocess") for faster post-MCMC computations.
#> Loading required package: boot
#> Loading required package: BradleyTerry2
#> Loading required package: broom
#> Loading required package: callr
#> Loading required package: caret
#> Loading required package: lattice
#> 
#> Attaching package: 'lattice'
#> The following object is masked from 'package:boot':
#> 
#>     melanoma
#> Loading required package: ggplot2
#> Loading required package: checkmate
#> Loading required package: cli
#> Loading required package: clipr
#> Welcome to clipr. See ?write_clip for advisories on writing to the clipboard in R.
#> Loading required package: cmprsk
#> Loading required package: survival
#> 
#> Attaching package: 'survival'
#> The following object is masked from 'package:caret':
#> 
#>     cluster
#> The following object is masked from 'package:boot':
#> 
#>     aml
#> Loading required package: colorspace
#> Loading required package: correlation
#> 
#> Attaching package: 'correlation'
#> The following object is masked from 'package:lavaan':
#> 
#>     cor2cov
#> Loading required package: covr
#> Loading required package: cowplot
#> 
#> ********************************************************
#> Note: As of version 1.0.0, cowplot does not change the
#>   default ggplot2 theme anymore. To recover the previous
#>   behavior, execute:
#>   theme_set(theme_cowplot())
#> ********************************************************
#> Loading required package: crayon
#> 
#> Attaching package: 'crayon'
#> The following object is masked from 'package:ggplot2':
#> 
#>     %+%
#> Loading required package: Cubist
#> Loading required package: curl
#> Loading required package: data.table
#> Loading required package: DBI
#> Loading required package: desc
#> Loading required package: devtools
#> Loading required package: usethis
#> Loading required package: digest
#> Loading required package: e1071
#> Loading required package: earth
#> Loading required package: Formula
#> Loading required package: plotmo
#> Loading required package: plotrix
#> Loading required package: TeachingDemos
#> Loading required package: effectsize
#> Loading required package: ellipse
#> 
#> Attaching package: 'ellipse'
#> The following object is masked from 'package:graphics':
#> 
#>     pairs
#> Loading required package: ellipsis
#> Loading required package: evaluate
#> 
#> Attaching package: 'evaluate'
#> The following object is masked from 'package:assertthat':
#> 
#>     is.error
#> Loading required package: exactRankTests
#>  Package 'exactRankTests' is no longer under development.
#>  Please consider using package 'coin' instead.
#> Loading required package: explore
#> 
#> Attaching package: 'explore'
#> The following object is masked from 'package:covr':
#> 
#>     report
#> Loading required package: fansi
#> Loading required package: farver
#> Loading required package: fastICA
#> Loading required package: forcats
#> Loading required package: foreach
#> Loading required package: gam
#> Loading required package: splines
#> Loaded gam 1.16.1
#> Loading required package: generics
#> 
#> Attaching package: 'generics'
#> The following object is masked from 'package:evaluate':
#> 
#>     evaluate
#> The following object is masked from 'package:e1071':
#> 
#>     interpolate
#> The following object is masked from 'package:caret':
#> 
#>     train
#> The following objects are masked from 'package:base':
#> 
#>     as.difftime, as.factor, as.ordered, intersect, is.element, setdiff,
#>     setequal, union
#> Loading required package: GGally
#> Registered S3 method overwritten by 'GGally':
#>   method from   
#>   +.gg   ggplot2
#> 
#> Attaching package: 'GGally'
#> The following object is masked from 'package:explore':
#> 
#>     rescale01
#> Loading required package: ggpubr
#> Loading required package: magrittr
#> 
#> Attaching package: 'ggpubr'
#> The following object is masked from 'package:cowplot':
#> 
#>     get_legend
#> Loading required package: ggrepel
#> Loading required package: ggsci
#> Loading required package: ggsignif
#> Loading required package: ggstatsplot
#> Registered S3 methods overwritten by 'broom.mixed':
#>   method         from 
#>   augment.lme    broom
#>   augment.merMod broom
#>   glance.lme     broom
#>   glance.merMod  broom
#>   glance.stanreg broom
#>   tidy.brmsfit   broom
#>   tidy.gamlss    broom
#>   tidy.lme       broom
#>   tidy.merMod    broom
#>   tidy.rjags     broom
#>   tidy.stanfit   broom
#>   tidy.stanreg   broom
#> Registered S3 methods overwritten by 'car':
#>   method                          from
#>   influence.merMod                lme4
#>   cooks.distance.influence.merMod lme4
#>   dfbeta.influence.merMod         lme4
#>   dfbetas.influence.merMod        lme4
#> Loading required package: glue
#> Loading required package: grid
#> Loading required package: gridExtra
#> Loading required package: gtable
#> Loading required package: here
#> here() starts at /Users/serdarbalciold/histopathRprojects/ClinicoPath
#> Loading required package: highr
#> Loading required package: Hmisc
#> 
#> Attaching package: 'Hmisc'
#> The following object is masked from 'package:explore':
#> 
#>     describe
#> The following objects are masked from 'package:TeachingDemos':
#> 
#>     cnvrt.coords, subplot
#> The following object is masked from 'package:e1071':
#> 
#>     impute
#> The following objects are masked from 'package:base':
#> 
#>     format.pval, units
#> Loading required package: hms
#> Loading required package: htmlTable
#> Loading required package: htmltools
#> Loading required package: htmlwidgets
#> Loading required package: httr
#> 
#> Attaching package: 'httr'
#> The following object is masked from 'package:curl':
#> 
#>     handle_reset
#> The following object is masked from 'package:caret':
#> 
#>     progress
#> Loading required package: inline
#> 
#> Attaching package: 'inline'
#> The following object is masked from 'package:htmltools':
#> 
#>     code
#> The following object is masked from 'package:Rcpp':
#> 
#>     registerPlugin
#> Loading required package: ipred
#> Loading required package: irr
#> Loading required package: lpSolve
#> Loading required package: iterators
#> Loading required package: janitor
#> 
#> Attaching package: 'janitor'
#> The following objects are masked from 'package:stats':
#> 
#>     chisq.test, fisher.test
#> Loading required package: jomo
#> Loading required package: jpeg
#> Loading required package: jsonlite
#> Loading required package: kableExtra
#> Loading required package: kernlab
#> 
#> Attaching package: 'kernlab'
#> The following object is masked from 'package:ggplot2':
#> 
#>     alpha
#> Loading required package: klaR
#> Loading required package: MASS
#> 
#> Attaching package: 'MASS'
#> The following object is masked from 'package:BradleyTerry2':
#> 
#>     glmmPQL
#> 
#> Attaching package: 'klaR'
#> The following object is masked from 'package:TeachingDemos':
#> 
#>     triplot
#> Loading required package: km.ci
#> Loading required package: KMsurv
#> Loading required package: knitr
#> Loading required package: labeling
#> Loading required package: latticeExtra
#> 
#> Attaching package: 'latticeExtra'
#> The following object is masked from 'package:ggplot2':
#> 
#>     layer
#> Loading required package: lazyeval
#> Loading required package: lifecycle
#> Loading required package: lme4
#> Loading required package: Matrix
#> 
#> Attaching package: 'lme4'
#> The following object is masked from 'package:generics':
#> 
#>     refit
#> Loading required package: loo
#> This is loo version 2.2.0
#> - Online documentation and vignettes at mc-stan.org/loo
#> - As of v2.0.0 loo defaults to 1 core but we recommend using as many as possible. Use the 'cores' argument or set options(mc.cores = NUM_CORES) for an entire session.
#> Loading required package: lubridate
#> 
#> Attaching package: 'lubridate'
#> The following object is masked from 'package:hms':
#> 
#>     hms
#> The following object is masked from 'package:here':
#> 
#>     here
#> The following objects are masked from 'package:data.table':
#> 
#>     hour, isoweek, mday, minute, month, quarter, second, wday, week,
#>     yday, year
#> The following object is masked from 'package:cowplot':
#> 
#>     stamp
#> The following object is masked from 'package:base':
#> 
#>     date
#> Loading required package: markdown
#> Loading required package: matrixStats
#> 
#> Attaching package: 'matrixStats'
#> The following object is masked from 'package:checkmate':
#> 
#>     anyMissing
#> Loading required package: maxstat
#> Loading required package: mda
#> Loading required package: class
#> Loaded mda 0.4-10
#> Loading required package: mgcv
#> Loading required package: nlme
#> 
#> Attaching package: 'nlme'
#> The following object is masked from 'package:lme4':
#> 
#>     lmList
#> The following object is masked from 'package:glue':
#> 
#>     collapse
#> This is mgcv 1.8-31. For overview type 'help("mgcv-package")'.
#> 
#> Attaching package: 'mgcv'
#> The following objects are masked from 'package:gam':
#> 
#>     gam, gam.control, gam.fit, s
#> Loading required package: mice
#> 
#> Attaching package: 'mice'
#> The following objects are masked from 'package:base':
#> 
#>     cbind, rbind
#> Loading required package: mime
#> Loading required package: minqa
#> Loading required package: mitml
#> *** This is beta software. Please report any bugs!
#> *** See the NEWS file for recent changes.
#> Loading required package: mitools
#> Loading required package: mlbench
#> Loading required package: MLmetrics
#> 
#> Attaching package: 'MLmetrics'
#> The following objects are masked from 'package:caret':
#> 
#>     MAE, RMSE
#> The following object is masked from 'package:base':
#> 
#>     Recall
#> Loading required package: ModelMetrics
#> 
#> Attaching package: 'ModelMetrics'
#> The following objects are masked from 'package:caret':
#> 
#>     confusionMatrix, precision, recall, sensitivity, specificity
#> The following object is masked from 'package:bayestestR':
#> 
#>     auc
#> The following object is masked from 'package:base':
#> 
#>     kappa
#> Loading required package: MuMIn
#> 
#> Attaching package: 'MuMIn'
#> The following object is masked from 'package:loo':
#> 
#>     loo
#> Loading required package: munsell
#> 
#> Attaching package: 'munsell'
#> The following object is masked from 'package:colorspace':
#> 
#>     desaturate
#> Loading required package: mvtnorm
#> Loading required package: nFactors
#> Loading required package: psych
#> 
#> Attaching package: 'psych'
#> The following object is masked from 'package:MLmetrics':
#> 
#>     AUC
#> The following object is masked from 'package:kernlab':
#> 
#>     alpha
#> The following object is masked from 'package:Hmisc':
#> 
#>     describe
#> The following object is masked from 'package:explore':
#> 
#>     describe
#> The following object is masked from 'package:plotrix':
#> 
#>     rescale
#> The following object is masked from 'package:crayon':
#> 
#>     %+%
#> The following object is masked from 'package:correlation':
#> 
#>     cor2cov
#> The following objects are masked from 'package:ggplot2':
#> 
#>     %+%, alpha
#> The following object is masked from 'package:boot':
#> 
#>     logit
#> The following object is masked from 'package:lavaan':
#> 
#>     cor2cov
#> 
#> Attaching package: 'nFactors'
#> The following object is masked from 'package:lattice':
#> 
#>     parallel
#> Loading required package: nloptr
#> 
#> Attaching package: 'nloptr'
#> The following objects are masked from 'package:minqa':
#> 
#>     bobyqa, newuoa
#> Loading required package: nnet
#> 
#> Attaching package: 'nnet'
#> The following object is masked from 'package:mgcv':
#> 
#>     multinom
#> Loading required package: numDeriv
#> Loading required package: openssl
#> 
#> Attaching package: 'openssl'
#> The following object is masked from 'package:digest':
#> 
#>     sha1
#> Loading required package: ordinal
#> 
#> Attaching package: 'ordinal'
#> The following objects are masked from 'package:nlme':
#> 
#>     ranef, VarCorr
#> The following objects are masked from 'package:lme4':
#> 
#>     ranef, VarCorr
#> The following object is masked from 'package:kernlab':
#> 
#>     convergence
#> Loading required package: pamr
#> Loading required package: cluster
#> Loading required package: pan
#> Loading required package: party
#> Loading required package: modeltools
#> Loading required package: stats4
#> 
#> Attaching package: 'modeltools'
#> The following object is masked from 'package:lme4':
#> 
#>     refit
#> The following object is masked from 'package:kernlab':
#> 
#>     prior
#> The following objects are masked from 'package:generics':
#> 
#>     fit, refit
#> Loading required package: strucchange
#> Loading required package: zoo
#> 
#> Attaching package: 'zoo'
#> The following objects are masked from 'package:base':
#> 
#>     as.Date, as.Date.numeric
#> Loading required package: sandwich
#> 
#> Attaching package: 'sandwich'
#> The following object is masked from 'package:generics':
#> 
#>     estfun
#> Loading required package: performance
#> 
#> Attaching package: 'performance'
#> The following objects are masked from 'package:ModelMetrics':
#> 
#>     mse, rmse
#> The following object is masked from 'package:irr':
#> 
#>     icc
#> Loading required package: pillar
#> 
#> Attaching package: 'pillar'
#> The following object is masked from 'package:mice':
#> 
#>     squeeze
#> The following object is masked from 'package:cli':
#> 
#>     style_bold
#> Loading required package: pkgbuild
#> 
#> Attaching package: 'pkgbuild'
#> The following object is masked from 'package:devtools':
#> 
#>     build
#> Loading required package: pkgconfig
#> 
#> Attaching package: 'pkgconfig'
#> The following object is masked from 'package:httr':
#> 
#>     set_config
#> Loading required package: pkgdown
#> 
#> Attaching package: 'pkgdown'
#> The following object is masked from 'package:devtools':
#> 
#>     build_site
#> Loading required package: pkgload
#> 
#> Attaching package: 'pkgload'
#> The following objects are masked from 'package:devtools':
#> 
#>     has_tests, load_all, package_file
#> Loading required package: plogr
#> Loading required package: pls
#> 
#> Attaching package: 'pls'
#> The following object is masked from 'package:MuMIn':
#> 
#>     stdize
#> The following object is masked from 'package:caret':
#> 
#>     R2
#> The following object is masked from 'package:stats':
#> 
#>     loadings
#> Loading required package: plyr
#> 
#> Attaching package: 'plyr'
#> The following object is masked from 'package:modeltools':
#> 
#>     empty
#> The following object is masked from 'package:matrixStats':
#> 
#>     count
#> The following object is masked from 'package:lubridate':
#> 
#>     here
#> The following objects are masked from 'package:Hmisc':
#> 
#>     is.discrete, summarize
#> The following object is masked from 'package:here':
#> 
#>     here
#> The following object is masked from 'package:ggpubr':
#> 
#>     mutate
#> The following object is masked from 'package:desc':
#> 
#>     desc
#> The following object is masked from 'package:BradleyTerry2':
#> 
#>     baseball
#> Loading required package: png
#> Loading required package: polynom
#> Loading required package: ppcor
#> Loading required package: praise
#> Loading required package: pROC
#> Type 'citation("pROC")' for a citation.
#> 
#> Attaching package: 'pROC'
#> The following object is masked from 'package:ModelMetrics':
#> 
#>     auc
#> The following object is masked from 'package:colorspace':
#> 
#>     coords
#> The following objects are masked from 'package:bayestestR':
#> 
#>     auc, ci
#> The following objects are masked from 'package:stats':
#> 
#>     cov, smooth, var
#> Loading required package: purrr
#> 
#> Attaching package: 'purrr'
#> The following object is masked from 'package:plyr':
#> 
#>     compact
#> The following objects are masked from 'package:lazyeval':
#> 
#>     is_atomic, is_formula
#> The following object is masked from 'package:kernlab':
#> 
#>     cross
#> The following object is masked from 'package:jsonlite':
#> 
#>     flatten
#> The following object is masked from 'package:magrittr':
#> 
#>     set_names
#> The following objects are masked from 'package:foreach':
#> 
#>     accumulate, when
#> The following object is masked from 'package:data.table':
#> 
#>     transpose
#> The following object is masked from 'package:caret':
#> 
#>     lift
#> Loading required package: RANN
#> Loading required package: RColorBrewer
#> Loading required package: RcppEigen
#> Loading required package: rlang
#> 
#> Attaching package: 'rlang'
#> The following objects are masked from 'package:purrr':
#> 
#>     %@%, as_function, flatten, flatten_chr, flatten_dbl, flatten_int,
#>     flatten_lgl, flatten_raw, invoke, list_along, modify, prepend,
#>     splice
#> The following objects are masked from 'package:pkgload':
#> 
#>     ns_env, pkg_env
#> The following objects are masked from 'package:lazyeval':
#> 
#>     as_name, call_modify, call_standardise, expr_label, expr_text,
#>     f_env, f_env<-, f_label, f_lhs, f_lhs<-, f_rhs, f_rhs<-, f_text,
#>     is_atomic, is_call, is_formula, is_lang, is_pairlist, missing_arg
#> The following objects are masked from 'package:jsonlite':
#> 
#>     flatten, unbox
#> The following object is masked from 'package:magrittr':
#> 
#>     set_names
#> The following object is masked from 'package:data.table':
#> 
#>     :=
#> The following object is masked from 'package:crayon':
#> 
#>     chr
#> The following object is masked from 'package:assertthat':
#> 
#>     has_name
#> Loading required package: StanHeaders
#> Loading required package: tableone
#> Welcome to my package
#> 
#> Attaching package: 'ClinicoPath'
#> The following object is masked from 'package:explore':
#> 
#>     report
#> The following object is masked from 'package:covr':
#> 
#>     report
#> The following object is masked from 'package:correlation':
#> 
#>     correlation
#> The following object is masked from 'package:survival':
#> 
#>     cluster
#> The following object is masked from 'package:cli':
#> 
#>     tree
#> The following object is masked from 'package:caret':
#> 
#>     cluster