08.04.2015 Views

The gss Package - NexTag Supports Open Source Initiatives

The gss Package - NexTag Supports Open Source Initiatives

The gss Package - NexTag Supports Open Source Initiatives

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

22 mkrk.nominal<br />

mkrk.nominal<br />

Crafting Building Blocks for Discrete Splines<br />

Description<br />

Usage<br />

Craft numerical functions to be used by mkterm to assemble model terms involving factors.<br />

mkrk.nominal(levels)<br />

mkrk.ordinal(levels)<br />

Arguments<br />

levels<br />

Levels of the factor.<br />

Details<br />

Value<br />

For a nominal factor with levels 1, 2, . . . , k, the level means f(i) will be shrunk towards each other<br />

through a penalty proportional to<br />

where f(.) = (f(1) + . . . + f(k))/k.<br />

(f(1) − f(.)) 2 + . . . + (f(k) − f(.)) 2<br />

For a ordinal factor with levels 1 < 2 < . . . < k, the level means f(i) will be shrunk towards each<br />

other through a penalty proportional to<br />

A list of two components.<br />

(f(1) − f(2)) 2 + . . . + (f(k − 1) − f(k)) 2<br />

fun<br />

env<br />

Function definition.<br />

Portable local constants derived from the arguments.<br />

Note<br />

mkrk.x create a bivariate function fun(x,y,env,outer=FALSE), where x, y are real arguments<br />

and local constants can be passed in through env.<br />

Author(s)<br />

See Also<br />

Chong Gu, 〈chong@stat.purdue.edu〉<br />

mkterm, mkrk.cubic, and mkrk.tp.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!