Learn R Programming

nonprobsampling (version 0.1.0)

solve_participation_model: Solve the participation model estimating equations

Description

A unified wrapper that calls `nleqslv::nleqslv()` to solve the system of estimating equations \(g(\beta) = 0\), then validates the result via `check_nleqslv_result()`.

Usage

solve_participation_model(beta_start, fn, jac, label, control = NULL, ...)

Value

A list with components `coefficients`, `iterations`, `solver`, `solver_result`, `solver_method`, `fvec`, `termcd`, and `message`.

Arguments

beta_start

Numeric vector of starting values for the coefficient vector \(\beta\).

fn

Function returning the estimating equation vector \(g(\beta)\).

jac

Function returning the Jacobian matrix \(J(\beta)\).

label

Character string used as a prefix in error messages to identify the calling method.

control

A list created by `pw_solver_control()`.

...

Additional arguments passed to `fn` and `jac` (e.g., design matrices and weights).