search for: patient

Displaying 20 results from an estimated 1672 matches for "patient".

2007 Jan 07
2
different points and lines on the same plot
Dear all, I have following data called "paitent" day patient1 patient4 patient5 patient6 0 -0.27842688 -0.04080808 -0.41948398 -0.04508318 56 -0.22275425 -0.01767067 -0.30977249 -0.03168185 112 -0.08217659 -0.26209243 -0.29141451 -0.09876170 252 0.08044537 -0.26701769 0.05727087 -0.09663701 where each patient have response values at fo...
2009 Mar 04
2
Selecting one row or multiple rows per ID
Hi, Could someone help with coding this in R? I need to select one row per patient i in clinic j. The data is organized similar to that shown below. Two columns - patient i in column j identify each unique patient. There are two columns on outcome. Some patients have multiple rows with each row representing one visit, coded for in the column, visit. Some patients have just one r...
2006 Jul 03
4
Display find(:include => [:children]) results in a view
I am trying to determine how to display a list returned from a Rails find(:include => [:children]). I am using the following (which works in the console): @patients = Account.find(session[:account_id]).patients.find(:all, :include => [:patient_details]) How can I address the patient_details to display them in the view? The console even shows a @patient_details instance variable being created... Any ideas? =================================== Model...
2009 Nov 05
1
help with ols and contrast functions in Design library
...trying to use the ols function in the Design library (version 2.1.1) of R to estimate parameters of a linear model, and then use the contrast function in the same library to test various contrasts. As a simple example, suppose I have three factors: feature (3 levels), group (2 levels), and patient (3 levels). Patient is coded as a non-unique identifier and is therefore nested within group. response <- rnorm(length(example$LOG_ABUNDANCE), mean = 12) feature <- rep(c(1,2,3), 6) group <- c(rep(c(1,2),each=9)) patient <- rep(rep(c(1,2,3), each=3),2) myData <- data.frame(patie...
2009 Feb 09
1
XML package- accessing nodes based on attributes
...quot;FileTypeId" eValue="10"/> <Characteristic Type="File" eName="FilePath" eValue="D:\CN_data\Agilent\TCGA-06-0875-01A-01D-0387-02_US23502331_251469343372_S01_CGH-v4_10_Apr08.txt"/> <Characteristic Type ="Patient" eName="PatientReference" eValue="TCGA-06-0875-01A"/> <Characteristic Type ="Patient" eName="SampleType" eValue="TUMOR"/> <Characteristic Type ="Patient" eName="SampleMarker" eValu...
2006 Jun 14
3
appending
All, In the function below I have 24 individuals and 6 calculations per individual. The 6 calculations are collected each time in a 1:24 loop when calculating "delta". I'd like to collect all 144 = 24*6 calculations in one vector ("delta.patient.comb"). The function works as is via indexing, but is there an easier way to collect the measurements via appendinng the 6 measurements each time to the current set? I couldn't find anything in Intro to R on appending. cheers, Dave ps - please respond directly to afshar at miami.edu c...
2011 Nov 14
3
max & min values within dataframe
dear R-team I need to find the min, max values for each patient from dataset and keep the output of it as a dataframe with the following columns - Patient nr - Region (remains same per patient) - Min score - Max score Patient Region Score Time 1 1 X 19 28 2 1 X 20 126 3 1 X 22 100 4 1 X 2...
2012 Jun 05
4
need descriptive help
Hi all, I'm new to using R, and apologize for simplicity of this question. I'm using a data set with over 60,000 observations, Two variables are patient ID, and cost incurred by the patient. I'd like to generate frequency/table by patient and cost IF the total cost is over 2000. Right now I'm using: by(x$cost, x$patient, sum) but this generates a huge list for each patient. What is the best way to either (1) export the output into a cs...
2012 Jul 18
3
Subsetting problem data
Hello, I need to subset my data to only look at the parts that have "holes" in it. I already have a formula to get rid of inconsistencies, but now I need to look only at the problem data to reconfigure it. In my data set where there are multiple "cycles" per "patient," and I want to highlight the patients who have a variable was not measured every cycle. Here's a similar example of the data: Patient, Cycle, Variable1, Variable 2 A, 1, 4, 5 A, 2, 3, 3 A, 3, 4, NA B, 1, 6, 6 B, 2, NA, 6 C, 1, 6, 5 C, 3, 2, 2 So in this case, I would want Patient A and...
2007 Feb 14
1
nested model: lme, aov and LSMeans
I'm working with a nested model (mixed). I have four factors: Patients, Tissue, sex, and tissue_stage. Totally I have 10 patients, for each patient, there are 2 tissues (Cancer vs. Normal). I think Tissue and sex are fixed. Patient is nested in sex,Tissue is nested in patient, and tissue_stage is nested in Tissue. I tried aov and lme as the following, > aov(...
2006 Jul 31
0
Three questions about a model for possibly periodic data with varying amplitude
Hi dear R community, I have up to 12 measures of a protein for each of 6 patients, taken every two or three days. The pattern of the protein looks periodic, but the height of the peaks is highly variable. It's something like this: patient <- data.frame( day = c(1, 3, 5, 8, 10, 12, 15, 17, 19, 22, 24, 26), protein = c(5, 3, 10, 7, 2, 8, 25, 12, 7, 20, 10, 5) ) plot...
2007 Sep 13
2
beginner's questions ... sorry
I have 316 files. Each file represents a patient's breathing track (respiratory signal recorded for a variable number of cycles). All files have the same are made up of a header followed by a variable number of records. Each record contains 7 comma separated fields. The patient ID is recorder in the header which is stripped off when reading t...
2012 Jul 19
2
Subsetting problem data, 2
Hello, I didn't give enough information when I sent an query before, so I'm trying again with a more detailed explanation: In this data set, each patient has a different number of measured variables (they represent tumors, so some people had 2 tumors, some had 5, etc). The problem I have is that often in later cycles for a patient, tumors that were originally measured are now missing (or a "new" tumor showed up). We assume there are many d...
2011 Jan 20
4
subsets
Dear R people Could you please help. Basically, there are two variables in my data set. Each patient ('id') may have one or more diseases ('diagnosis'). It looks like id diagnosis 1 ah 2 ah 2 ihd 2 im 3 ah 3 stroke 4 ah 4 ihd 4 angina 5 ihd .............. Q: How to make three data sets: 1. Patients with ah and ihd 2. Patients with ah but no ihd 3. Patients with ihd but no ah...
2012 May 03
5
Identifying the particular X or Y in a sorted list
Dear All, I have a data sets as shown below A (Patient ID ), B and C are the Concentration of drug in blood on day 1 and day 4, D is the difference in conc. To do this in R I have written a code as follows, identified the number of patients who have more concentration on day 4 . Here I want to identify specifically the patient ID (is he patient 1 or 2...
2002 Aug 22
1
Error: object is not a matrix
...ciated, Al Kim Research Scientist Department of Psychology University of Washington, Box 351525 Seattle, WA. 98195, USA E-Mail: alkim at u.washington.edu; Tel: (206)543-2395 Included below is the data I'm using. > AK.df Y P A B C 1 10 1 E1 Red Agent 2 9 1 E1 Red Patient 3 0 1 E1 Unred Agent 4 0 1 E1 Unred Patient 5 5 1 E2 Red Agent 6 6 1 E2 Red Patient 7 0 1 E2 Unred Agent 8 0 1 E2 Unred Patient 9 8 2 E1 Red Agent 10 9 2 E1 Red Patient 11 0 2 E1 Unred Agent 12 0 2 E1 Unred Patient 13 4 2 E2 Red Agent 14 4 2 E2 Red Patient...
2010 Sep 23
2
Error: attempt to apply non-function
This code worked fine for me, then did some cleaning up of formatting using ESS (Emacs) and now I get this error, no idea what is causing it, all the brackets/parentheses seem to be balanced. What have I done wrong? Thanks Jim p0.trial01 <- 0.25 TruOR01 <- 0.80 num.patients.01 <- 50 num.trials.01 <- 5 LOR01.het.in <- 0.00 num.sims <- 1 simLOR01 <- vector(length=num.trials.01) simLORSE01 <- vector(length=num.trials.01) simOR01 <- vector(length=num.trials.01) trialnum01 <- vector(length=num.trials.01) x0count <- vector(length = num.trials.0...
2009 Aug 06
2
duplicate model object with associations ?
class Patient < AR::Base has_many :aaas has_many :bbbs ,:through=>:aaas end class Aaa < AR::Base has_many :bbbs end ------- i want like this @patient=Patient.find(id) @new_patient=@patient.duplicate now the @new_patient should have their own copy of patient,aaas,bbbs (new records in corresponding...
2006 Jul 13
5
how to get to the parent of a child object.
Hi, i have a problem with the following: I have an application with patients <-->>consults models are ok in the view list_consults i do this: for consult in @consults%> <tr> <td><%= consult.patient.name %></td> <td><%= consult.reason %></td> <td><%= consult.date %></td> <td>...
2006 Sep 07
3
graphics - joining repeated measures with a line
I would like to join repeated measures for patients across two visits using a line. The program below uses symbols to represent each patient. Basically, I would like to join each pair of symbols. library(lattice) patient <- c(1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9) var <- c(826,119,168,90,572,323,122,10,42,900,250,180,120,650,400,130,12,33)...