[R] [R-pkgs] package JM -- version 1.0-0

2012-07-10 Thread Dimitris Rizopoulos
files, and examples at the R wiki web page devoted to JM: http://rwiki.sciviews.org/doku.php?id=packages:cran:jm As always, any kind of feedback (e.g., questions, suggestions, bug-reports, etc.) is more than welcome. Best, Dimitris -- Dimitris Rizopoulos Assistant Professor Department

Re: [R] how to apply the same function to multiple data set

2012-06-27 Thread Dimitris Rizopoulos
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address

Re: [R] how to apply the same function to multiple data set

2012-06-27 Thread Dimitris Rizopoulos
On Wed, Jun 27, 2012 at 12:45 PM, Dimitris Rizopoulos d.rizopou...@erasmusmc.nl mailto:d.rizopou...@erasmusmc.nl wrote: you will have to check what function pargev() returns as a result. I would guess that is probably a list. In any case, you could use something like the following

Re: [R] data normalization

2012-06-20 Thread Dimitris Rizopoulos
, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014 Web: http://www.erasmusmc.nl/biostatistiek

Re: [R] how to deduplicate records, e.g. using melt() and cast()

2012-05-07 Thread Dimitris Rizopoulos
), cond.two = c(NA, 0.6, NA, 0.9, NA, 0.2), cond.three = c(NA, NA, NA, NA, 0.1, NA)) my.df ## The data fram i want: wanted.df - data.frame(pathway = c(pw.A, pw.B, pw.C), cond.one = c(0.5, 0.4, NA), cond.two = c(0.6, 0.9, 0.2), cond.three = c(NA, 0.1, NA)) wanted.df -- Dimitris Rizopoulos Assistant

Re: [R] Summing list with NA elements

2012-05-04 Thread Dimitris Rizopoulos
/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA

Re: [R] Matrix multiplication by multple constants

2012-04-20 Thread Dimitris Rizopoulos
]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos

Re: [R] expand.grid using a matrix and a vector as input

2012-03-15 Thread Dimitris Rizopoulos
]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics

Re: [R] Numerical Inversion of Cumulative Distribution Function

2012-03-06 Thread Dimitris Rizopoulos
Check function uniroot(). I hope it helps. Best, Dimitris On 3/6/2012 7:47 PM, Gildas Mazo wrote: Dear R users, Given a user-defined cumulative distribution function F, I want to compute F^{-1}(x). How is that possible with R? Best Regards, -- Dimitris Rizopoulos Assistant Professor

Re: [R] Function for Generating all Permutations with Repetition

2012-03-05 Thread Dimitris Rizopoulos
, Martin -- __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris

Re: [R] split array into groups by value

2012-03-05 Thread Dimitris Rizopoulos
. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos

Re: [R] Two plots with two different Y labels

2012-03-01 Thread Dimitris Rizopoulos
commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014 Web: http://www.erasmusmc.nl

Re: [R] Column wise matrix multiplication

2012-02-20 Thread Dimitris Rizopoulos
the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0

Re: [R] Selecting elements from all items in a list

2012-02-14 Thread Dimitris Rizopoulos
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center

Re: [R] Vector manipulation

2012-02-12 Thread Dimitris Rizopoulos
. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014 Web: http://www.erasmusmc.nl/biostatistiek

Re: [R] Find interval between numbers in list or vector

2012-02-10 Thread Dimitris Rizopoulos
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box

Re: [R] remove NAs from list collectively

2012-02-08 Thread Dimitris Rizopoulos
-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014

Re: [R] check for nearest value in a vector

2012-02-08 Thread Dimitris Rizopoulos
/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014 Web

Re: [R] logical subsetting, indexes and NAs

2012-01-28 Thread Dimitris Rizopoulos
://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax

Re: [R] Return the matrix location of multiple entries

2012-01-23 Thread Dimitris Rizopoulos
(x)][1:4])) [,1] [,2] [,3] [,4] [1,] 1 2 2 3 [2,] 1 2 3 4 Yet another solution is: subER - matrix(sample(100), 10) matrix(subER[order(row(subER), subER)], ncol = ncol(subER), byrow = TRUE)[, 1:4] Cheers, Dimitris -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics

Re: [R] Removing rows in dataframe w'o duplicated values

2011-11-22 Thread Dimitris Rizopoulos
-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics

Re: [R] ltm: Simplified approach to bootstrapping 2PL-Models?

2011-11-20 Thread Dimitris Rizopoulos
http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478

Re: [R] Estimating IRT models by using nlme() function

2011-11-12 Thread Dimitris Rizopoulos
/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000

Re: [R] Generate a sequence of vectors of different length

2011-11-02 Thread Dimitris Rizopoulos
]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor

Re: [R] Calculate the difference using ave

2011-10-26 Thread Dimitris Rizopoulos
! Patrick __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris

Re: [R] Create order of numbers based on a given vector

2011-10-13 Thread Dimitris Rizopoulos
http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478

Re: [R] stop()

2011-10-11 Thread Dimitris Rizopoulos
]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos

Re: [R] generate sequences for every element of a vector

2011-10-07 Thread Dimitris Rizopoulos
. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014 Web: http://www.erasmusmc.nl/biostatistiek

Re: [R] Concecutive zeros and ones

2011-10-06 Thread Dimitris Rizopoulos
]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos

Re: [R] Duplicate elements of a vector

2011-10-06 Thread Dimitris Rizopoulos
-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam

[R] [R-pkgs] package JM -- version 0.9-0

2011-09-29 Thread Dimitris Rizopoulos
., questions, suggestions, bug-reports, etc.) is more than welcome. Best, Dimitris -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014 Web: http

Re: [R] multiplying list with vector

2011-09-29 Thread Dimitris Rizopoulos
mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical

Re: [R] need help on melt/cast

2011-09-22 Thread Dimitris Rizopoulos
/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA

Re: [R] pasting elements of one character vector together

2011-09-19 Thread Dimitris Rizopoulos
-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics

Re: [R] Automated generation of combinations

2011-09-12 Thread Dimitris Rizopoulos
]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant

Re: [R] Regression coefficient constraints

2011-09-04 Thread Dimitris Rizopoulos
-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus

Re: [R] Classifying values by interval

2011-08-31 Thread Dimitris Rizopoulos
http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax

Re: [R] assign group letters to T/F matrix

2011-08-31 Thread Dimitris Rizopoulos
-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam

Re: [R] splitting into multiple dataframes and then create a loop to work

2011-08-29 Thread Dimitris Rizopoulos
]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department

Re: [R] splitting into multiple dataframes and then create a loop to work

2011-08-29 Thread Dimitris Rizopoulos
, Dennis On Mon, Aug 29, 2011 at 12:02 PM, Dimitris Rizopoulos d.rizopou...@erasmusmc.nl wrote: You can do this using function lmList() from package nlme, without having to split the data frames, e.g., library(nlme) mlis- lmList(yvar ~ . - clvar | clvar, data = df) mlis summary(mlis) I hope

Re: [R] How to generate a random variate that is correlated with a given right-censored random variate?

2011-08-26 Thread Dimitris Rizopoulos
]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics

Re: [R] Bivariate normal regression in R

2011-08-25 Thread Dimitris Rizopoulos
commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014 Web: http://www.erasmusmc.nl

Re: [R] Passing a large amount of parameters to a function

2011-08-24 Thread Dimitris Rizopoulos
http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478

Re: [R] hide row and column-names in cat()

2011-08-24 Thread Dimitris Rizopoulos
-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014 Web: http

Re: [R] Correlation discrepancy

2011-08-23 Thread Dimitris Rizopoulos
]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor

Re: [R] How to apply a function to subsets of a data frame *and* obtain a data frame again?

2011-08-17 Thread Dimitris Rizopoulos
-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014 Web: http

Re: [R] too many var in lm

2011-08-17 Thread Dimitris Rizopoulos
]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department

Re: [R] round() a data frame containing 'character' variables?

2011-08-10 Thread Dimitris Rizopoulos
1.4 0.2 6 5.4 3.9 1.7 0.4 Is there an elegant way to use round() on a data frame containing 'character' variables without removing them? Thank you Liviu -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University

Re: [R] convert 'list' to 'vector'?

2011-08-10 Thread Dimitris Rizopoulos
] a b c d e f g h i j k l Any ideas? Regards Liviu -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014 Web: http://www.erasmusmc.nl

Re: [R] Multivariate normal density in C for R

2011-06-26 Thread Dimitris Rizopoulos
. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant

Re: [R] Multivariate normal density in C for R

2011-06-26 Thread Dimitris Rizopoulos
. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014 Web: http://www.erasmusmc.nl/biostatistiek/ __ R

Re: [R] Fastest way of finding if any members of vector x fall in the range of the rows of matrix y

2011-06-25 Thread Dimitris Rizopoulos
whether probes fall into certain regions? best, salih On Fri, Jun 24, 2011 at 10:23 AM, Dimitris Rizopoulos d.rizopou...@erasmusmc.nl wrote: One approach is the following: x- rnorm(5) y- matrix(rnorm(5*2), 5, 2) check- y - x check[, 1] * check[, 2] 0 I hope it helps. Best, Dimitris On 6/24

Re: [R] Fastest way of finding if any members of vector x fall in the range of the rows of matrix y

2011-06-24 Thread Dimitris Rizopoulos
read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands

Re: [R] Replace selected columns of a dataframe with NA

2011-06-20 Thread Dimitris Rizopoulos
-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014 Web: http

Re: [R] Applying function to all elements of a formula

2011-06-18 Thread Dimitris Rizopoulos
. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014 Web: http://www.erasmusmc.nl/biostatistiek

Re: [R] question about split

2011-06-17 Thread Dimitris Rizopoulos
-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014 Web: http://www.erasmusmc.nl/biostatistiek

Re: [R] Expand DF with all levels of a variable

2011-06-14 Thread Dimitris Rizopoulos
. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014 Web: http://www.erasmusmc.nl/biostatistiek

Re: [R] Surv(): Stop time must be start time, NA created

2011-06-03 Thread Dimitris Rizopoulos
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO

Re: [R] Surv(): Stop time must be start time, NA created

2011-06-03 Thread Dimitris Rizopoulos
On 6/3/2011 12:32 PM, Federico Calboli wrote: On 3 Jun 2011, at 11:27, Dimitris Rizopoulos wrote: this sounds like a competing risks problem. Maybe you would be interested in a cause-specific hazard regression or the Fine Gray model (http://cran.r-project.org/package=cmprsk). I

Re: [R] Minimum value by ID

2011-05-17 Thread Dimitris Rizopoulos
-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014 Web: http://www.erasmusmc.nl/biostatistiek

Re: [R] conditional rowsums in sapply

2011-05-16 Thread Dimitris Rizopoulos
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address

Re: [R] first occurrence of a value?

2011-05-04 Thread Dimitris Rizopoulos
/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040

Re: [R] Extract complete rows by group and maximum

2011-04-28 Thread Dimitris Rizopoulos
and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014 Web: http://www.erasmusmc.nl

Re: [R] Second largest element from each matrix row

2011-04-26 Thread Dimitris Rizopoulos
, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014 Web: http://www.erasmusmc.nl/biostatistiek

Re: [R] all combinations with replacement

2011-04-21 Thread Dimitris Rizopoulos
-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014

Re: [R] zero fill empty cell in data.frame

2011-04-19 Thread Dimitris Rizopoulos
commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014 Web: http://www.erasmusmc.nl

Re: [R] Several factors same levels

2011-04-19 Thread Dimitris Rizopoulos
. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department

Re: [R] Table multiple answers variables

2011-03-15 Thread Dimitris Rizopoulos
deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris

Re: [R] replace with quantile value for a large data frame...

2011-03-13 Thread Dimitris Rizopoulos
://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0

Re: [R] using pre-calculated coefficients and LP in coxph()?

2011-03-13 Thread Dimitris Rizopoulos
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box

Re: [R] using pre-calculated coefficients and LP in coxph()?

2011-03-13 Thread Dimitris Rizopoulos
guide and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014 Web: http

Re: [R] Extracting only odd columns from a matrix

2011-03-09 Thread Dimitris Rizopoulos
. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant

Re: [R] Replacing values in a data.frame/matrix

2011-03-08 Thread Dimitris Rizopoulos
commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014 Web: http://www.erasmusmc.nl

Re: [R] sum of digits or how to slice a number into its digits

2011-03-04 Thread Dimitris Rizopoulos
__ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos

[R] Sweave trim output

2011-02-25 Thread Dimitris Rizopoulos
this. Thanks in advance. Best, Dimitris -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014 Web: http://www.erasmusmc.nl/biostatistiek

Re: [R] if statements on vectors

2011-02-24 Thread Dimitris Rizopoulos
and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014 Web: http

Re: [R] identify an element in a column

2011-02-22 Thread Dimitris Rizopoulos
]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant

Re: [R] Subset according to groups NA proportion within specific variables

2011-02-21 Thread Dimitris Rizopoulos
://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31

Re: [R] How to change dataframe to tables

2011-02-18 Thread Dimitris Rizopoulos
and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014 Web: http

Re: [R] removing lower and upper quantiles from an arry

2011-02-17 Thread Dimitris Rizopoulos
guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10

Re: [R] Count factor if

2011-02-17 Thread Dimitris Rizopoulos
this function provides a value of 4 in row 5, column c, while it should be 3. Is there another way I can solve my problem? Thanks! M -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0

Re: [R] Axis positions

2011-02-16 Thread Dimitris Rizopoulos
. Secondly, is it possible to center X and Y axis so the origin is right in the center of the graph. With regards, Phil -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10

Re: [R] How to join matrices of different row length from a list

2011-01-06 Thread Dimitris Rizopoulos
? Thanks Emma -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014 Web: http://www.erasmusmc.nl/biostatistiek

[R] [R-pkgs] package JM -- version 0.8-0

2010-12-17 Thread Dimitris Rizopoulos
, suggestions, bug-reports, etc.) is more than welcome. Best, Dimitris -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014 Web: http

Re: [R] Concat two rows

2010-11-30 Thread Dimitris Rizopoulos
222 ccc 333 ddd 444 and I would like a new row C: A B C aaa 111 aaa.111 bbb 222 bbb.222 ccc 333 ccc.333 ddd 444 ddd.444 How can I do this ??? Thanks Alberto -- Dimitris Rizopoulos Assistant Professor Department

Re: [R] Applying function to elements of matrices in a list

2010-11-25 Thread Dimitris Rizopoulos
-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus

Re: [R] help: program efficiency

2010-11-25 Thread Dimitris Rizopoulos
, but it runs slow if t is large. Is there a better way to do it? nodup = function(t) { t.index=0 t.dup=duplicated(t) for (i in 2:length(t)) { if (t.dup[i]==T) t.index=t.index+0.01 else t.index=0 t[i]=t[i]+t.index } return(t) } -- Dimitris Rizopoulos Assistant

Re: [R] Change the class of columns in a data frame

2010-11-24 Thread Dimitris Rizopoulos
mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University

Re: [R] apply over list of data.frames

2010-11-24 Thread Dimitris Rizopoulos
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam

Re: [R] [beginner] how to run *.r script from graphic interface (R Console window) ?

2010-11-21 Thread Dimitris Rizopoulos
window ? -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014 Web: http://www.erasmusmc.nl/biostatistiek

Re: [R] slicing list with matrices

2010-11-17 Thread Dimitris Rizopoulos
(list elements) I'd like to access one matrix cell: m- matrix(1:9, nrow=3, dimnames=list(LETTERS[1:3], letters[1:3])) l- list(m1=m, m2=m*2, m3=m*3) l[[3]] # works l[[3]][1:2, ] # works l[[1:3]][1, 1] # does not work How can I slice all C-c combinations in the list? Sören -- Dimitris

Re: [R] stacking consecutive columns

2010-11-17 Thread Dimitris Rizopoulos
guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10

Re: [R] Calculate Mean from List

2010-11-09 Thread Dimitris Rizopoulos
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center

Re: [R] Row-wise recurive function call

2010-11-08 Thread Dimitris Rizopoulos
-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014 Web: http

[R] regular exprs

2010-11-07 Thread Dimitris Rizopoulos
be programmed around grep() using a suitable regular expression, but I haven't managed to succeed. Thanks in advance. Best, Dimitris -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel

Re: [R] individual intercept and slope

2010-11-02 Thread Dimitris Rizopoulos
-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University

Re: [R] Fitting GLM with BFGS algorithm

2010-10-26 Thread Dimitris Rizopoulos
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address

Re: [R] create sequence of numbers

2010-10-22 Thread Dimitris Rizopoulos
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO

Re: [R] how fit linear model with fixed slope?

2010-10-22 Thread Dimitris Rizopoulos
/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040

Re: [R] How to check for missing report pages per client

2010-10-21 Thread Dimitris Rizopoulos
. -- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014 Web: http://www.erasmusmc.nl/biostatistiek

  1   2   3   4   5   >