search for: pat2

Displaying 10 results from an estimated 10 matches for "pat2".

Did you mean: pat
2006 Nov 29
1
Extract some character from a character vector of length 1
the content of th character vector (of length 1) is as follows: a <- "something2 ....pat1 name1 pat2 something2....pat1 name2 pat2....pat1 name3 pat2 " I would like to extract the character bewteen pat1 and pat2. That's to say, I would like to get a vecter of c("name1", "name2","name3"). What I did is use strsplit() twise. But I wonder if there any functio...
2003 May 14
2
number of patients in a hospital on a given date
...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"), dis.date=c("18.03.2002", "17.03.2002")) I can easily do a date-time conversion from the character objects: > x[,2:3] <- apply(x[,2:3], MARGIN=2, FUN=strptime, format="%d.%m.%Y") > x...
2010 Jun 26
2
Recoding dates to session id in a longitudinal dataset
Hi, I'm fairly new to R but I have a large dataset (300000 obs) containing patient material. Some patients came 2-9 times during the three year observation period. The patients are identified by a unique idnr, the sessions can be distinguished using the session date. How can I recode the date of the session to a session id (1-9). This would be necessary to obtain information and do some
2009 Oct 26
1
regular expressions
Dear list, I have the following text to parse (originating from readLines as some lines have unequal size), st = c("START text1 1 text2 2.3", "whatever intermediate text", "START text1 23.4 text2 3.1415") from which I'd like to extract the lines starting with "START", and group the subsequent fields in a data.frame in this format: text1 text2
2009 Apr 21
3
Deleting rows or cols that do not meet cut off
How can I delete both rows and columns that do not meet a particular cut off value. Example: > d <- rbind(c(0, 1, 6, 4), + c(2, 5, 7, 5), + c(3, 6, 1, 6), + c(4, 4, 4, 4)) > f <- as.matrix(d) > f [,1] [,2] [,3] [,4] [1,] 0 1 6 4 [2,] 2 5 7 5 [3,] 3 6 1 6 [4,] 4 4 4 4 I would like to delete all
2010 Oct 21
2
nested anova
...ropes (former SAS user). Here?s what I need help with? I have a nested sample design and ran a nested anova, but I don?t know how to interpret the results habitat (four different types) is nested in site (three types), and site is nested in gear (two types) My code: pat2<-aov(catchrate~habitat/site/gear, data=pat) This created the following outcome: Df Sum Sq Mean Sq F value Pr(>F) habitat 3 2.932 0.9774...
2007 Jan 25
1
X-UID gaps cause Dovecot/IMAP to hang
...; Thu, 14 Dec 2006 16:15:07 -0500 X-TACSUNS: Virus Scanned Received: from halftime.cisco.com (localhost [127.0.0.1]) by av-tac-sj.cisco.com (8.11.7p2+Sun/8.11.7) with ESMTP id kBELEc719166 for <bhowell at iglou.com>; Thu, 14 Dec 2006 13:14:38 -0800 (PST) Received: from MXDKLS00971 (gtrn1-mx-pat2.cisco.com [172.30.149.18]) by halftime.cisco.com (8.13.7+Sun/8.13.7) with SMTP id kBELEafF017192; Thu, 14 Dec 2006 13:14:36 -0800 (PST) Message-ID: <0b9001c71fc4$dc2064b0$b6d86ca1 at americas.unity> From: "Karina Salas" <ksalas at cisco.com> To: "Benjamin Howell" &...
2013 Dec 17
3
In-string variable/symbol substitution: What formats/syntax is out there?
Hi, I'm try to collect a list of methods/packages available in R for doing in-string variable/symbol substitution, e.g. someFcn("pi=${pi}"), anotherFcn("pi=@pi@") and so on becomes "pi=3.141593". I am aware of the following: ** gsubfn() in the 'gsubfn' package, e.g. > gsubfn( , , "pi = $pi, 2pi = `2*pi`") [1] "pi = 3.14159265358979,
2010 Mar 29
1
how to prove that the factor makes no difference
...lease suggest some methods for my question below. We measured the amount of protein A in patient blood in pre-treatment and post-treatment condition from 32 patients. -------------------------------------------- Pre-treatment Post-treatment Pat1 25 28 Pat2 19 15 Pat3 94 89 ... Pat32 49 23 ------------------------------------------------ How can we prove that the treatment did not make any difference in the amount of protein A. In another word, Pre- and post-...
2011 Oct 04
1
Question about linear mixed effects model (nlme)
Hi, I applied a linear mixed effect model in my data using the nlme package. lme2<-lme(distance~temperature*condition, random=~+1|trial, data) and then anova. I want to ask if it is posible to get the least squares means for the interaction effect and the corresponding 95%ci. And then plot this values. Thank you Panagiotis -- View this message in context: