bs.gene.trans {SIMle}R Documentation

Generate Mapping Basis

Description

this function generates the value of k-th basis function. (The wavelet basis options return the full table)

Usage

bs.gene.trans(
  type,
  mp_type,
  k,
  upper = 10,
  s = 1,
  n_esti = 500,
  c = 10,
  or = 4
)

Arguments

type

type indicates which type of basis is used

mp_type

select type of mapping function, "algeb" indicates algebraic mapping on the real line. "logari" represents logarithmic mapping on the real line

k

k-th basis function

upper

the upper bound for basis domain, the default is 10

s

s is a positive scaling factor, the default is 1

n_esti

the number of values got from k-th basis function, the default is 500

c

c only used in Cspli which indicates the total number of knots to generate, the default is 10, c should not be less than k.(for splines, the true number of basis is c-2+or)

or

indicates the order of spline and only used in Cspli type, default is 4 which indicates cubic spline

Value

A matrix in which the k-th column corresponds to the values of the k-th mapped basis function

References

[1] Chen, Xiaohong. “Large Sample Sieve Estimation of Semi-Nonparametric Models.” Handbook of Econometrics, 6(B): 5549–5632,2007.

Examples

bs.gene.trans("Legen", "algeb", 5)

[Package SIMle version 0.1.0 Index]