2024 search results for "Twitter"

Merging data: A tutorial

May 7, 2006
By
Merging data: A tutorial

The situation: you have two datasets with a common variable, and you want to incorporate both into one large dataset containing all of the variables. This is called merging data, and it’s easy to do in any standard statistical package. In these examples, I assume that there is only one variable between any datasets to

Read more »

R Language Module for TextWrangler (and a lot of other editors)

February 27, 2006
By
R Language Module for TextWrangler (and a lot of other editors)

Via this page, I just learned that there is a TextWrangler Language Module for R. The file itself is available here. To install, copy the .plist file to the following directory Username/Library/Application Support/TextWrangler/Language Modules I also recommend going into TextWrangler’s preferences and changing the color for comments. The default is a gray color that doesn’t

Read more »

Basic factor analysis in R

February 17, 2006
By
Basic factor analysis in R

The call to perform factor analysis on a set of variables in R is: fact1<- factanal(x,factors,scores=c(“regression”),rotation=”varimax”) where “x” is a dataframe containing the appropriate variables, and “factors” is the number of factors to be extracted. socres=”…” and rotation=”…” are optional, and varimax is the default rotation. The factanal function doesn’t seem to handle missing observations

Read more »

Getting tables from R output

February 11, 2006
By
Getting tables from R output

Turning plain-text output into well-formatted tables can be a repetitive task, especially when many tests or models are being incorporated into a paper. For R users, there are several methods that can make this task easier (though not much less repetitive), regardless of what typesetting system you use. LaTeX tables The xtable package produces LaTeX-formatted

Read more »