One of my datasets requires mixed models linear regression analyses, so I was reading up on exactly how the analyses are done and what they mean. Found this useful-looking tutorial that walks through several examples of the mixed effects, as well as how to do it in R.
Here’s a graph of individual subjects, grouped by gender, and the distribution of their voice pitch.
Pitch of male and female voices
To take into account the individual variation in each subject’s voice pitch, run pitch ~ politeness + sex + (1 | subject) + error, where (1 | subject) indicates the assumption that the intercept is different for each subject.
PS. I love box plots!
OMG. My mind is literally exploding right now. This is starting to become my default state. (I like it.)
I am searching how to change the font size in the HTML output file from an R Markdown, knit to html, when I came across this page by Yihui (a name that is becoming extremely familiar as I spend more and more time on Stackflow).
How to Make HTML5 Slides in R Markdown
He basically walks through how to create HTML5 slides in R Markdown. They are BEAUTIFUL. I am so floored.
Here is a link to the slides. Just use your left and right arrow keys to navigate through them.
HTML5 slides through R Markdown
I would love love love to be able to learn how to do this, but I think for my kind of presentations, it wouldn’t make sense to make them in HTML5. It’s a shame. It would be so mind-blowingly cool!!
Now to return to my current problem… how to change this pesky font size…
I made a lot of progress on one of my datasets today. It’s a 2 x 2 x 2 study, so it requires a fair amount of thinking in what the best way is to plot the data.
Lately I have been writing up my code in an R script, then when I’m happy with it, I plug it into R Markdown so I can see all the graphs at once.
When I plotted my 3-way interaction graphs, the group labels on the x-axis squished together because the default plot size was too small. So I looked up how to change the plot size in R Markdown and found this useful stackflow response.
Plot size in R Markdown
So I tried it and voila! My plots look beautiful in R Markdown.
Plots in R Markdown
I want to use k-means clustering for one of my studies, so in this post, I gather useful-looking links to learn how to do it!
EDIT: I made pretty good progress on my k-means clustering! Here’s a little preview to give you an idea of what I found:
Useful Information on K-Means Clustering
R documentation for kmeans
When k-means may not work but how to work around it
K-means clustering is not a free lunch
Simple, easy example to follow for how to use k-means clustering
How to determine number of clusters
Simple reference for how to k-means cluster
Walks through several examples
Cluster Analysis in R
To the point overview of clustering: Pros and cons
Overview of Clustering
Chapter on kmeans clustering – Useful discussion on determining variables
Cluster Analysis Chapter
Plotting pairwise scatterplots of clusters
Pairwise scatter plots of clusters