[R] odd listing in R object

2010-07-29 Thread Lawrence Hanser
Dear R Colleagues, When I run ls() on an R object given to me by a colleague, one of the objects is shown literally as: "females[\"dp\"]" I can neither look into it nor can I get rid of it (rm("major[\"dp\"]"). Ideas or solutions? Thanks, Larry [[alternative HTML version deleted]] _

[R] specifying repeated measures model in lmer

2009-03-23 Thread Lawrence Hanser
Dear Colleagues, I have what Roger Kirk (Experimental Design: Procedures for the Behavioral Sciences, 1968) refers to as a randomized block factorial design. The anova table would look like this: df A 3 Subj/A 103 (error term for A) B

[R] repeated measures specification in lmer

2009-03-23 Thread Lawrence Hanser
Dear Colleagues, I have what Roger Kirk (Experimental Design: Procedures for the Behavioral Sciences, 1968) refers to as a randomized block factorial design. The anova table would look like this: df A 3 Subj/A 103 (error term for A) B

Re: [R] tcltk, tcltk2, Rcmdr, Mac OS X

2009-02-11 Thread Lawrence Hanser
Monte, I vaguely remember having exactly the same error message at some point in my journey. Why don't you try simply loading tcltk first to see if you can then load Rcmdr: library(tcltk) On Wed, Feb 11, 2009 at 3:03 PM, Peter Dalgaard wrote: > Monte Milanuk wrote: > >> Larry, >> >> Since it

Re: [R] tcltk, tcltk2, Rcmdr, Mac OS X

2009-02-11 Thread Lawrence Hanser
I'm afraid that I don't know where that lives on a Mac, but I suppose that > getwd() would show you). > > John > > > > -----Original Message- > > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On > > Behalf Of Lawrence Hanse

Re: [R] tcltk, tcltk2, Rcmdr, Mac OS X

2009-02-10 Thread Lawrence Hanser
hn > > -- > John Fox, Professor > Department of Sociology > McMaster University > Hamilton, Ontario, Canada > web: socserv.mcmaster.ca/jfox > > > > -Original Message- > > From: r-help-boun...@r-project.org [mailto:r-help-boun

[R] tcltk, tcltk2, Rcmdr, Mac OS X

2009-02-10 Thread Lawrence Hanser
Dear Colleagues, When I try to install Rcmdr the following happens: -- > library(Rcmdr) Error in structure(.External("dotTclObjv", objv, PACKAGE = "tcltk"), class = "tclObj") : [tcl] invalid command name "font". Error : .onAttach failed in 'attachNamespace' Error

[R] Tukey on interaction means after lmer

2008-12-23 Thread Lawrence Hanser
Dear Colleagues, I fit this model: mod1 <- lmer(x~category*comp+(1|id),data=impchiefsrm) where category has 4 levels and comp has 8 levels. These work: glht(mod1, linfct=mcp(category="Tukey") glht(mod1, linfct=mcp(comp="Tukey") What I'd like is (conceptually): glht(mod1, linfct=mcp(category:c

[R] post hoc comparisons on interaction means following lme

2008-12-22 Thread Lawrence Hanser
Dear Colleagues, I have scoured the help files and been unable to find an answer to my question. Please forgive me if I have missed something obvious. I have run the following two models, where "category" has 3 levels and "comp" has 8 levels: mod1 <- lmer(x~category+comp+(1|id),data=impchiefsrm)

[R] post hoc comparisons of interaction means after lme

2008-12-21 Thread Lawrence Hanser
Dear Colleagues, I have run the following two models, where category has 3 levels and comp has 8 levels: mod1 <- lmer(x~category+comp+(1|id),data=impchiefsrm) mod2 <- lmer(x~category+comp+category*comp+(1|id),data=impchiefsrm) followed by: anova(mod1,mod2) The anova shows that the interaction t

Re: [R] lme4 question

2008-10-22 Thread Lawrence Hanser
repchiefs08rm) mod2 <- lmer(y ~ category + subcomp + category*subcomp + (1 | id), data=prepchiefs08rm) Thanks. On Wed, Oct 22, 2008 at 2:41 PM, Douglas Bates <[EMAIL PROTECTED]> wrote: > On Wed, Oct 22, 2008 at 4:18 PM, Lawrence Hanser <[EMAIL PROTECTED]> wrote: >> Dear R

[R] lme4 question

2008-10-22 Thread Lawrence Hanser
Dear R Colleagues, I run the following two models: mod1 <- lmer(y ~ category + subcomp + (1 | id)) mod2 <- lmer(y ~ category + subcomp + category*subcomp + (1 | id) where: category has 4 possible values subcomp has 24 possible values id has approx 120 values (id is nested within category, and in

[R] lmer for two models followed by anova to compare the two models

2008-10-16 Thread Lawrence Hanser
Dear Colleagues, I run this model: mod1 <- lmer(x~category+subcomp+category*subcomp+(1|id),data=impchiefsrm) obtain this summary result: Linear mixed-effects model fit by REML Formula: x ~ category + subcomp + category * subcomp + (1 | id) Data: impchiefsrm AIC BIC logLik MLdeviance REMLdev

Re: [R] Plot means with error bars - A novice needs help

2008-10-09 Thread Lawrence Hanser
Dear Colleagues, I think the allure of bargraph.CI is that it makes it easy to plot standard errors--though you still have to fiddle with the options to get the size of confidence interval you want. And there is the (strong) dislike of dynamite plots by some (the ink to info argument). Box and wh

Re: [R] creating table of averages

2008-09-09 Thread Lawrence Hanser
dataframe > with columns corresponding to its entries. > > Duncan Murdoch > > > >> aggregate seems like a more reasonable choice, but the function for >> aggregate must return scalars, not rows...tapply doesn't take data.frame >> inputs. Maybe someone else has a

[R] creating table of averages

2008-09-09 Thread Lawrence Hanser
Dear Colleagues, I have a dataframe with variables: [1] "ID" "category" "a11""a12" "a13""a21" [7] "a22""a23""a31""a32" "b11""b12" [13] "b13""b21""b31""b32" "b33"

[R] histogram tick labels

2008-06-08 Thread Lawrence Hanser
Dear Friends, I am doing a rather simple histogram on a vector of data, MR. I set breaks for the intervals: hist(MR,breaks=c(0, 2.9, 5.9, 8.9, 11.9,14.9, 17.9, 20.9)) My question is, how do I change the labels on the tick marks? I have looked at ?hist and can't find a clue... Thanks in advanc

Re: [R] Documentation General Comments

2008-04-24 Thread Lawrence Hanser
Dear Colleagues, It seems to me that the issue is not whether the information we seek is in the documentation. I, for one, am amazed at the quality of the documentation of R and of contributed materials. For me the issue is one of finding the information in an efficient way out of the mountains

[R] interactive rotating graphics

2008-04-01 Thread Lawrence Hanser
Dear Colleagues, Seems I had in the past run across the capability to create a three-dimensional scatterplot where I could use the mouse to "grab" the plot and rotate the axes with the mouse. I have used RSiteSearch and found a few things (e.g., TeachingDemos, iplot) but cannot find the package/f

Re: [R] SAS data

2008-03-14 Thread Lawrence Hanser
Looks to me like you are trying to read sas.exe as your data rather than MyData.sa7bdat Larry On Fri, Mar 14, 2008 at 8:21 AM, Samuel Okoye <[EMAIL PROTECTED]> wrote: > Hello, > > I am trying to read the SAS file MyData.sa7bdat in R! This file is saved > under D:\data! I therefore wrote >