Re: [R] Create a function to number each repeated visit or measurements

2012-09-04 Thread Jon Toledo
, 7, 8, 9 > #5 e 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 > A.K. > > > > - Original Message - > From: PIKAL Petr > To: Jon Toledo ; "r-help@r-project.org" > > Cc: > Sent: Tuesday, September 4, 2012 7:07 AM > Subject

[R] Create a function to number each repeated visit or measurements

2012-09-03 Thread Jon Toledo
Hi dear R list members, I am trying to create a numerical variable that tracks the visits/entries that a subject has had. For example having a database of repeated serial measurements that are ordered by subject and time. So I would get a variable that says 0 for baseline visit/measurement, 1 f

[R] Non compatible arguments in gvlma

2011-09-14 Thread Jon Toledo
2.0-11 foreign_0.8-44 survival_2.36-9 [11] nnet_7.3-1 MASS_7.3-13 loaded via a namespace (and not attached):[1] cluster_1.14.0 grid_2.13.1 lattice_0.19-30 tools_2.13.1 Thank you ver much Jon Toledo PostDoctoral Research FellowCNDR, UPenn Medical

Re: [R] Trying to extract probabilities in CARET (caret) package with a glmStepAIC model

2011-08-28 Thread Jon Toledo
I corrected some of my syntax and changed the the glmStepAIC for glm and ti worked. I tried my command lines with the mdrr dataset (after doing the first cleaning steps as referred in the manual), the only difference is that I only took first two columns because it took too much time with one v

[R] Trying to extract probabilities in CARET (caret) package with a glmStepAIC model

2011-08-27 Thread Jon Toledo
l(method = "cv", number = 10, classProbs = TRUE,returnResamp = "all", verboseIter = FALSE) glmFit <- train(Descr, Categ, method = "glmStepAIC",tuneLength = 4,trControl = fitControl) Thank you. Best regards, Jon Toledo, MD Postdoctoral fellow University of Penn

Re: [R] Predictions from a logistic regression model with validation for ROCR

2011-08-26 Thread Jon Toledo
crossvalidated sets. Thank you very much. > CC: r-help@r-project.org > From: dwinsem...@comcast.net > To: tintin...@hotmail.com > Subject: Re: [R] Predictions from a logistic regression model with validation > for ROCR > Date: Fri, 26 Aug 2011 14:35:37 -0400 > > > On Aug 26, 2

[R] Predictions from a logistic regression model with validation for ROCR

2011-08-26 Thread Jon Toledo
to predictors. Thank you. Best regards, Jon Toledo, MD Postdoctoral fellow University of Pennsylvania School of Medicine Center for Neurodegenerative Disease Research 3600 Spruce Street 3rd Floor Maloney Building Philadelphia, Pa 19104

[R] Repating a loop of lm function with different columns of database

2011-07-14 Thread Jon Toledo
V2a V3a V1b V2b V3b TimeDifferenceDays2.42 72.4 3.75 2.46 55.4 4.44 6081.66 89.7 2.54 2.17 94.0 2.15 4192.45 112. 0.46 2.40 129.0 .42 7142.58 55.6 5.05 2.44 135.0 5.39 7212.61 332.0 22.6 3.55 238.0 16.4 729" Data <- read.table(textConnection(txt), header = TRUE) Thank yo

[R] Looking for a repeated measure two groups comparison and a two factor ANOVA in Circular distribution

2011-03-22 Thread Jon Toledo
Hi, I am looking for a way to study some phase data with a circular distribution measured in rad.I would like to do a two way ANOVA (if possible mixed, with inter and intrasubject).I haven´t found a package that does that in R?Does sombeody know if there is one or how to do the analysis.Thanks

Re: [R] Spatial cluster analysis of continous outcome variable

2011-03-18 Thread Jon Toledo
09:48:46 -0400 > > > On Mar 17, 2011, at 10:45 PM, Jon Toledo wrote: > > > I read it but it said PDF file and Ps, didn´t specify which other > > files, so I attached a csv file, which I thought would work. > > The last time I read it, it said .pdf and .txt.

Re: [R] Spatial cluster analysis of continous outcome variable

2011-03-17 Thread Jon Toledo
you did you didn't read it closely enough. > > -- > David. > On Mar 17, 2011, at 4:11 PM, Jon Toledo wrote: > > > > > I attach the data (csv format). There are the 3 coordinates, (but as > > there are not so many points I wanted two do 3 analysis in each o

Re: [R] Spatial cluster analysis of continous outcome variable

2011-03-17 Thread Jon Toledo
I attach the data (csv format). There are the 3 coordinates, (but as there are not so many points I wanted two do 3 analysis in each of them collapsing one variable).There are two variables to study I have posted the data as a ratio between both states and as a percentage state between both sta

[R] Spatial cluster analysis of continous outcome variable

2011-03-17 Thread Jon Toledo
Dear R Users, R Core Team, I have a two dimensional space where I measure a numerical value in two situations at different points. I have measured the change and I would like to test if there are areas in this 2D-space where there is a different amount of change (no change, increase, decrease).

[R] Problem on flexmix when trying to apply signature developed in one model to a new sample

2011-03-01 Thread Jon Toledo
Problem on flexmix when trying to apply signature developed in one model to a new sample. Dear R Users, R Core Team, I have a problem when trying to know the classification of the tested cases using two variables with the function of flexmix: After importing the database and creating a

[R] Latent Profile Analysis Package?

2010-01-15 Thread Jon Toledo
I´ve several packages for latent class analysis, but I was wondering if there is a package for continuos variables, which allows latent prfile analysis. Thanks for your help in advance, J Toledo ___

[R] clues package for cluster selection

2010-01-06 Thread Jon Toledo
Y have only continuos quantitative data and when I trie the function I get next message > res<-clues(C,quiet=TRUE) Error en ChooseK_sil(y, y2 = y, n0, alpha, eps, itmax, second, K2.vec, : el objeto (list) no puede ser coercionado a 'double' Last line would be the object could (list) not b