search for: patients

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

Did you mean: patient
2007 Jan 07
2
different points and lines on the same plot
...1451 -0.09876170 252 0.08044537 -0.26701769 0.05727087 -0.09663701 where each patient have response values at four time points. I want to plot each patient's values over time on the same plot where the value points are connected by line. That is, the graph will have four lines for the four patients. I tried the program below but couldn't make it work correctly. I'm new beginner and haven't yet learned how functions line and points work together. Hope you can help me out. Thanks for your help, Antonia par(mfrow=c(1,1)) plot(patient[,1],patient[,2], pch=1, type="l&qu...
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 row indicating data from a single visit. I need to select one row per patient i in clinic j using the following algorithm: If patient has outcome recorded at visit 2, then outcome...
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? =================================== Models...
2009 Nov 05
1
help with ols and contrast functions in Design library
Dear All, I'm 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
2009 Feb 09
1
XML package- accessing nodes based on attributes
...haracteristic Type ="Patient" eName="PatientDateOfBirth" eValue="080808"/> <Characteristic Type ="Patient" eName="PatientGender" eValue="M"/> <Characteristic Type ="Patient" eName="PatientSampleConcentration" eValue="20mg"/> </File> File> <Characteristic Type="File" eName="FileTypeId" eValue="10"/> <Characteristic Type="File" eName="FilePath" eValue="D:\CN_data\Agilen...
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
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 25 191 5 2 Y 12 1
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.
2012 Jul 18
3
Subsetting problem data
...ata 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 Patient B, but not Patient C. Thanks! [[...
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(g...
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 the file into a R data.frame. Since I need to keep
2012 Jul 19
2
Subsetting problem data, 2
...ve 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 different reasons for why a tumor would be measured in one cycle and not another, and so I want to subset OUT the "problem" patients to better study these patterns. An example: Patient Cycle V1 V2 V3 V4 V5 A 1 0.4 0.1 0.5 1.5 NA A 2 0.3 0.2 0.5 1.6 NA A 3 0.3 NA 0.6 1.7 NA A 4 0.4 NA 0.4 1.8 NA A 5 0.5 0.2 0.5 1.5 NA I want to keep patient A; they have 4 measured tumors, but tumor 2 is miss...
2011 Jan 20
4
subsets
...le 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? If you have any ideas could just guide what should I look for. Is a subset or aggregate, or loops, or something else??? I am a bit lost. (F1 F1 F1 !!!:) Thank you
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 or 5 and 7), whose concentration is more. How to write a code to get the list of A (patient ID whose difference is more on day 4). Data<-(myDf$B-myDf$C) sum(Data>0) A B CD (B-C...
2002 Aug 22
1
Error: object is not a matrix
Hi, I have encountered the following error, when using 'aov', which I think has something to do with the length of my call to 'aov', and I cannot understand why: Error in model.frame.default(formula = Y2 ~ P2 + P2:AAAAAAAA + P2:B2 + : object is not a matrix The error occurs when I run the first sequence below, but not the second. The two sequences are based on the SAME
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.01...
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 tables) there is one options is that we can create seperate object for each
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) v...