PD_BPFhat {BayesBP} | R Documentation |
Two dimensional Bernstein polynomial
Description
Given Bernstein polynomial coeffients to compute Fhat.
Usage
PD_BPFhat(coef, ages, years, pdbasis, by = 1)
Arguments
coef |
Bernstein polynomial coefficients. |
ages |
Range of ages. |
years |
Range of years. |
pdbasis |
Partial differential Bernstein polynomial basis. |
by |
1: partial differential by ages; 2: partial differential by years. |
Value
Partial differential Bernstein polynomial given coefficients.
See Also
Other outer Bernstein polynomial:
BPFhat()
Examples
coef <- runif(9)
ages <- 35:85
years <- 1988:2007
pdbasis <- PD_BPbasis(ages,years,10,N=1,by=1)
PD_BPFhat(coef,ages,years,pdbasis,by=1)
[Package BayesBP version 1.1 Index]