[R] heatmap/clustering/corelation/sameorder

2010-11-24 Thread Stuart
Hi I am trying to make heatmaps first based of QTLs profile only and then I want to cluster them based on Column only!!! Expression QTLs heat map heatmap.2(expression.qtl,Rowv=F,dendrogram="column",trace="none", distfun = function(c) as.dist(1 - c), density.info="none", trace="none", cexRow =

[R] Data Extraction/threshold/

2011-01-19 Thread Stuart
X959X967X968 X9591 -0.04 0.45 X967-0.04 1 -0.09 X9680.45-0.09 1 X968_2 0.76-0.16 0.82 __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide ht

[R] calculation correlation and p-values of genes using rcorr function

2011-01-20 Thread Stuart
Hi I want to do correlation of genes but I need to know p-values to construct netwrok based on correlation. But I,m getting too many zero for some reasons. I read one paper and they did analysed their data by :: 1- R values 2-P-values 3-Spearman p values - FDR corrected (Bejamini-Hochberg) Do yo

[R] data transformation ----Box-Cox Transformations

2011-05-03 Thread Stuart
Hi Could any one please help how I can trnasform data based on Box-Cox Transformations. I have massive data set with many variables. If possible someone can write few lines so I can read in all data set once and transform it. g1 g2 g2 97.03703704 89.25925926 4.4 24.9074

[R] Probit Transformation

2011-06-07 Thread Stuart
Hi I have data set consisting of my many variables and also in some cases missing values. I want to probit transformation of my whole data set using library VGAM or any other possible way. I would appreciat if some one can help in writing code for probit transformation V1 V10 V11 V1

[R] heatmap.2 (blurred output heatmap)

2011-11-29 Thread Stuart
Hi I used to make heatmaps using following commands but now some thing has changed as I get library(gplots) heatmap. 2(qtl.map,Rowv=F,dendrogram="column",col=colorRampPalette(c("blue","lightblue","black","black","yellow","red")),breaks=seq(-4.01,4.01,length.out=51), density.info="none", ) follow

[R] Using contrast with cox models

2016-11-21 Thread Patterson, Stuart
, I want to present the Hazard ratio, 95% CI, and p value for each combination of the three variables. How do I get R to give me these values please? I think that the contrast function does this for other models but does not work for coxph? Many thanks Stuart Patterson Royal Veterinary Coll

[R] Equation sequencing

2008-07-18 Thread Stuart Nettleton
other constraints. I imagine that something could be done with mathgraph. Thanks, Stuart -- DISCLAIMER: This email message and any accompanying atta...{{dropped:10}} __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] How to solve systems of nonlinear equations in R?

2008-07-18 Thread Stuart Nettleton
Francois You might try the BB package, which has quite a nice example. Stuart On Sat, 19 Jul 2008 10:20:34 +1000, François Aucoin <[EMAIL PROTECTED]> wrote: Hey, I was wondering if there existed a R function similar to 'fsolve' or 'fzero' Matlab function

Re: [R] Non-linearly constrained optimisation

2008-07-19 Thread Stuart Nettleton
/drampl/ ) or write your problem in GAMS or AMPL format and submit to the Neos server either directly (http://neos.mcs.anl.gov/neos/) or by using pyneos.py (www.gerad.ca/~orban/pyneos/pyneos.py). I really hope this gets worked out in R at some stage! Stuart On Sun, 20 Jul 2008 08:10:35 +1000,

[R] Omitting members of a sequence

2010-02-19 Thread Stuart Luppescu
? > 64:70[-c(2, 4)] [1] 64 65 66 67 68 69 70 Just wondering. -- Stuart Luppescu -=- slu .at. ccsr.uchicago.edu University of Chicago -=- CCSR 才文と智奈美の父 -=-Kernel 2.6.30-gentoo-r5 Cordelia: Hi! You having fun? Angel: Sure. This is, uh... Cordelia: Your idea of hell.

Re: [R] help R IRT simulation

2010-03-03 Thread Stuart Luppescu
and rnorm() doesn't include arguments for skewness and kurtosis. kurtosis() functions exist in e1071 and fUtilities, but they only return the kurtosis of the input data. Let me know if you find something. -- Stuart Luppescu University of Chicago __

[R] BATCH jobs taking too much resources?

2010-04-01 Thread Stuart Luppescu
right around 1.0. Admittedly, this is a rather big job: lmer with 2,200,000 records crossed by 125,000 students and 10,000 teachers. But I don't understand why it should consume resources so avariciously when run as a BATCH job. Can anyone explain this to me? TIA -- Stuart Luppescu -*-*- slu ccsr

Re: [R] SAS and R on multiple operating systems

2010-04-05 Thread Stuart Luppescu
d by ess under emacs. You can get the same thing with R in ess by highlighting the code and pressing C-c C-r (or C-c C-b to run the whole program). -- Stuart Luppescu University of Chicago __ R-help@r-project.org mailing list https://stat.ethz.ch/ma

Re: [R] help in function in R akin to macro in SAS

2010-04-06 Thread Stuart Luppescu
e("Supervised: Mapping plot for", data) > > } > > > #use the plotxyf function. > plotxyf(final.xyf) BTW, I think it's better not to use "data" as a function parameter, since it has reserved use in the language. -- Stuart Luppe

[R] unexpected behaviour with ddply and colwise

2010-04-07 Thread Stuart Andrews
one. Shouldn't ddply() produce the same ? Thanks in advance for your help, - Stuart Andrews > set.seed(1234) > aa = as.data.frame(matrix(rnorm(100)>0.3,nrow=20)) > names(aa) = c('a','b','c','d','e') > head(aa) a b c

Re: [R] unexpected behaviour with ddply and colwise

2010-04-07 Thread Stuart Andrews
formula or character vector" I assumed that I could select entire columns (i.e. the *variables* that comprise my data.frame) using this argument. Thx again, - S. On Apr 7, 2010, at 6:13 PM, Steve Lianoglou wrote: Howdy, I'm no plyr master, but here's my 2 cents ... On Wed, Apr

Re: [R] Confusing concept of vector and matrix in R

2010-04-26 Thread Stuart Andrews
Thanks Charles, for clarifying. My statement holds for matrices, which are 2 dimensional. And, as you mentioned, a single index implies vector indexing where the drop argument doesn't make sense. I am somewhat relieved, given this new understanding. But I am still puzzled as to why R

[R] colouring locfit bands

2010-04-30 Thread Stuart Leask
fy for the locally-fitted estimate line? Stuart Dr Stuart J Leask DM FRCPsych MA BChir Clinical Senior Lecturer and Honorary Consultant in Clinical Psychiatry University Dept of Psychiatry, A Floor, Queen's Medical Centre, Nottingham. NG7 2UH www: Google "Dr Stuart Leask" This mes

[R] Suppressing certain debugging output

2009-12-21 Thread Stuart Andrews
keywords: debug, do.call, "debugging in", suppress, arguments, list, screen, console, output Hi, I would like to control the output to the console while debugging functions that are called by do.call( FCN, ARGUMENTS ) when the arguments are quite large. Is there a simple way to suppress

[R] Multiple Hexbinplots in 2 columns with a Single Categorical Variable

2009-04-09 Thread Stuart Reece
code I have written is as follows. I would be ever so grateful for any advice anyone may be able to offer. With best wishes, Stuart Reece, Australia. useOuterStrips(hexbinplot(Transferin ~ Age | factor(Race) + factor(Sex), data = NHANES, type = "r",

[R] [r] How to pick colums from a ragged array?

2012-10-23 Thread Stuart Leask
someone can help. My ugly code is below, with some data for testing. Stuart Dr Stuart John Leask DM FRCPsych MB BChir MA Clinical Senior Lecturer and Honorary Consultant Pychiatrist Institute of Mental Health, Innovation Park Triumph Road, Nottingham, Notts. NG7 2TU. UK Tel. +44 115 82 30419 stuart

Re: [R] [r] How to pick colums from a ragged array?

2012-10-23 Thread Stuart Leask
Ah, no, my method does fail. Consider an ID that has a duplicate DATE that isn't the first date, but it's first date is the same as another ID's first date that IS a duplicate. Test data is all - see below it failing. So, I remain very grateful for your function! St

Re: [R] [r] How to pick colums from a ragged array?

2012-10-23 Thread Stuart Leask
n. I will compare the two approaches (and assume that mine is flawed!). Stuart ID <- c(58,58,58,58,167,167,323,323,323,323,323,323,323 ,547,794,814,814,814,814,814,814,841,841,841,841,841 ,841,841,841,841,910,910,910,910,910,910,999,1019,1019

Re: [R] [r] How to pick colums from a ragged array?

2012-10-23 Thread Stuart Leask
"167" "841" "1019" Stuart -Original Message- From: PIKAL Petr [mailto:petr.pi...@precheza.cz] Sent: 23 October 2012 13:15 To: Stuart Leask; r-help@r-project.org Subject: RE: [r] How to pick colums from a ragged array? Hi Rui's answer brought me to m

Re: [R] [r] How to pick colums from a ragged array?

2012-10-23 Thread Stuart Leask
ates, they are not the first date. -Original Message- From: arun [mailto:smartpink...@yahoo.com] Sent: 23 October 2012 14:29 To: Stuart Leask Cc: R help Subject: Re: [R] [r] How to pick colums from a ragged array? Hi, Also one more thing: This should get the dates which are duplicated. In

[R] FW: [r] How to pick colums from a ragged array?

2012-10-23 Thread Stuart Leask
frame list [2,] 2 data.frame list [3,] 2 data.frame list This leaves me with the same problem I had with my ragged array i.e. how do I put all the second elements from this long list of data frames, into a single list? I need to end up with a list of all the IDs that have duplicate first (or last

Re: [R] FW: [r] How to pick colums from a ragged array?

2012-10-23 Thread Stuart Leask
So I get my list of IDs to exclude from: g.rr<-do.call(rbind, g.r)[1] dim(g.rr) g.rr[1:(dim(g.rr)[1]/2)] Many thanks. Stuart -Original Message- From: Rui Barradas [mailto:ruipbarra...@sapo.pt] Sent: 23 October 2012 13:42 To: Stuart Leask Cc: r-help@r-project.org Subject: Re: FW:

Re: [R] [r] How to pick colums from a ragged array?

2012-10-24 Thread Stuart Leask
iest/first date function, INCLUDE should be TRUE, apart from FALSE for _all_ the instances of IDs 167, 841 and 1019 For the latest/last date function, INCLUDE should be TRUE, apart from FALSE for all the instances of ID 323. Stuart -Original Message- From: arun [mailto:smartpink...@yaho

Re: [R] [r] How to pick colums from a ragged array?

2012-10-26 Thread Stuart Leask
INCLUDE.FIRST), then on a separate run to consider the last date (to produce e.g. INCLUDE.LAST). -Original Message- From: arun [mailto:smartpink...@yahoo.com] Sent: 25 October 2012 12:32 To: Stuart Leask Cc: R help; Petr PIKAL Subject: Re: [r] How to pick colums from a ragged array? Hi

Re: [R] [r] How to pick colums from a ragged array?

2012-10-26 Thread Stuart Leask
Many thanks! Stuart -Original Message- From: arun [mailto:smartpink...@yahoo.com] Sent: 26 October 2012 13:54 To: Stuart Leask Cc: R help; Petr PIKAL Subject: Re: [r] How to pick colums from a ragged array? Hi Stuart, I guess, this should do it. fun1H<-function(dat){ res1H

[R] Conditionally constructing columns in a data frame

2010-06-29 Thread Stuart Luppescu
ead100, read110, read111) Isn't there an easier way to do this? Thanks. -- Stuart Luppescu University of Chicago __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.

Re: [R] Conditionally constructing columns in a data frame

2010-06-29 Thread Stuart Luppescu
06.0448 -6.98104 1.02349 0.65789 NANA NANA 100 524 215.9634 2.93754 0.37856 0.01297 NANA NA NA 100 -- Stuart Luppescu University of Chicago __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/l

Re: [R] How to determine if R is 64 bit compiled under Unix-alike?

2010-07-05 Thread Stuart Luppescu
which is /usr/lib64/R/bin/exec/R (don't know if this is the same in Ubuntu). File then gives: file /usr/lib64/R/bin/exec/R /usr/lib64/R/bin/exec/R: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped -- Stuart Luppescu -*-

Re: [R] How to determine if R is 64 bit compiled under Unix-alike?

2010-07-05 Thread Stuart Luppescu
em? If you can find the object files, you can test them with file as before, for example: file /usr/lib64/R/library/MASS/libs/MASS.so /usr/lib64/R/library/MASS/libs/MASS.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped -- Stuart Luppescu -=- slu .at. ccsr.uc

Re: [R] Multilevel IRT Modelling

2010-07-14 Thread Stuart Luppescu
the Journal of Statistical Software focusing on psychometrics in R. It has a lot of valuable information. http://www.jstatsoft.org/v20 -- Stuart Luppescu -=- slu .at. ccsr.uchicago.edu University of Chicago -=- CCSR 才文と智奈美の父 -=-Kernel 2.6.33-gentoo-r2 To paraphrase provocati

[R] peak detection

2010-12-13 Thread Joe Stuart
Hi, I was wondering if anyone knows of a package that contains the ability for peak/valley detection. Here is an example of what I'm looking for, only problem is that it's written in Matlab. http://www.billauer.co.il/peakdet.html Thanks for any help in advance. -Joe

Re: [R] peak detection

2010-12-13 Thread Joe Stuart
Never mind. I did find this package, which seems to do the trick. Thanks http://rgm2.lab.nig.ac.jp/RGM2/R_man-2.9.0/library/msProcess/man/msExtrema.html On Mon, Dec 13, 2010 at 9:05 PM, Joe Stuart wrote: > Hi, > I was wondering if anyone knows of a package that contains the ability >

Re: [R] peak detection

2010-12-14 Thread Joe Stuart
el > > On 14 December 2010 14:22, Joe Stuart wrote: >> Never mind. I did find this package, which seems to do the trick. Thanks >> >> http://rgm2.lab.nig.ac.jp/RGM2/R_man-2.9.0/library/msProcess/man/msExtrema.html >> >> On Mon, Dec 13, 2010 at 9:05 PM, Joe S

[R] Ordering box plots

2011-01-23 Thread Stuart Luppescu
r. I even tried this: boxplot(meas.tab[,meas] ~ as.ordered(meas.tab$by.schl.plot.order) but that didn't do any better. I would think people would want to do this all the time. There must be an easy way to do it but I can't figure it out. Can anyone help me? -- Stuart Luppescu -=- slu .at. c

Re: [R] Ordering box plots

2011-01-24 Thread Stuart Luppescu
On Sun, 2011-01-23 at 17:37 -0600, Stuart Luppescu wrote: [snip] Thanks to Ben and Dennis for their help, but right after I sent the original message, I figured out how to solve my problem. I noticed that boxplot() contains the at= argument. To get the box locations, I used a line like this

Re: [R] offlist comment Re: KS Test question (2)

2010-08-05 Thread Stuart Luppescu
e of the most prolific, unselfish, and helpful contributors to this list. I often wonder how he finds time to post all these enlightening comments and do his own work. You would be better off to take advantage off his advice, and not spurn it. -- Stuart Luppescu -=- slu .at. ccsr.uchicago.edu

Re: [R] which one give clear picture-pdf, jpg or tiff?

2010-08-20 Thread Stuart Luppescu
it > as from there. Woah. That's really involved. I use this little shell function to convert from ps to png: function ps2png { ps_file="$1" png_file=`echo "$ps_file" | sed -e 's/\.ps$/.png/'` gs -dQUIET -dNOPAUSE -dBATCH -sDEVICE=png16m -sOutputFi

Re: [R] trajectory plot (growth curve)

2010-08-23 Thread Stuart Luppescu
le, entitled, "Fitting Value-added Models in R", by Harold Doran, is relevant and very useful and interesting. www-stat.stanford.edu/~rag/ed351longit/doran.pdf -- Stuart Luppescu -=- slu .at. ccsr.uchicago.edu University of Chicago -=- CCSR 才文と智奈美の父 -=-Kernel 2.6.33-gentoo-r2

[R] [semi-OT] Using fortune() in an email signature

2010-09-01 Thread Stuart Luppescu
producer); exit(EXIT_FAILURE); } Unfortunately, I don't understand this at all. Can anyone give me a clue as to what's happening? Thanks. -- Stuart Luppescu -=- slu .at. ccsr.uchicago.edu University of Chicago -=- CCSR 才文と

Re: [R] [semi-OT] Using fortune() in an email signature

2010-09-01 Thread Stuart Luppescu
simple, but thanks for writing anyway. -- Stuart Luppescu -=- slu .at. ccsr.uchicago.edu University of Chicago -=- CCSR 才文と智奈美の父 -=-Kernel 2.6.33-gentoo-r2 Have you ever wanted to write a book, but not known where to start? Now is a very good time to jump in, because the

[R] Pipe

2010-05-25 Thread Joe Stuart
Hi, I'm trying to use the pipe function to read data from another process on my server. Here is the code I have tried. con <- pipe("/var/matlab/scripts/stream.pl") while(con_read <- readLines(con)) { print(con_read) } Problem is that the data from the perl script just keeps appending to con_re

Re: [R] Pipe

2010-05-26 Thread Joe Stuart
Thanks for the info. I'll give that a try. On May 25, 2010, at 5:36 PM, jim holtman wrote: readLines will read until it reached an end-of -file. try readLines(con, n=1) to read one line at a time an then process it. On Tue, May 25, 2010 at 2:07 PM, Joe Stuart wrote: Hi, I

[R] Apply Function To Each Row of Matrix

2011-02-14 Thread Stuart Jaffe
Hi, I have a matrix with about 3000 rows, and 1 column. The contents of the matrix are stock symbols (IBM, AAPL, etc) for instance. I also have a function that takes a single stock symbol as an argument, parses the text of Google Finance and returns the related stock symbols that the page has l

[R] Write File to Shared Drive

2011-02-15 Thread Stuart Jaffe
Hi, I'm trying to write a file to a shared drive on a network. I use the "write.csv" function with the correct path but R doesn't recognize the directory. Is there something different I have to do since it's a shared drive? Thanks. [[alternative HTML version deleted]]

[R] Linear Regression on data from FRED

2011-02-22 Thread Stuart Snell
B + 0, data = t, drop.unused.levels = TRUE) : * * variable lengths differ (found for 'secB')* I thought the merge would match up dates in secA and secB, therefore making the different lengths of secA and secB irrelevant. Any ideas Thanks Stuart *Stuart* *t: 01483 212979 m: 07766 57

[R] How can I 'predict' from an nls model with a fit specified for separate groups?

2011-04-20 Thread Stuart Rosen
an only seem to get the predictions for the 1st specified level of the grouping variable. I promise that I have read the documentation, and have tried a number of things, but cannot get the correct predictions. Thank you for any help. Yours - Stuart -- /*-----

[R] Stymied by plyr

2011-04-20 Thread Stuart Luppescu
ns but with no success. Can someone give me some pointers? Thanks. -- Stuart Luppescu -=- slu .at. ccsr.uchicago.edu University of Chicago -=- CCSR 才文と智奈美の父 -=- Kernel 2.6.36-gentoo-r5 Lars Strand: Will R run under Windows Pocket PC? Brian D. Ripley: We don't know! There are no binary ver

[R] Assignment working differently inside ifelse()

2011-08-16 Thread Stuart Luppescu
00 0. 0. Can anyone explain this to me? Also, is there an easier, less clumsy way to test for the existence of a row in a data frame? Thanks in advance. -- Stuart Luppescu -=- slu .at. ccsr.uchicago.edu University of Chicago -=- CCSR 才文と智奈美の父 -

Re: [R] Assignment working differently inside ifelse()

2011-08-16 Thread Stuart Luppescu
On Tue, 2011-08-16 at 12:10 -0500, Stuart Luppescu wrote: > but when I use the ifelse() as above, I get this: >[,1] [,2] [,3] [,4] > [1,] 0.0417 0.0417 0.0417 0.0417 > [2,] 0. 0. 0. 0. Oh, I see. ifelse

[R] Rotating characters in text

2012-06-12 Thread Stuart Rosen
For labelling a plot, I am trying to rotate a character string using text() so that characters are upright and reading down, for example, ... L i k e t h i s . It appears that par crt does not work with text. Does anyone have any other suggestions. Thanks! Yours - Stuart Rosen

Re: [R] removing NA from a data frame

2012-06-22 Thread Stuart Leask
89576 5 > dim(ex10ss) [1] 2189576 5 Nothing seems to have changed. I want all the rows with NA in removed. I am clearly doing something wrong. The only alternative I could find is pretty similar: use <- complete.cases ( ex10 ) ex10ss<-ex10s[use,] which leads to the same result.

[R] 'symbols' not plotting correct circle radii

2012-07-18 Thread Stuart Leask
logy!) to compare the radius with the axes, the circle isn't radius 40; it is closer to 15... I suspect there is a simple answer. Stuart This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in erro

Re: [R] 'symbols' not plotting correct circle radii

2012-07-19 Thread Stuart Leask
(Oh, and yes I've tried setting 'inches=F', but I then get a circle correct on X axis, but too large on the Y axis.) -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Stuart Leask Sent: 18 July 2012 11:03 To: r-hel

Re: [R] 'symbols' not plotting correct circle radii

2012-07-19 Thread Stuart Leask
the list if it starts happening again. Stuart -Original Message- From: Leask Stuart Sent: 19 July 2012 10:59 To: r-help@r-project.org Subject: RE: 'symbols' not plotting correct circle radii (Oh, and yes I've tried setting 'inches=F', but I then get a circle

Re: [R] 'symbols' not plotting correct circle radii

2012-07-19 Thread Stuart Leask
You're right - easily tested by just re-sizing the graphics box - sort of counter-intuitive until I remember the clue is in the name - this generates a CIRCLE, come what may... Stuart From: Sarah Goslee [mailto:sarah.gos...@gmail.com] Sent: 19 July 2012 11:18 To: Stuart Leask Cc: r-h

[R] Need help with table() and apply()

2011-11-20 Thread Stuart Luppescu
eping the levels with 0 counts: $ rating.6 : 'table' int [1:4(1d)] 7 1 2 0 ..- attr(*, "dimnames")=List of 1 .. ..$ : chr [1:4] "1" "2" "3" "4" But I really want tables of the rows. Do I have to write my own function to count the numbers

Re: [R] Need help with table() and apply()

2011-11-20 Thread Stuart Luppescu
. > > - attr(*, "dimnames")=List of 2 > > ..$ : NULL > > ..$ : chr [1:10] "rating.1" "rating.2" "rating.3" "rating.4" ... > >> > > > > notice it is just an integer array. > > > > Also if you h

[R] can't find 'predict.loess' in a loop

2011-12-22 Thread Stuart Leask
odd, because if I use RB & LB from a different dataset, it works fine... Stuart * * Original problem: > j<-0 # start an iteration counter > while(j<30)

[R] time series - cbind

2011-10-28 Thread Joe Stuart
Hi, I have a time series ts.score that gets created based on a function. When I print the time series out it prints two rows, first the date then the value. 2011-06-14 -1.25947868 The function gets called multiple times in my script and I'm trying to append the time series to an object called ts.

Re: [R] time series - cbind

2011-10-28 Thread Joe Stuart
I will. Thanks On Fri, Oct 28, 2011 at 10:18 AM, David Winsemius wrote: > > On Oct 28, 2011, at 10:32 AM, Joe Stuart wrote: > >> Hi, >> I have a time series ts.score that gets created based on a function. >> When I print the time series out it prints two rows, first

[R] Order of terms in formula changes aov() results

2012-03-22 Thread Stuart Luppescu
4 1523 1406 Now obsid.f only has 3 degrees of freedom and the sum of squares is 0.00. Could this be due to the unbalanced design? If someone can explain this to me I would be very grateful. -- Stuart Luppescu -=- slu .at. ccsr.uchicago.edu University of Chicago

[R] Mac woes

2009-01-08 Thread Stuart Vyse
ing? Any suggestions? SV Stuart Vyse Professor Box 5621 web: http://www.stuartvyse.com Department of PsychologyPhone: 860-439-2339 Connecticut College FAX 860-439-5300 New London, CT 06320 email: stuart.v...@conncoll.edu

[R] R Help

2009-02-12 Thread Stuart Jaffe
Hi, I have a list of numbers (classified as a list) that contains integer(0) empty vectors. How do I convert those integer(0) into NAs? Thanks [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mail

[R] R loess vs. Matlab loess

2008-01-30 Thread Stuart Leask
ing M estimator does!) I know, a health warning has to surround results that are differing a lot simply due to exact parameters used, but it would be nice to confirm/deny the lines are looking different for this reason. Dr Stuart J Leask DM MRCPsych MA BChir Senior Lecturer and Honorary Cons

[R] How can I generate a random order?

2008-11-12 Thread Stuart Leask
but I can't seem to find the right combination of order/sort/sample + runif. I fear it can't be that hard - has anyone cracked this? Stuart Dr Stuart J Leask DM MRCPsych MA BChir Clinical Senior Lecturer and Honorary Consultant in Clinical Psychiatry University Dept of Psychiatry, A

[R] Multiple Hexbinplots in 2 columns with a Single Categorical Variable

2009-04-08 Thread Dr Stuart Reece
. The code I have written is as follows. I would be ever so grateful for any advice anyone may be able to offer. With best wishes, Stuart Reece, Australia. useOuterStrips(hexbinplot(Transferin ~ Age | factor(Race) + factor(Sex), data = NHANES, type = "r",

[R] locfit and latest R version

2008-10-31 Thread Stuart Barker (Prof)
appreciate any advice. Many thanks Stuart Barker J.S.F. (Stuart) Barker HonDSc FTSE Emeritus Professor School of Environmental and Rural Science University of New England Armidale, NSW 2351 Australia Honorary Professor School of Integrative Biology University of Queensland Brisbane HOME: 114

[R] Presenting Hazard ratios for interacting variables in a Cox model

2016-11-18 Thread Stuart Patterson via R-help
the three variables. How do I get R to give me these values please? I think that the contrast function does this for other models but does not work for coxph? Grateful for any suggestions Best wishes Stuart Patterson, Royal Veterinary College, University of London [[alternative HTML vers

Re: [R] Presenting Hazard ratios for interacting variables in a Cox model

2016-11-21 Thread Stuart Patterson via R-help
ow is how I feel that I ought to present my results. If anyone has any suggestions on how to obtain these values I would be very grateful! Cheers Stuart Variable Hazard Ratio 95% Confidence Interval p Value Year Prev. TB Age 2002-2005 No < 24 months 24-48 months >48 months Yes < 2