User Tools

Site Tools


r:path_analysis

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
r:path_analysis [2024/10/30 03:32] – [Lavaan in R: explanation] hkimscilr:path_analysis [2025/11/30 23:22] (current) hkimscil
Line 16: Line 16:
     * The number of unique (non-redundent) source of information     * The number of unique (non-redundent) source of information
     * $p(p+1)/2$     * $p(p+1)/2$
-    * The number of parameters (paths) specified in model +  * The number of parameters (paths) specified in model 
-  * Just-identified (df = 0) +    * Just-identified (df = 0) 
-    * Model can be estimated, but cannot be assessed +      * Model can be estimated, but cannot be assessed 
-  * Over-identified (df > 0) +    * Over-identified (df > 0) 
-    * Model can be estimated and assessed +      * Model can be estimated and assessed 
-  * Under-identified (df < 0) +    * Under-identified (df < 0) 
-    * Model cannot be either estimated or assessed+      * Model cannot be either estimated or assessed
  
   * Exogenous and    * Exogenous and 
Line 58: Line 58:
 install.packages("readr") install.packages("readr")
 library(readr) library(readr)
-df <- read.csv("http://commres.net/wiki/_media/r/plannedbehavior.csv")+df <- read.csv("http://commres.net/_media/r/plannedbehavior.csv")
 head(df) head(df)
 str(df) str(df)
Line 132: Line 132:
 <code> <code>
  
-> df <- read.csv("http://commres.net/wiki/_media/r/plannedbehavior.csv")+> df <- read.csv("http://commres.net/_media/r/plannedbehavior.csv")
 > head(df) > head(df)
   attitude norms control intention behavior   attitude norms control intention behavior
Line 573: Line 573:
 <code> <code>
 # processdata<-read.csv("path analysis dataN BinW.csv", header=TRUE, sep=",") # processdata<-read.csv("path analysis dataN BinW.csv", header=TRUE, sep=",")
-processdata<-read.csv("http://commres.net/wiki/_media/r/path_analysis_datan_binw.csv", +processdata<-read.csv("http://commres.net/_media/r/path_analysis_datan_binw.csv", 
                        header=TRUE, sep=",", fileEncoding="UTF-8-BOM")                        header=TRUE, sep=",", fileEncoding="UTF-8-BOM")
 </code> </code>
Line 665: Line 665:
  
 > # processdata<-read.csv("path analysis dataN BinW.csv", header=TRUE, sep=",") > # processdata<-read.csv("path analysis dataN BinW.csv", header=TRUE, sep=",")
-> processdata<-read.csv("http://commres.net/wiki/_media/r/path_analysis_datan_binw.csv", +> processdata<-read.csv("http://commres.net/_media/r/path_analysis_datan_binw.csv", 
 +                        header=TRUE, sep=",", fileEncoding="UTF-8-BOM") +                        header=TRUE, sep=",", fileEncoding="UTF-8-BOM")
  
Line 1070: Line 1070:
 CODING  CODING 
 <code> <code>
-processdata<-read.csv("http://commres.net/wiki/_media/r/path_analysis_datan_binw.csv", +processdata<-read.csv("http://commres.net/_media/r/path_analysis_datan_binw.csv", 
                        header=TRUE, sep=",", fileEncoding="UTF-8-BOM")                        header=TRUE, sep=",", fileEncoding="UTF-8-BOM")
 str(processdata) str(processdata)
Line 1182: Line 1182:
 {{youtube>HvYW_GeHpD8}} {{youtube>HvYW_GeHpD8}}
 <code> <code>
-processdata <- read.csv("http://commres.net/wiki/_media/r/path_analysis_datan_binw.csv")+processdata <- read.csv("http://commres.net/_media/r/path_analysis_datan_binw.csv")
 str(processdata) str(processdata)
 # install.packages("MVN") # install.packages("MVN")
r/path_analysis.1730259168.txt.gz · Last modified: by hkimscil

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki