Displaying 20 results from an estimated 900 matches similar to: "repeated measures with missing data"
2011 Apr 07
1
Assigning a larger number of levels to a factor that has fewer levels
Hello!
I have larger and a smaller data frame with 1 factor in each - it's
the same factor:
large.frame<-data.frame(myfactor=LETTERS[1:10])
small.frame<-data.frame(myfactor=LETTERS[c(9,7,5,3,1)])
levels(large.frame$myfactor)
levels(small.frame$myfactor)
table(large.frame$myfactor)
table(small.frame$myfactor)
myfactor has 10 levels in large.frame and 5 levels in small.frame. All
5
2012 Mar 28
1
discrepancy between paired t test and glht on lme models
Hi folks,
I am working with repeated measures data and I ran into issues where the
paired t-test results did not match those obtained by employing glht()
contrasts on a lme model. While the lme model itself appears to be fine,
there seems to be some discrepancy with using glht() on the lme model
(unless I am missing something here). I was wondering if someone could
help identify the issue. On
2009 May 06
4
tapply changing order of factor levels?
Hi,
Does tapply change the order when applied on a factor? Below is the code I
tried.
> mylevels<-c("IN0020020155","IN0019800021","IN0020020064")
>
2012 Jan 18
1
drop rare factors
I have a data frame with some factor columns.
I want to drop the rows with rare factor values
(and remove the factor values from the factors).
E.g., frame$MyFactor takes values
A 1,000 times,
B 2,000 times,
C 30 times and
D 4 times.
I want to remove all rows which assume rare values (<1%), i.e., C and D.
i.e.,
frame <- frame[[! (frame$MyFactor %in% c("A","B"))]]
except
2012 Nov 24
1
Adding a new variable to each element of a list
Hello,
I have a list of data with multiple elements, and each element in the list
has multiple variables in it. Here's an example:
### Make the fake data
dv <- c(1,3,4,2,2,3,2,5,6,3,4,4,3,5,6)
subject <- factor(c("s1","s1","s1","s2","s2","s2","s3","s3","s3",
2008 Jul 20
2
problem with read.table
Hi,
Although I set check.names to FALSE in read.table, the duplicate names get modified. What should be done in this case?
the text file to be read by read.table
AM2 AM2 AM2 FAL
2 3 4 5
1 -1 -3 -2
t = read.table ("my_file", check.names = FALSE, header = T)
> t
AM2 AM2.1 AM2.2 FAL
2009 Mar 03
1
repeated measures anova, sphericity, epsilon, etc
I have 3 questions (below).
Background: I am teaching an introductory statistics course in which we are
covering (among other things) repeated measures anova. This time around
teaching it, we are using R for all of our computations. We are starting by
covering the univariate approach to repeated measures anova.
Doing a basic repeated measures anova (univariate approach) using aov()
seems
2010 Jul 07
0
interaction post hoc/ lme repeated measures
Hi Everyone,
I’m trying to figure out how to get R to analyze this experiment properly. I have a series of subjects each with two legs. Within each leg there are two bones that I am interested in. There are also two treatments that I am interested in. That results in four different combinations of treatments. Obviously, since the subjects only have two legs, they can’t receive each
2006 Apr 29
1
splitting and saving a large dataframe
Hi,
I searched for this in the mailing list, but found no results.
I have a large dataframe ( dim(mydata)= 1297059 16, object.size(mydata=
145280576) ) , and I want to perform some calculations which can be done by
a factor's levels, say, mydata$myfactor. So what I want is to split this
dataframe into nlevels(mydata$myfactor) = 80 levels. But I must do this
efficiently, that is, I
2011 Mar 30
2
summing values by week - based on daily dates - but with some dates missing
Dear everybody,
I have the following challenge. I have a data set with 2 subgroups,
dates (days), and corresponding values (see example code below).
Within each subgroup: I need to aggregate (sum) the values by week -
for weeks that start on a Monday (for example, 2008-12-29 was a
Monday).
I find it difficult because I have missing dates in my data - so that
sometimes I don't even have the
2006 Aug 30
1
Xen on AM2 nForce 590 (Asus M2N32-SLI Deluxe)
While I wait for the Xen 3.0 Test CD to download, has anyone has luck
using an Asus M2N32-SLI Deluxe motherboard (NVIDIA nForce 590 SLI MCP
chipset)? The CPU is an AMD Athlon64 X2 3800+ AM2 w/ 2GB DDR2 533.
The motherboard mostly works under Gentoo using kernel 2.6.18 with the
"noapic" kernel boot option in my grub.conf file. The only major issue
with the Gentoo kernel
2007 Apr 24
1
cpuspeed on centos 5
It appears as cpuspeed is not running on my centos 5 box(s).
One is a biostar motherboard Am2 6400+ the other is Asus am2 4800+.
If I do "service cpuspeed stop" it says OK,
If I do a "service cpuspeed start" is says OK.
However at no time is cpuspeed running.
/proc/cpuinfo only shows the cpu running at 1000 Mhz.
If I manually run "cpuspeed -C & " I now have
2007 Feb 12
2
Motherboard + 3ware 9650SE suggestions
Hello everyone!
Working on putting a storage server together and wanted to get some input as
to what motherboards have been working for people with the 3ware 9650SE-12ML
raid board. This is large, bulk storage, 2-tier stuff. This will not be
used for realtime editing of video or something, but a gig nic is almost a
given I hope.
I have an AMD chip available (AM2 slot) but I can get a new chip
2007 Dec 05
5
Which Linux OS on Athlon amd64, to comfortably run R?
Dear R-users.
I eventually bought myself a new computer with the following
characteristics:
Processor AMD ATHLON 64 DUAL CORE 4000+ (socket AM2)
Mother board ASR SK-AM2 2
Ram Corsair Value 1 GB DDR2 800 Mhz
Hard Disk WESTERN DIGITAL 160 GB SATA2 8MB
I'm a newcomer to the Linux world.
I started using it (Ubuntu 7.10 at work and FC4 on laptop) on a regular
basis on May.
I must say I'm
2007 Dec 05
5
Which Linux OS on Athlon amd64, to comfortably run R?
Dear R-users.
I eventually bought myself a new computer with the following
characteristics:
Processor AMD ATHLON 64 DUAL CORE 4000+ (socket AM2)
Mother board ASR SK-AM2 2
Ram Corsair Value 1 GB DDR2 800 Mhz
Hard Disk WESTERN DIGITAL 160 GB SATA2 8MB
I'm a newcomer to the Linux world.
I started using it (Ubuntu 7.10 at work and FC4 on laptop) on a regular
basis on May.
I must say I'm
2007 Dec 03
1
again on ubuntu 7.10 and amd64
Hi there,
this is my first post to the list.
I'm a newcomer to the linux world.
I started using it on a regular basis on May and I must say I'm quite
comfortable with it, even if I have to re-learn a lot of things.
But this is not a problem, I will improve my knowledge with time.
My main problem now is that I bought myself a new computer (described at
the end of this e-mail) and I was
2006 Jun 24
4
AMD64 AM2 supports Windows XP?
Hi,
i consider to buy a new PC for my Desktop. Now i need Windows for do
some work with Photoshop. I would like to buy a AMD X2 4200 with Socket
AM2 and the new Pacifica.
Supports XEN this CPU together with windows nativly? How fast Windows
will works with SDL? Could i use 32bit color deep with SDL? I use fast
SATA-Raid with a lot of RAM 4GB ontop of Gentoo Linux
Hope someone could answer
2006 Nov 01
8
Warning regarding AMD Athalon 64 4200+(HVM/AMD-V)
Hello to all,
For those evaluating the AMD X2 4200+ series for the purposes of running
HVM guests, take a note below before purchasing if the server you are
purchasing happens to be made by HP.
There is an oddball version (apparently OEM sold to HP) which does *not*
support AMD-V technology. I''ve seen many of these on e-bay as well as
for sale / lease by popular co-location facilities.
2007 Jan 16
2
at boot disabling IRQ #193 then nothing
All,
I have a new box. Gigabyte motherboard AM2 sempron 3200+.
CentOS installed fine, I rebooted after the install.
It booted fine again.
I ran yum -y update and now after that on boot it says
Initializing hardware Storage network audio done
Disabling IRQ #193 and then nothing.
just sets there....
Any ideas on that???
Jerry
2003 Jun 04
2
convert factor to numeric
Hi R-experts!
Every once in a while I need to convert a factor to a vector of numeric
values. as.numeric(myfactor) of course returns a nice numeric vector of
the indexes of the levels which is usually not what I had in mind:
> v <- c(25, 3.78, 16.5, 37, 109)
> f <- factor(v)
> f
[1] 25 3.78 16.5 37 109
Levels: 3.78 16.5 25 37 109
> as.numeric(f)
[1] 3 1 2 4 5
>
What I