predict_ProbitRE_PLNRE: Predictions of ProbitRE_PLNRE model on new sample

View source: R/ProbitRE_PLNRE.R

predict_ProbitRE_PLNRER Documentation

Predictions of ProbitRE_PLNRE model on new sample

Description

Predictions of ProbitRE_PLNRE model on new sample. Please make sure the factor variables in the test data do not have levels not shown in the training data.

Usage

predict_ProbitRE_PLNRE(
  par,
  sel_form,
  out_form,
  data,
  offset_w_name = NULL,
  offset_x_name = NULL
)

Arguments

par

Model estimates

sel_form

Formula for selection equation, a Probit model with random effects

out_form

Formula for outcome equation, a Poisson Lognormal model with random effects

data

Input data, a data.frame object

offset_w_name

Offset variables in selection equation, if any.

offset_x_name

Offset variables in outcome equation, if any.

Value

A list with three sets of predictions

  • prob: Predicted probability to participate

  • outcome: Predicted potential outcome

  • actual_outcome: Predicted actual outcome


PanelCount documentation built on Aug. 21, 2023, 9:09 a.m.