BPFhat {BayesBP} | R Documentation |
Given Bernstein polynomial coeffients to compute Fhat.
BPFhat(coef, ages, years, basis)
coef |
Bernstein polynomial coefficients. |
ages |
Range of ages. |
years |
Range of years. |
basis |
Bernstein polynomial basis. |
This function return outer Bernstein polynomial using coefficients.
Other outer Bernstein polynomial:
PD_BPFhat()
coef <- runif(9)
ages <- 35:85
years <- 1988:2007
list.basis <- BPbasis(ages,years,10)
BPFhat(coef,ages,years,list.basis)