search for: jlwoodard

Displaying 8 results from an estimated 8 matches for "jlwoodard".

2009 Aug 21
8
Selecting groups with R
I have a data set similar to the following: Color Score RED 10 RED 13 RED 12 WHITE 22 WHITE 27 WHITE 25 BLUE 18 BLUE 17 BLUE 16 and I am trying to to select just the values of Color that are equal to RED or WHITE, excluding the BLUE. I've tried the following: myComp1<-subset(dataset, Color =="RED" | Color == "WHITE")
2010 Feb 02
2
Error with write.table
I was trying to save a data frame to an excel file using the following command: write.table(myData, file="myData.csv",sep=",", row.names=F) The command works for some data frames, but for other data frames, I get the following error: Error in if (inherits(X[[j]], "data.frame") && ncol(xj) > 1L) X[[j]] <- as.matrix(X[[j]]) : missing value where
2010 Nov 01
3
Mean and individual growth curve trajectories
I'm trying to understand how to plot individual growth curve trajectories, with the overall mean trajectory superimposed (preferably in a slightly thicker line, maybe in black) over the individual trajectories. Using the sleepstudy data in lme4, here is the code I have so far: library(lme4) library(lattice) xyplot(Reaction ~ Days, data = sleepstudy, group = Subject, type = 'l')
2012 Jul 10
0
R-help Digest, Vol 113, Issue 13
...gt; 62. Re: estimation of NA by predict command (eliza botto) > 63. Times Series Data using GLS (MRB305) > 64. Need HELP: how find and use a csv file? (Faradj Koliev) > 65. Re: estimation of NA by predict command (arun) > 66. Changing x-axis values displayed on histogram (jlwoodard) > 67. Re: Package 'MASS' (polr): Error in svd(X) : infinite or > missing values in 'x' (Rune Haubo) > 68. Re: HELP me please with import of csv to R (Sarah Goslee) > 69. Understanding cenros Error (Rich Shepard) > 70. Re: Need HELP: how find and us...
2009 May 02
1
Trouble installing packages on Macintosh OS-X 10.5.6
I just upgraded my version of R from 2.8.1 to 2.9.0. After doing so, I now have problems using the package installer to reinstall all my packages. Some download and install without problems, but for others, I get the spinning pinwheel and after even 10 minutes, nothing is downloaded. R stops responding. At first, I had not deleted the old version of 2.8.1 before installing 2.9.0. However, I
2012 Jul 10
2
Changing x-axis values displayed on histogram
Is it possible to change the x-axis values in a histogram to reflect binned values? Here are my data: histexample<-c(6,7,7,8,8,8,9,9,9,9,9,10,10,10,10,10,10,10,11,11,11,11,11,11,12,12,12,12,13,13,13,14,14,14,15,16) hist(histexample) Now, I'll bin pairs of adjacent values together (e.g., 5-6, 7-8, 9-10, 11-12, 13-14, 15-16) using the following bins<-c(4.5,6.5,8.5,10.5,12.5,14.5,16.5)
2009 Sep 18
1
Within-group correlation confidence intervals
I'm trying to obtain within-group correlations on a subset of variables. I first selected my variables using the following command: mydata$x<-mydata[c("iq","education","achievement")] I'd like to look at correlations among those variables separately for men and women. My gender variable in mydata is coded 1 (women) and 0 (men). I have successfully used
2010 Jul 17
1
Help with Reshaping from Wide to Long
I am trying to reshape data that are in the wide format into the long format. The design is a repeated-measures design, which combined 3 levels of shape (circle, square, triangle) with 3 levels of color (Blue, Red, Green), for a total of 9 variables. The wide data look like this (sorry I couldn't get the columns to line up quite right: Subject CircleBlue CircleRed CircleGreen SquareBlue