path_analysis
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
path_analysis [2022/11/09 21:29] – hkimscil | path_analysis [2022/11/11 08:27] – hkimscil | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Path Analysis ====== | ====== Path Analysis ====== | ||
===== Planned Behavior Modeling ===== | ===== Planned Behavior Modeling ===== | ||
- | < | + | < |
###################################################### | ###################################################### | ||
## data file: PlannedBehavior.csv | ## data file: PlannedBehavior.csv | ||
Line 274: | Line 274: | ||
> | > | ||
+ | </ | ||
+ | ====== Model 3 ====== | ||
+ | < | ||
+ | # Specify model | ||
+ | specmod3 <- " | ||
+ | # directional relationships | ||
+ | intention ~ attitude + norms + control | ||
+ | behavior ~ intention | ||
+ | | ||
+ | # covariances | ||
+ | attitude ~~ norms + control | ||
+ | norms ~~ control | ||
+ | " | ||
+ | # Estimate model | ||
+ | fitmod3 <- sem(specmod3, | ||
+ | |||
+ | # Summarize model | ||
+ | summary(fitmod3, | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | a <- (5*(5+1))/2 | ||
+ | b <- 12 | ||
+ | a-b | ||
+ | |||
</ | </ |
path_analysis.txt · Last modified: 2022/11/11 08:34 by hkimscil