cSEM (version 0.2.0)

doFloodlightAnalysis: Do a floodlight analysis

Description

Calculate the effect of an independent variable on a dependent variable conditional on the values of a (continous) moderator variable to perform a floodlight analysis Spiller2013cSEM. Moreover, the Johnson-Neyman points are calculated, i.e. the value(s) of the moderator for which lower or upper boundary of the confidence interval of the effect estimate of the independent variable on the depedent variable switches signs.

Usage

doFloodlightAnalysis(
 .object         = NULL,
 .alpha          = 0.05,
 .dependent      = NULL, 
 .moderator      = NULL,
 .independent    = NULL,
 .n_steps        = 100
 )

Arguments

.object

An R object of class cSEMResults resulting from a call to csem().

.alpha

An integer or a numeric vector of significance levels. Defaults to 0.05.

.dependent

Character string. The name of the dependent variable. Defaults to NULL.

.moderator

Character string. The name of the moderator variable. Defaults to NULL.

.independent

Character string. The name of the independent variable. Defaults to NULL.

.n_steps

Integer. A numeric value giving the number of steps, e.g., in surface analysis or floodlight analysis the spotlights (= values of .moderator) between min(.moderator) and max(.moderator) to use. Defaults to 100.

Value

A list of class cSEMFloodlight with a corresponding method for plot(). See: plot.cSEMFloodlight().

References

See Also

csem(), cSEMResults, plot.cSEMFloodlight()