The gss Package - NexTag Supports Open Source Initiatives
The gss Package - NexTag Supports Open Source Initiatives
The gss Package - NexTag Supports Open Source Initiatives
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
20 mkran<br />
Note<br />
mkrk.tp and mkrk.sphere create a bivariate function fun(x,y,env,outer=FALSE),<br />
where x, y are real arguments and local constants can be passed in through env.<br />
mkphi.tp creates a collection of univariate functions fun(x,nu,env), where x is the argument<br />
and nu is the index.<br />
Author(s)<br />
Chong Gu, 〈chong@stat.purdue.edu〉<br />
References<br />
Gu, C. (2002), Smoothing Spline ANOVA Models. New York: Springer-Verlag.<br />
Wahba, G. (1981), Spline interpolation and smoothing on the sphere. SIAM Journal on Scientific<br />
and Statistical Computing, 2, 5–16.<br />
See Also<br />
mkterm, mkfun.poly, and mkrk.nominal.<br />
mkran<br />
Generating Random Effects in Mixed-Effect Models<br />
Description<br />
Generate entries representing random effects in mixed-effect models.<br />
Usage<br />
mkran(formula, data)<br />
Arguments<br />
formula<br />
data<br />
Symbolic description of the random effects.<br />
Data frame containing the variables in the model.<br />
Details<br />
This function generates random effect terms from simple grouping variables, for use in nonparametric<br />
mixed-effect models as described in Gu and Ma (2005a, b). <strong>The</strong> syntax of the formula resembles<br />
that of similar utilities for linear and nonlinear mixed-effect models, as described in Pinheiro and<br />
Bates (2000).<br />
Currently, mkran takes only two kinds of formulas, ~1|grp2 or ~grp1|grp2. Both grp1 and<br />
grp2 should be factors, and for the second formula, the levels of grp2 should be nested under<br />
those of grp1.