R/basis.R

Defines functions basis_tps basis_sph basis_poly basis_ord basis_nom

Documented in basis_nom basis_ord basis_poly basis_sph basis_tps

basis_nom <- 
  function(x, knots, K = NULL, intercept = FALSE, ridge = FALSE){
    basis.nom(x, knots, K, intercept, ridge)
  }

basis_ord <- 
  function(x, knots, K = NULL, intercept = FALSE, ridge = FALSE){
    basis.ord(x, knots, K, intercept, ridge)
  }

basis_poly <- 
  function(x, knots, m = 2, d = 0, xmin = min(x), xmax = max(x), 
           periodic = FALSE, rescale = FALSE, intercept = FALSE, 
           bernoulli = TRUE, ridge = FALSE){
    basis.poly(x, knots, m, d, xmin, xmax, 
               periodic, rescale, intercept, 
               bernoulli, ridge)
  }

basis_sph <- 
  function(x, knots, m = 2, intercept = FALSE, ridge = FALSE){
    basis.sph(x, knots, m, intercept, ridge)
  }

basis_tps <- 
  function(x, knots, m = 2, rk = TRUE, intercept = FALSE, ridge = FALSE){
    basis.tps(x, knots, m, rk, intercept, ridge)
  }

Try the npreg package in your browser

Any scripts or data that you put into this service are public.

npreg documentation built on July 21, 2022, 1:06 a.m.