mkint | R Documentation |
Generate integrals of basis terms for use in the ssden1 suite.
mkint(mf, type, id.basis, quad, term, rho, rho.int)
mkint2(mf, type, id.basis, quad, term)
mf |
Model frame of the model formula. |
type |
List specifying the type of spline for each variable. |
id.basis |
Index of observations to be used as "knots." |
quad |
Quadratures on marginal domains, weighted by rho. |
term |
Model terms generated by |
rho |
Marginal log(rho) on quadrature points. |
rho.int |
Marginal integrals of log(rho). |
mkint
calculates the first moments of basis functions with
respect to the indepent joint density rho; mkint2
calculates
the second moments for use in project.ssden1
.
mkint
returns a list of five elements.
s |
First moments of phi's. |
r |
First moments of rk's. |
s.rho |
Cross moments of phi*log(rho). |
r.rho |
Cross moments of rk*log(rho). |
var.type |
Types for variables. |
mkint2
returns a list of three elements.
ss |
Second moments of phi's. |
sr |
Cross moments of phi's and rk's. |
rr |
Second moments of rk. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.