Version info: Code for this page was tested in R Under development (unstable) (2012-07-05 r59734) On: 2012-07-08 With: knitr 0.6.3 In this page, we demonstrate how to create spaghetti plots,…
Read More
Search Results for: what stat should i use
How can I perform a Mantel test in R? | R FAQ
A Mantel test measures the correlation between two matrices typically containing measures of distance. A Mantel test is one way of testing for spatial autocorrelation. Using functions in the ade4…
Read More
How does R handle missing values? | R FAQ
Version info: Code for this page was tested in R Under development (unstable) (2012-02-22 r58461) On: 2012-03-28 With: knitr 0.4 Like other statistical software packages, R is capable of handling…
Read More
How can I perform mediation with multilevel data? (Method 2) | R FAQ
Attention See this FAQ by Bauer that discusses the need to decompose within- and between-group effects when using this approach to ensure valid results (https://dbauer.web.unc.edu/wp-content/uploads/sites/7494/2015/08/Centering-in-111-Mediation.pdf). FAQ starts here Version info:…
Read More
How can I convert from person-level to person-period? | R FAQ
In studies of survival or modeling discrete-time events, one compact way to store data is in what may be called, “person-level” or generally “observation-level”. For example, you could have three…
Read More
How can I read binary data into R? | R FAQ
The code needed to read binary data into R is relatively easy. However, reading the data in correctly requires that you are either already familiar with your data or possess…
Read More
How does R handle overlapping object names? | R FAQ
Because R is developed by an open source community, it is not uncommon that multiple packages may use the same name for a function or dataset. If you load packages…
Read More
How can I reshape my data in R? | R FAQ
When there are multiple measurements of the same subject, across time or using different tools, the data is often described as being in "wide" format if there is one observation…
Read More
How do I analyze survey data with stratification after sampling (poststratification)? | R FAQ
As a statistical programming language, R allows users to access precise statistics instead of simply printing a mass of output to the screen. The examples below highlight how to create…
Read More
How do I analyze survey data with a stratified design with certainty PSUs? | R FAQ
As a statistical programming language, R allows users to access precise statistics instead of simply printing a mass of output to the screen. The examples below highlight how to create…
Read More
