search for: patientid

Displaying 17 results from an estimated 17 matches for "patientid".

Did you mean: patient_id
2005 May 04
1
lmer error:flist must be a non-empty list
Hi, I was wondering if anyone could give me advice regarding using the lmer command in lme4 package to do logistic regression (mixed effects model). I use the following command lmer(ISH ~ArrayPathology2, random=~1|PatientID, data=HSDB4.noNA, family="binomial") where ISH is outcome(0 or 1), ArrayPathology2 is the variable of interest(factor), PatientID is random effect(factor), and HSDB4.noNA is the complete dataframe (column names ArrayPathology2, Patient ID and ISH etc) There are no NAs in the data. I ge...
2017 Aug 19
2
Update data in text file with data in dataframe
...can't seem to wrap my head around it. So I turn to the experts. I have a text file with patient data that has incorrect dates of service. I need to update the dates of service in the text file with data that's in a dataframe. Data in the text file looks like this (call it PatRecs): PatientID #: 12345 Date of Service: 8/1/2017 . . . PatientID #: 12346 Date of Service: 8/2/2017 . . . The dots are other data. I'm just focused on the PatientID and DOS. The data in the data frame (call it DF) looks like Id2 DOS 12345, 8/3/2017 12346, 8/4/2017 etc. The lists for both a...
2018 Mar 22
3
How do I include a factor in a groupedData object? Meaning and use of inner and outer parameters
...derstand the meaning or, or the use for the inner= and outer= parameters in the call to groupedData. Can someone either explain the meaning of these parameters or refer me to a source that give a clear explanation? > fit0 <- lmer(THmean~INTRVNTN+factor(TimePtID)+INTRVNTN*factor(TimePtID)+(1|PatientID),data=smalldata) > sdgd <- groupedData(THmean~INTRVNTN+TimePtID+INTRVNTN*TimePtID|PatientID,data=smalldata) Warning messages: 1: In Ops.factor(INTRVNTN, TimePtID) : ?+? not meaningful for factors 2: In Ops.factor(INTRVNTN, TimePtID) : ?*? not meaningful for factors Thank you, John John D...
2017 Aug 19
0
Update data in text file with data in dataframe
...around it. So I turn to the experts. > >I have a text file with patient data that has incorrect dates of >service. I need to update the dates of service in the text file with >data that's in a dataframe. > >Data in the text file looks like this (call it PatRecs): > >PatientID #: 12345 >Date of Service: 8/1/2017 >. > >. > >. > >PatientID #: 12346 >Date of Service: 8/2/2017 > >. > >. > >. > >The dots are other data. I'm just focused on the PatientID and DOS. > >The data in the data frame (call it DF) looks l...
2017 Aug 19
1
Update data in text file with data in dataframe
...around it.? So I turn to the experts. > >I have a text file with patient data that has incorrect dates of >service.? I need to update the dates of service in the text file with >data that's in a dataframe. > >Data in the text file looks like this (call it PatRecs): > >PatientID #:? 12345 >Date of Service:? 8/1/2017 >. > >. > >. > >PatientID #:? 12346 >Date of Service: 8/2/2017 > >. > >. > >. > >The dots are other data.? I'm just focused on the PatientID and DOS. > >The data in the data frame (call it DF) looks l...
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 the table is not complete (e.g. some readers didn't read all cases under all conditions). What I would like to do now is for example compute Cohen's Kappa (ckappa from package(psy)) for Parameter1 und...
2018 Mar 22
0
How do I include a factor in a groupedData object? Meaning and use of inner and outer parameters
...eaning or, or the use for the inner= and outer= parameters in the call to groupedData. Can someone either explain the meaning of these parameters or refer me to a source that give a clear explanation? > > >> fit0 <- lmer(THmean~INTRVNTN+factor(TimePtID)+INTRVNTN*factor(TimePtID)+(1|PatientID),data=smalldata) >> sdgd <- groupedData(THmean~INTRVNTN+TimePtID+INTRVNTN*TimePtID|PatientID,data=smalldata) > Warning messages: > 1: In Ops.factor(INTRVNTN, TimePtID) : ?+? not meaningful for factors > 2: In Ops.factor(INTRVNTN, TimePtID) : ?*? not meaningful for factors > &g...
2006 Mar 09
0
Need help on Coxph
...which includes 84 rows and 4313 columns. Starting from the 2nd row, each row represents a patient. The 1st column is for "arrayID" 2nd column is for "time" 3rd column is for "cancer" 4th column is for "patientID" Starting for the 5th columns, each column's ID is like "CTC_232B23", "RP11_181G12", "RP11_62M23"... I extract first 5 rows and 7 columns and get the data in below: arrayID time cancer patientID CTC_232B23 RP11_181G12 RP11_62M23 X1747...
2010 Feb 23
1
How to change a venn command into a named object that can be plotted like a lattice object
...r (i in 1:length(universe)) { Counts[i,1] <- universe[i] %in% set1 Counts[i,2] <- universe[i] %in% set2 } vennDiagram( vennCounts(Counts),main=title,... ) } # How I draw the Venn diagram Venn2(cPostArrayHitsNames,cPreArrayHitsNames,names=c("Post","Pre"),title=PatientID) Unfortunately something like this doesn't work: VennPlot<-Venn2(cPostArrayHitsNames,cPreArrayHitsNames,names=c("Post","Pre"),title=PatientID) Apologies for the imprecise terminology. Thanks. GLC
2010 Jun 18
2
help with reshape is needed again!
...------------------------------------------- gene1 breast 10 100 1 gene2 breast 20 200 4 gene3 breast 30 50 5 gene4 breast 40 400 9 ................................ to the following format: patientID gene1 gene2 gene3 gene4............ ------------------------------------------- 1 10 20 30 40 2 100 200 50 400 3 1 4 5 9 any suggestions how to use reshape or other function to achieve this? t...
2010 Jun 17
2
help for reshape function
...gene tissue patient1 patient2 patient3............. _________________________________________________ gene1 breast 10 20 50 gene2 breast 20 40 60 gene3 breast 100 200 300 which i hope to convert to the following format: gene patientID value gene1 ----------------------------- gene1 1 10 10 gene1 2 20 20 gene1 3 50 100 gene2 1 20 10 gene2 2 40 20 gene2 3 60 100 the column "gene" is required and column "tissue" is not needed. I use the followin...
2009 Dec 10
1
Need help creating multiple datasets using loops or vectorization
...tion: vocallGp1<-subset(vocallsub, Group==1) vocallGp2<-subset(vocallsub, Group==2) vocallGp3<-subset(vocallsub, Group==3) vocallGp4<-subset(vocallsub, Group==4) vocallGp5<-subset(vocallsub, Group==5) When I create the loop I get the following error: vocallsub<-vocall[c("PatientID","Group")] > > for(i in 1:length(vocallsub$Group)){vocallGrp[i]<-subset(vocallsub, Group==(i))} Error in vocallGrp[i] <- subset(vocallsub, Group == (i)) : object 'vocallGrp' not found This is my first time attempting to create a loop and am not sure what I am m...
2007 Sep 17
1
How can I write routines and scripts in the R environment ?
...above to operate on certain columns of an entire data.frame ?* *2. How can I write a parametric R script (like a shell script in Linux) that reads a CSV file into a new R data.frame ? The commands I now issue manually are as follows:* ** *read.csv("file-name",header=T,skip=9)* *file-name$PatientID = paste(rep("file-name",length(file-name[,1])))* *names(file-names)= c("Amplitude","Phase", ....)* Thank you so much. Maura -- Maura E.M [[alternative HTML version deleted]]
2007 Jun 13
3
Awk and Vilno
...ary, and then back, may not seem worth it. Awk, again, wins. But the asciitobinary and binarytoascii statement ( there and back ) only takes 4 lines or so, so Vilno is really not that bad. Certain apsects of Vilno and SAS are a bit more user-friendly: Each column has a variable name, such as "PatientID". Awk uses $1, $2, $3 , as variable names for columns. Not user-friendly. In both Vilno and SAS (and SQL) the possibility of "MISSING" ( or "NULL" ) is built into the data values held in the columns. So you don't have to use separate boolean variables to track MISSING v...
2004 Oct 06
4
Problems with merge
This issue has been discussed on this list before but the solutions offerred are not satisfactory. So I thought I shall raise it again. I want to merge two datasets which have three common variables. These variables DO NOT have the same names in both the files. In addition, there are two variables with same name which do not necessarily have exactly same data. That is, there could be some
2009 Jul 28
5
Summarising Data for Forrest Plots
I tried to post this a few times last week and it seems to have got stuck somehow so I'm trying from a different email in the hope that works. If somehow this has appeared on the list 20 tiems and I never saw any of them I apologize ;-) I'm basically an R-newbie. But I am VERY computer literate. But this has me stumped... All the examples for using the rmeta package to create a
2012 Mar 22
4
Plotting patient drug timelines using ggplot2 (or some other means) -- Help!!!
Hello All, Want very much to learn how to plot patient drug timelines. Trouble is I need to figure out how to do this today. So not much time for me to struggle with it. Hoping someone can just help me out a bit. Below are some sample data and code that produces what I think is the beginning of a very nice graph. Need to alter the code to: 1. Get the lines for the drugs to appear on the