Skip to contents

Package overview

JPselection-package JPselection
JPselection: Just-Pope Production Functions with Heckman Selectivity Correction

Full pipeline

Wrappers for the complete three-step procedure with vs. without selectivity correction.

jp_fit()
Fit the full Koundouri-Nauges (2005) three-step pipeline
jp_compare()
Compare jp_fit specifications across functional forms

S3 methods

Extracting coefficients and plotting fitted objects.

plot(<jpfit>)
Plot the risk-function coefficients of a fitted `jpfit` object
coef(<jpfit>)
Extract risk-function coefficients

Individual stages

The estimation steps exposed for finer control.

estimate_selection()
Estimate the crop-choice selection equation and compute the Inverse Mills Ratio
estimate_mean_function()
Estimate the Just-Pope mean production function with selectivity correction
estimate_risk_function()
Estimate the Just-Pope variance (risk) function

Export

Write results to Excel, LaTeX, or CSV for papers and slides.

jp_export()
Export a fitted `jpfit` object to Excel, LaTeX, or CSV

Example and reference data

Synthetic and packaged datasets used for demonstration.

simulate_kiti_data()
Simulate a Kiti-Cyprus-like farm dataset
prepare_caf_data()
Prepare Chilean Agricultural Census (CAF 2021) data for [jp_fit()]
caf2021_docs()
Open the CAF 2021 documentation bundled with the package
caf2021_g2_groups()
Default mapping of G2 codes to broad activity groups