Learn R Programming

refund (version 0.1-40)

pffr_setup_response: Setup response and indices for formula environment

Description

Setup response and indices for formula environment

Usage

pffr_setup_response(
  is_sparse,
  ydata,
  yind,
  yind_name,
  nobs,
  nyindex,
  response_name,
  eval_env,
  frml_env,
  formula_env
)

Value

A list with yind_vec, yindex_vec_name, obs_indices, missing_indices.

Arguments

is_sparse

Whether data is sparse.

ydata

The ydata (or NULL).

yind

The y-index vector.

yind_name

Name of y-index.

nobs

Number of observations.

nyindex

Number of y-index points.

response_name

Response variable name (symbol).

eval_env

Evaluation environment.

frml_env

Formula environment.

formula_env

Environment to assign to.