r software

  1. V

    multiple imputation and nested/hierarchical regression

    Can anyone enlighten me as to how I can conduct a nested/sequential/hierarchical regression using multiply imputed datasets in R or Stata? In Stata, I tried using nestreg but received an error message stating that was not possible. Many thanks for the help.
  2. J

    Latent Class Analysis / Regression with R

    Hi Everyone, I am doing an LCA with R. With help from fellows from the site and the manual I have been able to obtain the basic LCA output including the item response probabilities per class, estimated and predicted class population and membership; and the model fit information. However, I...
  3. J

    Repeated Measures Non-Parametric nparLD Pacakge

    Hi, I'm trying to analyze repeated measurements of body temperature data collected from 7 randomly chosen subjects (e.g. turtles). I am using R, along with the nparLD package. I am using Nonparametric Tests for my LD-F2 Design (http://www.inside-r.org/packages/cran/nparLD/docs/ld.f2) because...
  4. O

    Help! How do you make a choropleth in R!

    So I have a data set with the number of violent crimes known to police in various counties in Ohio since 1990 (the file is attached). Making the dataset (from now on, I'll refer to it as OH) readable in R was enough of a task for me and now figuring out how to make a choropleth is making me...
  5. S

    Column of values of unique subgroup counts...

    Hi, So I have a data frame, and I would like to add an additional column which shows the total sum of rows within the subgroups... heres a simple example grp=c("A","A","A","A","A","B","B","B","B","C","C") hour=c(1,1,1,2,2,1,1,1,2,1,1) test=data.frame(grp,hour,score) grp hour 1 A 1...
  6. M

    how to reshape the matrix with or without do loop?

    Dear All, I need to reshape below matrix with or without do loop: Below is my question: fd=read.table(header=TRUE, text=" X1 X2 X3 X4 X5 X6 18.25766 123.9019 151.4487 34.1252 196.6713 231.2289 16.89285 121.7344 146.5685 60.4828 299.1966 346.6185...
  7. R

    Implementing non-parametric version of 2x2 Repeated Measures ANOVA in R

    Hi, I have a 2x2 repeated measures design (i.e. 1 group of participants provide data for all 4 conditions in a fully factorial counterbalanced design [so there is no time factor to worry about]). The data is non-normal so I need to use a non-parametric equivalent of the 2x2 factorial ANOVA...
  8. V

    General Linear Models

    Hi, I have an experiment where participants look at a picture and then have to choose a voice out of three for that picture. I want to find out how many participants get the right voice and whether participants' selection of the correct voice is significantly above chance. From what I've...