Learn R Programming

modsem (version 1.0.24)

TPB_UK: TPB_UK

Description

A dataset based on the Theory of Planned Behaviour from a UK sample. Contains the indicators for the latent variables (ATT, SN, PBC, INT, BEH) from the first time point (t1). Only observations with complete responses to all items are included.

Note that the dataset was updated in version 1.0.24. Previously it contained 4 indicators (selected for high communality) for each latent variable, and 1169 observations. It now contains all the indicators for each latent variable from the first time point, and 1894 observations. Model syntax written for the old version (e.g., using sn4 or beh4) must be updated.

Arguments

Format

A data frame with 1894 observations of 19 variables:

att1

Indicator 1 (at time 1) for attitude (ATT).

att2

Indicator 2 (at time 1) for attitude (ATT).

att3

Indicator 3 (at time 1) for attitude (ATT).

att4

Indicator 4 (at time 1) for attitude (ATT).

att5

Indicator 5 (at time 1) for attitude (ATT).

sn1

Indicator 1 (at time 1) for subjective norms (SN).

sn2

Indicator 2 (at time 1) for subjective norms (SN).

sn3

Indicator 3 (at time 1) for subjective norms (SN).

pbc1

Indicator 1 (at time 1) for perceived behavioural control (PBC).

pbc2

Indicator 2 (at time 1) for perceived behavioural control (PBC).

pbc3

Indicator 3 (at time 1) for perceived behavioural control (PBC).

pbc4

Indicator 4 (at time 1) for perceived behavioural control (PBC).

int1

Indicator 1 (at time 1) for intention (INT).

int2

Indicator 2 (at time 1) for intention (INT).

int3

Indicator 3 (at time 1) for intention (INT).

int4

Indicator 4 (at time 1) for intention (INT).

beh1

Indicator 1 (at time 1) for behaviour (BEH).

beh2

Indicator 2 (at time 1) for behaviour (BEH).

beh3

Indicator 3 (at time 1) for behaviour (BEH).

Examples

Run this code

tpb_uk <- "
# Outer Model (Based on Hagger et al., 2007)
 ATT =~ att1 + att2 + att3 + att4 + att5
 SN =~ sn1 + sn2 + sn3
 PBC =~ pbc1 + pbc2 + pbc3 + pbc4
 INT =~ int1 + int2 + int3 + int4
 BEH =~ beh1 + beh2 + beh3

# Inner Model (Based on Steinmetz et al., 2011)
 # Causal Relationsships
 INT ~ ATT + SN + PBC
 BEH ~ INT + PBC
 BEH ~ INT:PBC
"

est <- modsem(tpb_uk, data = TPB_UK)
summary(est)

Run the code above in your browser using DataLab