fSquared: seminr fSquared Function

Description Usage Arguments Value References Examples

View source: R/evaluate_effects.R

Description

The fSquared function calculates f^2 effect size for a given IV and DV

Usage

1
fSquared(seminr_model, iv, dv)

Arguments

seminr_model

A seminr_model containing the estimated seminr model.

iv

An independent variable in the model.

dv

A dependent variable in the model.

Value

A matrix of the estimated F Square metric for each construct.

References

Cohen, J. (2013). Statistical power analysis for the behavioral sciences. Routledge.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
mobi_mm <- constructs(
             reflective("Image",        multi_items("IMAG", 1:5)),
             reflective("Expectation",  multi_items("CUEX", 1:3)),
             reflective("Quality",      multi_items("PERQ", 1:7)),
             reflective("Value",        multi_items("PERV", 1:2)),
             reflective("Satisfaction", multi_items("CUSA", 1:3)),
             reflective("Complaints",   single_item("CUSCO")),
             reflective("Loyalty",      multi_items("CUSL", 1:3))
           )

mobi_sm <- relationships(
  paths(from = "Image",        to = c("Expectation", "Satisfaction", "Loyalty")),
  paths(from = "Expectation",  to = c("Quality", "Value", "Satisfaction")),
  paths(from = "Quality",      to = c("Value", "Satisfaction")),
  paths(from = "Value",        to = c("Satisfaction")),
  paths(from = "Satisfaction", to = c("Complaints", "Loyalty")),
  paths(from = "Complaints",   to = "Loyalty")
)

mobi_pls <- estimate_pls(data = mobi,
                         measurement_model = mobi_mm,
                         structural_model = mobi_sm)

fSquared(mobi_pls, "Image", "Satisfaction")

seminr documentation built on Sept. 5, 2021, 5:36 p.m.