-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathindex.Rmd
More file actions
48 lines (35 loc) · 2.63 KB
/
index.Rmd
File metadata and controls
48 lines (35 loc) · 2.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
title: "Structural Equation Modeling for Ecology and Evolutionary Biology"
---
<center>
```{r demoplot, fig.align='center', echo=FALSE, fig.height=4, fig.width=6, warning=FALSE, message=FALSE, comment=NA}
library(DiagrammeR)
library(piecewiseSEM)
data(keeley)
mod <- psem(lm(abiotic ~ distance, data = keeley),
lm(hetero ~ distance, data = keeley),
lm(age ~ distance, data = keeley),
lm(firesev ~ age, data = keeley),
lm(cover ~ firesev, data = keeley),
lm(rich ~ hetero + cover + abiotic, data = keeley),
data = keeley)
source("./scripts/plot_psem.R")
plt <- plot.psem(mod,
node_attrs =list(
x = c(3, 3, 2, 3, 4, 5, 1),
y = c(1, 2, 0, 0, 0, 1, 1),
shape = "rectangle", color = "black",
fillcolor = "white"),
return = TRUE)
render_graph(plt)
```
</center>
**Instructor:** [Jarrett Byrnes, PhD.](http://byrneslab.net)
**Email:** jarrett.byrnes@umb.edu
**Source for this Website:** https://github.com/jebyrnes/semclass
**About:** This website is for the one-week Intro to SEM for EEB in [R](http://r-project.org) intensive workshop that I've been developing and teaching since 2008. If you are interested in having such a workshop at your university or organization, please contact me at the email above. Otherwise, feel free to use the materials here as a free resource for self-teaching. Note, the materials here are in constant development; new code and methods are constantly being generated. It all mostly works (hey, the R generated graph above is a brand-new feature - you can see it has a bit of work to go), and is offered in the spirit of exploration and our joint adventure into more informative methods for telling stories from our data.
For more, see the [overview](overview.html) page. To see what the course looks like, check out the [schedule](schedule.html) page. If you're interested in further material beyond what's offered here, check out the [resources](resources.html) page. And if you want some information on products that have grown out of the course, see the [publications](publications.html) page. I hope to one day list you there!
Last, an acknowledgement of a huge dept to my fellow teachers [Jim Grace](https://www.usgs.gov/centers/wetland-and-aquatic-research-center/science/quantitative-analysis-using-structural-equation?qt-science_center_objects=0#qt-science_center_objects) and [Jon Lefcheck](https://jonlefcheck.net). Sometimes we teach this together, sometimes apart, and our materials go back and forth. Definitely click through to see their course materials and more.