Monthly Archives: October 2010

Displaying K-means Results.

I am a fan of K-means approaches to clustering data particularly when you have a theoretical reason to expect a certain number of clusters and you have a large data set. However, I think ploting the cluster means can be … Continue reading

Posted in Uncategorized | 1 Comment

Creating Composite Scores in R

There maybe times when you need scores corrected for measurement error and latent factor loading. In these instances it can be beneficial to use  composite scores derived from one factor congeneric models. While easy they are time consuming to calculate by hand … Continue reading

Posted in Uncategorized | Leave a comment

Corrected Cohen’s D

Calculating Cohen’s D is a pain particularly when you have data which is not independent (e.g. is longitudinal). So I have written a function which take away the hassle. It is in early form but produces a normal Cohen’s D and … Continue reading

Posted in Uncategorized | Leave a comment

Data generation in R Part 2 – Covariance matirx

Ok now we have done a simple regression we will move to a more general strategy. In this case we will generate a simple covariance matrix with a mean structure. In this case I am only using this approach to … Continue reading

Posted in Uncategorized | 1 Comment

Data Generation in R

Finding information on how to generate data in R that looks like the data you would use in a research paper is hard. As such I will post a few examples on how to do so here. Many thanks to … Continue reading

Posted in Uncategorized | Leave a comment