G.cd.mc: Family of discrete/continuous instrumental functions, in the...

View source: R/BoundingCovariateEffects.R

G.cd.mcR Documentation

Family of discrete/continuous instrumental functions, in the case of many covariates.

Description

This function defines the family of discrete/continuous instrumental functions in the case of many covariates. It does so by considering a instrumental functions for each pair of entries in the given covariate vector.

Usage

G.cd.mc(
  x,
  g.idx,
  data,
  n.if.per.cov,
  idxs.c,
  G.c,
  norm.func,
  info.manycov = NULL,
  cov.ranges = NULL,
  norm.cov.out = NULL,
  degree = 3,
  ...
)

Arguments

x

The vector of covariates at which to evaluate the B-splines

g.idx

The index of the instrumental function.

data

Data frame containing the data.

n.if.per.cov

Number of instrumental functions per continuous covariate.

idxs.c

Vector of indices of the continuous elements in the vector of covariates.

G.c

Family of instrumental functions to use for the subvector of continuous covariates.

norm.func

Function to be used to normalize the covariates.

info.manycov

Data frame containing some information about the global structure of the instrumental functions of this class. If info.manycov = NULL, it will be computed during execution. Default is info.manycov = NULL.

cov.ranges

Matrix containing as its rows the lower and upper bounds for each continuous covariate. Default is cov.ranges = NULL.

norm.cov.out

Output of function that normalizes the covariates.

degree

Degree of the spline functions to be used as instrumental functions for the continuous covariates (if applicable). Default is degree = 3.

...

Arguments specified here will be ignored. Used for compatibility with other instrumental function classes.


depCensoring documentation built on April 4, 2025, 1:52 a.m.