Added option in select_weight
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user