Attaches the reconstructed sample data frame, the pseudo-weight vector, and NA-handling metadata to `result`, then assigns the `"pw_fit"` class so that downstream S3 methods can dispatch on it.
finalize_pw_fit(result, sc_out, sc0, sc_wname, na_mode, keep_sc, na_action_obj)`result` with `sc_updated`, `pseudo_weights`, and `internal` fields populated, and class set to `"pw_fit"`.
A list accumulating outputs from the estimation pipeline.
The reconstructed sample data frame produced by `reconstruct_sc_output()`.
The original (pre-NA-removal) sample data frame, stored for diagnostic access via `result$internal$raw_sc`.
Name of the pseudo-weight column in `sc_out`.
Character string describing how NAs were handled; stored in `result$internal$na`.
Logical vector of retained rows; stored in `result$internal$na`.
The `na.action` attribute from NA removal; stored in `result$internal$na`.