simple.slopes.3way {InteractionPoweR} | R Documentation |
See the simple slopes for a 3-way interaction
Description
Prints or plots the simple slopes for a 3-way interaction
Usage
simple.slopes.3way(power.results, row.num = 1, return.plot = FALSE)
Arguments
power.results |
Data frame of results from power_interaction_3way_r2(). |
row.num |
Which row to show? Can only be a single number. Default is 1. |
return.plot |
Return a matrix (FALSE, default), or a plot (TRUE)? |
Value
A matrix or a ggplot2 object
Examples
power_analysis = power_interaction_3way_r2(detailed_results = TRUE,N = c(1000),
r.x1.y = .2,r.x2.y = .3,r.x3.y = .1,r.x1x2.y = .01,r.x1x3.y = .05,r.x2x3.y = .1,
b.x1x2x3 = 0.1,r.x1.x2 = .1,r.x1.x3 = .1,r.x2.x3 = .1,
rel.x1 = 1,rel.x2 = 1,rel.x3 = 1,rel.y = 1 )
simple.slopes.3way(power_analysis)
[Package InteractionPoweR version 0.2.2 Index]