| Title: | R tool for Semiparametric Instrumental Variable Method |
|---|---|
| Description: | Analysing Semiparametric Instrumental Variable Model. Tools are provided for simulation and empirical study. |
| Authors: | Bin Peng [aut, cre], Yuhuai Chen [aut] |
| Maintainer: | Bin Peng <Bin.Peng@monash.edu> |
| License: | MIT + file LICENSE |
| Version: | 0.1.0 |
| Built: | 2026-09-28 10:50:09 UTC |
| Source: | https://github.com/greatknee/sivmethod |
Unified simulation engine for Example B.2.1
Sim(n, no_sim, case, k = NULL)Sim(n, no_sim, case, k = NULL)
n |
Integer. Number of observations. |
no_sim |
Integer. Number of simulation replications. |
case |
Character. One of '"A"', '"B"', '"C"' or '"D"'. |
k |
Integer. The truncation parameter. |
A list with:
Summary statistics matrix.
Average selection frequencies.
Sim(100L, 200L, case = "A")Sim(100L, 200L, case = "A")
This function combines Case A and Case B into a single package-ready simulation interface.
Sim_test(n, no_sim, case = "A", c = 0.75, k = NULL)Sim_test(n, no_sim, case = "A", c = 0.75, k = NULL)
n |
Integer. Number of observations. |
no_sim |
Integer. Number of simulation replications. |
case |
Character. One of '"A"' or '"B"'. |
c |
Numeric scalar with c >= 0. Used in
|
k |
Integer vector. The range of truncation parameters to be considered via Generalized Cross-Validation. |
A list with:
Summary statistics matrix.
Average test rate.
Sim_test(100L, 200L, case = "A", c = 1)Sim_test(100L, 200L, case = "A", c = 1)
This function implements the SIV method for the linear form
SIV(Y, X, k)SIV(Y, X, k)
Y |
Response vector, n-by-1. |
X |
Regressor matrix, n-by-d. |
k |
Integer vector including the possible values of the truncation parameter, L_k-by-1. |
A list containing the following components:
b_SIV_*: Estimated coefficients (d-by-1).
gam_SIV_*: Estimated gams.
sd_*: Standard deviation of b_SIV_* and gam_SIV (d-by-1).
e_*: Estimated residuals (n-by-1).
eps_LSO: Estimated epsilon_i's of the paper (n-by-1), i.e., m(x_i) + e_i.
V_LSO: The psi_i()'s after selection (n-by-k).
Ind_LSO: Selection result for the LASSO method.
m_all: Estimated m(.) and its 95% CI.