Added option in select_weight

This commit is contained in:
2025-05-26 13:55:42 +02:00
parent cdda1aab85
commit 2eafd5c3a6
2 changed files with 12 additions and 3 deletions

View File

@ -4,7 +4,13 @@
\alias{select_weight}
\title{Compute confounding weights for the PCBSM.}
\usage{
select_weight(df = NULL, grp = NULL, X = NULL, instr = NULL)
select_weight(
df = NULL,
grp = NULL,
X = NULL,
instr = NULL,
type.res = "deviance"
)
}
\arguments{
\item{df}{data.frame containing the data}
@ -14,6 +20,8 @@ select_weight(df = NULL, grp = NULL, X = NULL, instr = NULL)
\item{X}{vector of strings containing the name of confounders to be included in the model}
\item{instr}{vector of strings containing the name of instrumental variables to be included in the model}
\item{type.res}{string containing the type of glm residuals to be used. Default is "deviance"}
}
\value{
A vector of weights to be included in a PCBSM