Description Usage Arguments Details Value Examples
View source: R/BasisCon_bivariatesmooth.R
This is an internal function of package ggam
.
1 2 |
object |
is a bivariate smooth object. |
data |
A data frame, model frame or list containing the values of the (named) covariates
at which the smooth term is to be evaluated. If it’s a list then |
It is the wrapper function which calls basis constructing method.
a list of smooth
objects are returned. Many of the outputs are from f
function.
Other outputs include all the information related to berstein basis.
1 2 3 4 5 6 7 8 9 10 11 12 | library(BPST)
library(GgAM)
data("eg1pop_dat")
eg1_V2=eg1pop_dat[['V2']]
eg1_T2=eg1pop_dat[['T2']]
eg1pop_rho03=eg1pop_dat[['rho03']]
sam=eg1pop_rho03[sample(1:dim(eg1pop_rho03)[1],70),]
BI <- BasisCon(b(x1,x2,d=2,r=1,V=eg1_V2,Tr=eg1_T2),eg1pop_rho03[sample(1:dim(eg1pop_rho03)[1],70),])
xx=seq(-0.8,3.8,length=100)
yy=seq(-0.8,0.8,length=100)
sam=data.frame(x1=rep(xx,length(xx)),x2=rep(yy,each=length(yy)))
BI <- BasisCon(b(x1,x2,d=2,r=1,V=eg1_V2,Tr=eg1_T2),sam)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.