GithubHelp home page GithubHelp logo

jslefche / sem_book Goto Github PK

View Code? Open in Web Editor NEW
21.0 2.0 14.0 1.54 MB

An Introduction to Structural Equation Modeling

License: GNU General Public License v3.0

R 0.05% JavaScript 15.75% CSS 23.23% HTML 60.97%
sem path-analysis latent-variables lavaan piecewisesem

sem_book's Introduction

An Introduction to Structural Equation Modeling in R

Structural equation modeling is among the fastest growing statistical techniques in the natural sciences, thanks in large part to new advances and software packages that make it broadly applicable and easy to use.

This book is meant to be an approachable and open-source guide to the theory, math, and application of SEM. It integrates code for the R software for statistical computing from popular packages such as lavaan and piecewiseSEM. Each chapter ends with worked examples from the published literature.

Moreover, as the author of the piecewiseSEM package, this format allows me to document newly-deployed functionality in the package, such as the addition of categorical variables, multigroup analysis and composite variables, new forms of coefficient standardization, and updates to model R2s.

Check back often, as this book is a "living resource:" as new functionality is added and bugs uncovered and fixed, they will be described in detail here (with worked examples where possible).

In some ways, this is my grandest experiment: happy reading!

sem_book's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sem_book's Issues

LLchisq() not an available function

Hi! In Chapter 3.4 you go over the Log-Likelihood chi-squared test and make reference to a function LLchisq() , which I presume should be in your piecewiseSEM package, but I don't see it in there (or in any other R package) and am not able to run it. Very nice book by the way, thanks for this resource!

How to cite the SEM book?

Are there plans in the works to get a DOI for the book or the repository? Do you know of any papers citing the work?

I find myself using this book quite a bit and want to be sure you're properly credited!

Typo in section 3.6

Hi there is a very minor typo in the 4th line of the 3rd code chunk in section 3.6
gam should be glm (in order to get a pval of 0.647)
Great book and package by the way!
Claire

shipley_psem3 <- psem(
gam(x2 ~ s(x1), data = dat2, family = gaussian),
glm(x3 ~ x2, data = dat2, family = poisson),
gam(x4 ~ x2, data = dat2, family = poisson), #should be glm
glm(x5 ~ x3 + x4, data = dat2, family = binomial)
)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.