Re: [R] trouble double looping to generate data for a meta-analysis

2016-07-01 Thread Federman, Douglas
You might look at the package Wakefield For data generation -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Marietta Suarez Sent: Friday, July 01, 2016 1:28 PM To: r-help@r-project.org Subject: [R] trouble double looping to generate data for a meta-

Re: [R] Importing data from a text file with no separator

2016-06-09 Thread Federman, Douglas
?read.fwf There is a data import/export document on cran.r-project.org -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Paolo Letizia Sent: Wednesday, June 08, 2016 8:40 PM To: r-help@r-project.org Subject: [R] Importing data from a text file with no s

Re: [R] kernel matching pursuit

2016-06-03 Thread Federman, Douglas
This website might be of help: http://www.biostat.jhsph.edu/~estuart/propensityscoresoftware.html confidential to sas, spss, stata, and sudaan users: heavy doses of those programs may cause statococcal infection.  time to transition to R. -- Anthony Damico -- -Original Message- From: R

Re: [R] Package to work with weight based data

2016-04-29 Thread Federman, Douglas
You might look at Anthony D'Amico's work at Asdfree.com There is a lot to learn from here and many of those examples work with weighted survey results -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of BISWAJIT KAR Sent: Thursday, April 28, 2016 12

Re: [R] Batch Installer for R

2016-03-31 Thread Federman, Douglas
Does the package packrat do what you want? -- Better name for the general practitioner might be multispecialist. ~Martin H. Fischer (1879-1962) -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Tobias Knuth Sent: Thursday, March 31, 2016 9:05 AM To: r-he

Re: [R] Special sequence

2016-02-29 Thread Federman, Douglas
You might look at the sprint function which is in base R -- Better name for the general practitioner might be multispecialist. ~Martin H. Fischer (1879-1962) -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Cacique Samurai Sent: Monday, February 29, 201

Re: [R] Loading large .pxt and .asc datasets causes issues.

2016-02-23 Thread Federman, Douglas
You might want to look at Anthony Damico's work at http://www.asdfree.com/search/label/behavioral%20risk%20factor%20surveillance%20system%20%28brfss%29 -- Better name for the general practitioner might be multispecialist. ~Martin H. Fischer (1879-1962) -Original Message- From: R-help [

Re: [R] axis break in R

2016-02-23 Thread Federman, Douglas
The current version of R is 3.2.3 and is available on the website. You should update. The current version of plotrix is 3.6-1 -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Eike Marie Thaysen Sent: Tuesday, February 23, 2016 11:00 AM To: r-help@r-pr

[R] search across a row for strings

2015-06-15 Thread Federman, Douglas
I'm trying to do the following: search each patient's list of diagnoses for a specific code then create a new column based upon the the presence of the specific code. Simplified data follows: con <- textConnection(" ID DX1 DX2 DX3 1 410942807102 2 734 311

Re: [R] Template Engine for R

2015-05-18 Thread Federman, Douglas
There is a new one on CRAN called infuser that may meet your needs -- One who is in a dying condition is regarded as a living person in all respects. -- Maimonides -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Luca Cerone Sent: Saturday, May 16,

Re: [R] Cost-effectiveness Analysis in R

2015-04-14 Thread Federman, Douglas
I've not seen much and most of the responses relate to classification trees and not clinical decision trees. See this post: https://stat.ethz.ch/pipermail/r-help/2012-July/318597.html . I was unable to run arvore on a recent version of R. -Original Message- From: R-help [mailto:r-help

Re: [R] Suggestion in justify in write.fwf {gdata}

2015-03-04 Thread Federman, Douglas
Perhaps you should contact the package maintainer regarding this request. Who is wise? One who learns from every person. Who is strong? One who overpowers his evil inclinations. Who is rich? One who is satisfied with his lot. Who is honorable? One who honors his fellows. - Pirkei Avot [excerpt]

Re: [R] Swap rows and columns in a matrix

2012-10-30 Thread Federman, Douglas
Does the builtin function 't' work for your needs? -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Haris Rhrlp Sent: Tuesday, October 30, 2012 3:00 PM To: R-help@r-project.org Subject: [R] Swap rows and columns in a matrix Dear R us

Re: [R] lagged variables

2012-07-25 Thread Federman, Douglas
There is a Lag function in Hmisc and I found this on StackExchange shift <- function (x, shift_by) { #similar to lag function stopifnot(is.numeric(shift_by)) stopifnot(is.numeric(x)) if (length(shift_by)>1) return(sapply(shift_by,shift, x=x)) out<-NULL abs_shift_by=abs(

[R] Reading data into

2010-10-04 Thread Federman, Douglas
I have data in the following form: judge poster score poster score poster score a1 89 2 79 392 b 3 45 4 65 and am trying to get it to the following: Poster Judge_A Judge_B Judge_C 1

Re: [R] How to refer to the last a few rows?

2009-09-14 Thread Federman, Douglas
Try the tail() function -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Peng Yu Sent: Monday, September 14, 2009 11:32 AM To: r-h...@stat.math.ethz.ch Subject: [R] How to refer to the last a few rows? Hi, x=matrix(1:60,nr=6) I can

Re: [R] changing variables in a dataset

2009-05-06 Thread Federman, Douglas
you could use chickwts$feed<- as.numeric(levels(chickwts$feed))[as.integer(chickwts$feed)] I got this by searching archives of old messages. I can't recall why the simpler as.numeric(chickwts$feed) is not an appropriate all around solution. -- "I like nonsense, it wakes up the brain cell

Re: [R] portable R editor

2009-03-06 Thread Federman, Douglas
You might also look at http://www.portableapps.com for a portable version of several editors, including gVim, Notepad++ and SciTE which all have some level of support for R -- "I like nonsense, it wakes up the brain cells. Fantasy is a necessary ingredient in living, it's a way of looking at l