Issues with Truncated Data

May 12th, 2016 by

In a previous post we explored bounded variables and the difference between truncated and censored. Can we ignore the fact that a variable is bounded and just run our analysis as if the data wasn’t bounded? (more…)

R Is Not So Hard! A Tutorial, Part 15: Counting Elements in a Data Set

August 13th, 2014 by

Combining the length() and which() commands gives a handy method of counting elements that meet particular criteria.

b <- c(7, 2, 4, 3, -1, -2, 3, 3, 6, 8, 12, 7, 3)

Let’s count the 3s in the vector b. (more…)