Skip to content

Commit

Permalink
Added more arguments to WeightIt function.
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzoFabbri committed Sep 18, 2023
1 parent ba25012 commit 8cb5d16
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 12 deletions.
8 changes: 5 additions & 3 deletions R/weighting.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,13 @@ estimate_weights <- function(dat,
ret <- WeightIt::weightit(formula = as.formula(form),
data = dat,
method = method,
stabilize = method_args$stabilize,
by = method_args$by,
ps = NULL,
subclass = NULL,
missing = "ind",
verbose = FALSE,
include.obj = TRUE,
SL.library = method_args$sl_lib,
cvControl = list(
V = 3,
Expand All @@ -62,9 +66,7 @@ estimate_weights <- function(dat,
method_args$use_kernel == TRUE,
TRUE,
FALSE
),
verbose = FALSE,
include.obj = TRUE)
))

return(list(
weights = ret,
Expand Down
38 changes: 29 additions & 9 deletions renv.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,26 @@
"R": {
"Version": "4.3.1",
"Repositories": [
{
"Name": "BioCsoft",
"URL": "https://bioconductor.org/packages/3.17/bioc"
},
{
"Name": "BioCann",
"URL": "https://bioconductor.org/packages/3.17/data/annotation"
},
{
"Name": "BioCexp",
"URL": "https://bioconductor.org/packages/3.17/data/experiment"
},
{
"Name": "BioCworkflows",
"URL": "https://bioconductor.org/packages/3.17/workflows"
},
{
"Name": "BioCbooks",
"URL": "https://bioconductor.org/packages/3.17/books"
},
{
"Name": "CRAN",
"URL": "https://cloud.r-project.org"
Expand Down Expand Up @@ -115,17 +135,17 @@
},
"RcppArmadillo": {
"Package": "RcppArmadillo",
"Version": "0.12.6.3.0",
"Version": "0.12.6.4.0",
"Source": "Repository",
"Repository": "RSPM",
"Repository": "CRAN",
"Requirements": [
"R",
"Rcpp",
"methods",
"stats",
"utils"
],
"Hash": "4a4fc9c9d0d24ee8708bb17528372f30"
"Hash": "cafeccdc6577a445a15ce98b6a1805cf"
},
"RcppEigen": {
"Package": "RcppEigen",
Expand Down Expand Up @@ -602,7 +622,7 @@
},
"credentials": {
"Package": "credentials",
"Version": "1.3.2",
"Version": "2.0.1",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
Expand All @@ -612,7 +632,7 @@
"openssl",
"sys"
],
"Hash": "93762d0a34d78e6a025efdbfb5c6bb41"
"Hash": "c7844b32098dcbd1c59cbd8dddb4ecc6"
},
"crul": {
"Package": "crul",
Expand Down Expand Up @@ -1723,7 +1743,7 @@
},
"knitr": {
"Package": "knitr",
"Version": "1.43",
"Version": "1.44",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
Expand All @@ -1735,7 +1755,7 @@
"xfun",
"yaml"
],
"Hash": "9775eb076713f627c07ce41d8199d8f6"
"Hash": "60885b9f746c9dfaef110d070b5f7dc0"
},
"labeling": {
"Package": "labeling",
Expand Down Expand Up @@ -1957,13 +1977,13 @@
},
"minqa": {
"Package": "minqa",
"Version": "1.2.5",
"Version": "1.2.6",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"Rcpp"
],
"Hash": "587ce77fd3c7bada7eadb2d18b62930d"
"Hash": "f48238f8d4740426ca12f53f27d004dd"
},
"missRanger": {
"Package": "missRanger",
Expand Down

0 comments on commit 8cb5d16

Please sign in to comment.