effectsDocumentation: Function to create a table of documentation of effect names,...

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/effectsDocumentation.r

Description

Produces a table of the shortnames and other information for effects, either in html or latex.

Usage

1
2
effectsDocumentation(effects = NULL, type = "html", display = (type=="html"),
     filename = ifelse(is.null(effects), "effects", deparse(substitute(effects))))

Arguments

effects

A Siena effects object, or NULL.

type

Type of output required. Valid options are "html" or "latex".

display

Boolean: should the output be displayed after creation. Only applicable to html output.

filename

Character string denoting file name.

Details

If effects=NULL, the allEffects object is written to a table, either latex or html. This table presents all the available effects present in this version of RSiena, not delimited by a particular data set. The default file name is "effects.tex" or "effects.html", respectively.

The table lists all effects, with their name, shortName, whether an endowment (and creation) effect exists, the value of an effect parameter - if any -, and the interactionType (which can be empty or: "ego" or "dyadic" for dependent network variables; "OK" for dependent behavior variables). The latter is important for knowing how the effects can be used in interaction effects. (See includeInteraction).

If an existing effects object is specified for effects, then all available effects in this effects object are listed. This table lists the name (i.e., dependent variable), effect name, shortName, type (rate/evaluation/endowment/creation), the variables defined as interaction1 and interaction2 (see includeEffects) that specify this effect, the value of an effect parameter - if any -, and the interactionType. The default root file name is the name of the input effects object.

Value

Nothing returned. Output files are created in the current working directory.

Author(s)

Ruth Ripley, Tom A.B. Snijders

References

See http://www.stats.ox.ac.uk/~snijders/siena/

See Also

getEffects, includeEffects, summary.sienaEffects, includeInteraction.

Examples

1
## Not run: effectsDocumentation()

Example output

Warning message:
no DISPLAY variable so Tk is not available 

RSiena documentation built on Sept. 24, 2020, 3 p.m.