this function generates the value of k-th basis function. (The wavelet basis options return the full table)
bs.gene.trans(
type,
mp_type,
k,
upper = 10,
s = 1,
n_esti = 500,
c = 10,
or = 4
)A matrix in which the k-th column corresponds to the values of the k-th mapped basis function
type indicates which type of basis is used
select type of mapping function, "algeb" indicates algebraic mapping on the real line. "logari" represents logarithmic mapping on the real line
k-th basis function
the upper bound for basis domain, the default is 10
s is a positive scaling factor, the default is 1
the number of values got from k-th basis function, the default is 500
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)
indicates the order of spline and only used in Cspli type, default is 4 which indicates cubic spline
[1] Chen, Xiaohong. “Large Sample Sieve Estimation of Semi-Nonparametric Models.” Handbook of Econometrics, 6(B): 5549–5632,2007.
bs.gene.trans("Legen", "algeb", 5)
Run the code above in your browser using DataLab