fit_and_predict_probabilities {ddecompose}R Documentation

Predict conditional probabilities

Description

This function fits a binary choice model and predicts probabilities for every observations.

Usage

fit_and_predict_probabilities(
  formula,
  data_used,
  weights,
  method = "logit",
  return_model = FALSE,
  newdata = NULL,
  ...
)

Arguments

formula

formula object specifying the conditional probability model.

data_used

data.frame with data.

weights

weights variable

method

method to estimate conditional probabilities

return_model

boolean: If FALSE (default), the object of the model fit used to predict the conditional probabilities for the reweighting factor are not returned.

newdata

data.frame with data to be used for predictions.

...

other parameters passed to the estimation function.


[Package ddecompose version 1.0.0 Index]