polyexp: Bivariate Polynomial Approximation

Description Usage Arguments Value Examples

View source: R/Functions_Cross_Dep.R

Description

Take a k-order polynomial approximation of a bivariate φ(xi,xj). The expansion excludes terms that are solely in the first variable term because coefficients on them are not identified.

Usage

1
polyexp(xi, xj, k)

Arguments

xi

first variable term

xj

second variable term

k

order of polynomial approximation

Value

vector of length k(k+1)/2

Examples

1
2
polyexp(1.2,3.1,3)
polyexp(1,0,1) # an order one expansion useful for dummy variables

estsyawo/RpacSPD documentation built on Aug. 12, 2019, 5:22 a.m.