Description Usage Arguments Details Value Author(s) See Also Examples
Estimate the propensity score using a logistic regression model
1 2 |
formula |
an object of class 'formula' (or one that can be
coerced to that class): a symbolic description of a model to be
fitted. The outcome given in |
data |
a data frame containing outcome and treatment variable and covariates. |
family |
the error distribution and link function to be used in the
model (see |
na.action |
a function which indicates what should happen when data
contain 'NA's. The default is 'na.exclude', i.e., data containing
'NA' values are deleted (see |
name.pscore |
a string indicating the name of the estimated propensity score. |
... |
further arguments passed to or from other methods. |
The propensity score is the conditional probability of receiving a
certain treatment given patient's covariates. It is generally unknown
and has to be estimated, e.g. by using logistic
regression. pscore
can be used repeatedly and all estimated
propensity scores are added on 'data'. But only the information of the
propensity score estimated at last will be stored in values of the
output object.
pscore
returns an object of class 'pscore' containing the
following components:
data |
a data frame containing the input data, extended by
column(s) including the estimated propensity score(s) labeled by
|
formula.pscore |
a formula describing formally the propensity score model fitted at last. |
model.pscore |
an object of class |
name.pscore |
a string indicating the name of the propensity score estimated at last. |
pscore |
a numeric vector containing the estimated propensity score fitted at last and labeled by 'name.pscore'. |
name.treat |
a string indicating the name of the treatment
variable given in |
treat |
a numeric vector containing the treatment labeled by 'name.treat'. |
Susanne Stampf susanne.stampf@usb.ch
glm
, formula
1 2 3 4 5 6 7 8 9 10 11 12 |
Loading required package: lme4
Loading required package: Matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.