Skip to content

Commit

Permalink
Merge pull request #346 from alanahjonas95/gigi
Browse files Browse the repository at this point in the history
Added documentation link to the SAS reference for skewness
  • Loading branch information
statasaurus authored Oct 22, 2024
2 parents 867422f + f4e1fa4 commit a3d5b83
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
6 changes: 5 additions & 1 deletion R/ancova.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ my_formula <- as.formula(post ~ drug + pre)

## Introduction

In this example, we're looking at [Analysis of Covariance](https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_glm_examples04.htm). ANCOVA is typically used to analyse treatment differences, to see examples of prediction models go to the [simple linear regression page](linear-regression.qmd).
ANOVA is a statistical method used to compare the means of three or more groups to determine if at least one group mean is significantly different from the others. Please see the [anova.qmd](ANOVA%20page) for more information. ANCOVA is an extension to ANOVA.

ANCOVA (Analysis of Covariance) is a statistical method that compares the means of two or more groups while controlling for one or more continuous covariates. By adjusting for these covariates, ANCOVA helps to reduce potential confounding effects, allowing for a clearer assessment of the main treatment effects. It assumes linear relationships between covariates and the dependent variable, along with normality and homogeneity of variances.

We follow the example from link [Analysis of Covariance](https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_glm_examples04.htm)

## Data Summary

Expand Down
4 changes: 3 additions & 1 deletion SAS/anova.qmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "linear-models"
title: "ANOVA"
---

### **Getting Started**
Expand Down Expand Up @@ -60,3 +60,5 @@ knitr::include_graphics("../images/linear/sas-ss-type-3.png")
```{r, echo=FALSE, fig.align='center', out.width="75%"}
knitr::include_graphics("../images/linear/sas-ss-type-4.png")
```

Reference: [Sum of squares type I, II, and III](http://dwoll.de/rexrepos/posts/anovaSStypes.html)
2 changes: 1 addition & 1 deletion SAS/summary_skew_kurt.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ The following shows the SAS documentation for the two measures.

### Skewness

The SAS documentation for Skewness is provided here for convenience:
The [SAS documentation for Skewness](https://documentation.sas.com/doc/en/vdmmlcdc/8.1/casfedsql/p04x27b92gon3gn10e5y5ybxbvmi.htm) is provided here for convenience:
```{r, echo=FALSE, fig.align='center', out.width="100%"}
knitr::include_graphics("../images/summarystats/sas_skewness.png")
```
Expand Down
2 changes: 1 addition & 1 deletion renv.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4650,4 +4650,4 @@
"Hash": "5c715954112b45499fb1dadc6ee6ee3e"
}
}
}
}
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,4 @@ webencodings==0.5.1
websocket-client==1.7.0
wheel==0.44.0
widgetsnbextension==4.0.10
zipp==3.18.1
zipp==3.18.1

0 comments on commit a3d5b83

Please sign in to comment.