Displaying 16 results from an estimated 16 matches similar to: "manipulating longitudinal data in r"
2006 Mar 25
7
Regexp subexpression
I can't get the PERL subexpression translated to R. Following, for example,
B. Ripley's
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/58984.html
I am using sub, but it looks like an ugly substitute. Assume I want to
extract the first alpha part and the first numeric part, but only if they
are in sequence.
Do I really have to use the sub twice, first extracting the first variable,
then
2003 May 14
2
number of patients in a hospital on a given date
Dear R-users!
I am using R 1.7.0, under Windows XP.
Having some hospital discharge data (admission date and discharge date for
each patient), I want to get the number of patients in the hospital on a
given date.
My data look like (simple example):
> x <- data.frame(patid=c("pat1", "pat2"), adm.date = c("15.03.2002",
"16.03.2002"),
2005 May 18
1
from list to dataframe
I was wondering if someone can help me figure out the following:
I have two patient datasets, ds1 and ds2. ds1 has fields "patid", "date",
and "lab1". ds2 has "patid", "date", and "lab2". I want to find all the
patids that have at least 2 dated records for each lab. I started by
splitting each dataset by patid, to create ds1.list
2005 May 24
3
obtaining first and last record for rows with same identifier
I have a dataframe that contains fields such as patid, labdate, labvalue.
The same patid may show up in multiple rows because of lab measurements on
multiple days. Is there a simple way to obtain just the first and last
record for each patient, or do I need to write some code that performs that.
Thanks,
Steven
2004 Sep 22
1
impenetrable warning
Dear R-help,
Can anyone explain the meaning of the warning,
Singular precision matrix in level -1, block 1
? Or how to track down where it comes from?
More precisely, using the nlme package, I'm issued with the warning
itt2 <- lme(lrna~rx.nrti+lbrna, random=~1|patid,
cor=corExp(form=~days|patid,nugget=T), weights=varPower(
form=~lbrna),data=rna3)
Warning messages:
1: Singular
2007 Mar 27
1
basic handling of data.frame
Hello,
I'm new to R but wan't to use it to compute the statistics of my medical study.
The study includes several parameters for a number of patients. Each
parameter was assessed by a number of readers, once with a special
condition, once without.
Now I have a data.frame with colums like:
PatientID, ReaderID, SpecialCond(yes/no), Parameter1, Parameter2.....
the rows are not sorted, and
2008 Oct 31
1
subset with variable number of subset arguments
I've got a big data.frame from which I need to extract data based on a variable number of Id's (InfCode).
Until now I've been using the following dull solution as I never needed to search for more than 5 codes.
Now my needs have increased faster than my R skills did and I need to call my function with about 25 values for x.
There has to be a *apply or even simpler solution which
2011 Nov 22
4
Removing rows in dataframe w'o duplicated values
Hi,
Is there an easy way to remove dataframe rows without duplicated values of
a specified column ('id')? e.g.,
dat <- data.frame(id = c(1,1,1,2,3,3), value = c(5,6,7,4,5,4), value2 =
c(1,4,3,3,4,3))
dat
id value value2
1 1 5 1
2 1 6 4
3 1 7 3
4 2 4 3
5 3 5 4
6 3 4 3
This is sample data and the real data has hundreds of
2001 Jun 29
3
Debian packages for R-1.3.0
I have installed the binary packages for Debian GNU/Linux release 2.3
(woody) in the U.S. mirror of the CRAN archive. They should propagate
to the main CRAN archive within a day and to the other mirrors within
two days.
These packages have been compiled with gcc-3.0 and g77-3.0. I believe
the testing distribution currently provides only a snapshot of
gcc-3.0, not the latest released version, so
2001 Jun 29
3
Debian packages for R-1.3.0
I have installed the binary packages for Debian GNU/Linux release 2.3
(woody) in the U.S. mirror of the CRAN archive. They should propagate
to the main CRAN archive within a day and to the other mirrors within
two days.
These packages have been compiled with gcc-3.0 and g77-3.0. I believe
the testing distribution currently provides only a snapshot of
gcc-3.0, not the latest released version, so
2004 Feb 02
1
[PATCH] --one-file-system and automounter
We use rsync in a Linux installation script. First, the root filesystem
of another machine on the network is cloned with "rsync -axzH", and then
a few files are updated to give the clone its own identity. This works
fine, but last week, the Postfix mailer daemon on a new machine refused
to start because some lock files had a link count of 2. It turned out
that rsync had created two
2009 Feb 16
3
Applying functions to partitions
Hi list! I have a large matrix which I'd like to partition into blocks
and for each block I'd like to compute the mean. Following a example
where each letter marks a block of the partition:
a a a d g g
a a a d g g
a a a d g g
b b b e h h
b b b e h h
c c c f i i
I'm only interested in the resulting matrix of means. How can this be
done efficiently?
2012 Feb 15
1
Multiple linear Regression: Standardized Coefficients
Ein eingebundener Text mit undefiniertem Zeichensatz wurde abgetrennt.
Name: nicht verf?gbar
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20120215/9099c528/attachment.pl>
2007 May 23
0
Samba priting problem, might be windows printer defintion
Hi Sunmanagers
I still have a problem with my samba printing mechanism.
When I log on some windows machines it will not print. I have found out
that when I print from some machines while the print queu is stopped
then the jobs are saved there as root. When I print from other machines
they are saved as my name.
I can print from dos by using echo something > \\server\printer.
I can print with
2000 Feb 21
0
Kernel Error due to long filenames??
We're running a PIII550, 128 MB, 3com 3c905b-TX with SuSE Linux 6.3; Kernel
2.2.14 (see file kernelconfig) and Samba 2.0.6 as PDC & Fileserver in a
hospital. Now we got the following error:
Feb 18 14:39:54 file kernel: Unable to handle kernel paging request at virtual address 00110004
Feb 18 14:39:54 file kernel: current->tss.cr3 = 040ab000, %cr3 = 040ab000
Feb 18 14:39:54 file kernel:
2009 Jul 23
1
[PATCH server] changes required for fedora rawhide inclusion.
Signed-off-by: Scott Seago <sseago at redhat.com>
---
AUTHORS | 17 ++++++
README | 10 +++
conf/ovirt-agent | 12 ++++
conf/ovirt-db-omatic | 12 ++++
conf/ovirt-host-browser | 12 ++++