
Last chance! 50% off unlimited learning
Sale ends in
predict.FindIt
takes an output from FindIt
and returns
estimated treatment effects when treat.type="single"
and predicted
outcomes for each treatment combination when treat.type="multiple"
.
# S3 method for FindIt
predict(
object,
newdata,
sort = TRUE,
decreasing = TRUE,
wts = 1,
unique = FALSE,
...
)
An output object from FindIt
.
An optional data frame in which to look for variables with
which to predict. If omitted, the data used in FindIt
is used.
Whether to sort samples according to estimated treatment effects.
When sort=TRUE
, whether to sort the output in
descending order or not.
Weights.
If unique=TRUE
, predict
returns estimated
treatment effects or predicted outcomes for unique samples.
further arguments passed to or from other methods.
A matrix of estimated treatment effects when
treat.type="single"
and predicted outcomes for each treatment
combination when treat.type="multiple"
.
Useful for computing estimated treatment effects or predicted outcomes for
each treatment combination. By using newdata
, researchers can compute
them for any samples.
# NOT RUN {
## See the help page for FindIt() for an example.
# }
Run the code above in your browser using DataLab