selectionTable.plot: Plots the selection table associated with a sienaFit object &...

Description Usage Arguments Value

Description

Plots the selection table associated with a sienaFit object & other spex

Usage

1
2
selectionTable.plot(x, xd, name, vname, levls, levls.alt = levls,
  quad = TRUE, separation = 0, bw = FALSE, withMax = FALSE)

Arguments

x

sienaFit: Results from a single group analysis

xd

siena: the RSiena Data Object or Data Set that was used to generate x

name

character: the name of the endogenous variable of interest (a network or behavior variable)

vname

character: the actor variable name (i.e. predictor variable)

levls

numeric: number of ego levels in the variable given by vname

levls.alt

numeric (=levls): number of alter levels in vname (usually = levls, in which case you do not need to include it in the call)

quad

logical(=TRUE): If plotting a quadratic function, set to TRUE; For similarity effects, set to FALSE.

separation

numeric(=0): Higher values give the curves more separation to improve readability. An advisable nonzero value is -0.01.

bw

logical(=FALSE): If true, plot is black & white, otherwise color.

withMax

logical (=FALSE): If TRUE, also plot the maximum over selection probability over values of alters as a dashed line.

Value

A ggplot2 object


johninpdx/RSSelectionTbl documentation built on May 21, 2019, 12:20 p.m.