doFloodlightAnalysis

0th

Percentile

Do a floodlight analysis

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

Usage
doFloodlightAnalysis(
 .object        = NULL,
 .alpha         = 0.05,
 .y             = NULL, 
 .x             = NULL,
 .z             = NULL,
 .n_spotlights  = 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.

.y

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

.x

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

.z

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

.n_spotlights

Integer. A numeric value giving the number of spotlights (= values of .z) between min(.z) and max(.z) 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()

Aliases
  • doFloodlightAnalysis
Documentation reproduced from package cSEM, version 0.1.0, License: GPL-3

Community examples

Looks like there are no examples yet.