sm (version 2.2-5.4)

sm.options: Set or return options of sm library

Description

This function provides a means to control the behaviour of the sm library such as the colour of the plotted lines, the size of the grid in 2-d estimation, the set of evaluations points, and many others. A list may be given as the only argument, or any number of arguments may be in the name=value form. If no arguments are specified then the function returns the current settings of all the arguments.

Usage

sm.options(...)

Arguments

...
A list may be given as the only argument, or any number of arguments may be in the name=value form. The valid names of the arguments are given below.

Value

a list with the updated values of the parameters. If the argument list is not empty, the returned list is invisible.

Details

Arguments which are set by a function call will remain in effect until the end of the current S-plus session, unless overwritten by a subsequent call. In addition, they can be added as optional parameters of calls to specific functions of the sm package; in this case, their effect is limited to that function call.

See the documentation of specific functions for the list of options which are recognised by that function. Notice that some options are relevant only to some functions.

Examples

Run this code
## Not run: sm.options(poly.index = 0)
# # subsequent regression estimations will be performed using local means
# # instead of local regression
# #
# sm.options(describe = FALSE)  
# # turns off typing documentation files of data loaded by `sm.script'
# # (works from command-line)
# # 
# ## End(Not run)

Run the code above in your browser using DataCamp Workspace