search for: leask

Displaying 20 results from an estimated 45 matches for "leask".

Did you mean: least
2012 Jun 22
3
removing NA from a data frame
...) [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. Stuart Dr Stuart John Leask DM FRCPsych MB Mchir 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.leask@nottingham.ac.uk<mailto:stuart.leask@nottingham.ac.uk> Google 'Dr Stuart Leask'...
2012 Oct 23
10
How to pick colums from a ragged array?
...step: I would like to get the data out of the ragged array by columns (so e.g. I end up with a matrix of ID, 1st DATE, 2nd DATE). But I can't get the dates out by column from the ragged array. I hope 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.leask@nottingham.ac.uk<mailto:stuart.leask@nottingham.ac.uk> Google 'Dr Stuart Leask...
2006 Nov 24
2
Diebold Mariano Test
Dear List Has anyone used R to distnguish between alternative forecasting models? In particular is the Diebold Mariano test available for use within R. Any assistance would be greatly appreciated. Graham Leask Lecturer in Strategy Economics & Strategy Group Aston University Aston Triangle Birmingham B4 7ET Tel: 0121 204 3150 E Mail: g.leask at aston.ac.uk
2007 Feb 09
2
RE gap statistic in cluster analysis
Has anyone implemented Tibrishani's gap statistic in R or S plus? If so I would greatly appreciate the relevant script file. Any help will be much appreciated Kind regards Dr Graham Leask Economics and Strategy Group Aston Business School Aston University Aston Triangle Birmingham B4 7ET Tel: Direct line 0121 204 3150 email g.leask@aston.ac.uk [[alternative HTML version deleted]]
2003 May 23
1
Fw: write.table only writes the first 256 variables/columns
...ving" an Excel import of the file - as you say, a re-import into R still has 333 columns. I shall look elsewhere for the cause of the mysterious truncation. Stuart > ----- Original Message ----- > From: "Thomas Lumley" <tlumley at u.washington.edu> > To: "Stuart Leask" <stuart.leask at nottingham.ac.uk> > Cc: "R-Help" <r-help at stat.math.ethz.ch> > Sent: Friday, May 23, 2003 2:50 PM > Subject: Re: [R] write.table only writes the first 256 variables/columns > > > > On Fri, 23 May 2003, Stuart Leask wrote: > >...
2003 Mar 06
1
[stuart.leask@nottingham.ac.uk: R in your pocket on a Sharp Zaurus]
.../hopit > ======================================== > ----- Original Message ----- > From: <david.whiting at ncl.ac.uk> > To: <setel.ammp at twiga.com>; "Nigel Unwin" <nigelunwin at hotmail.com> > Sent: Wednesday, March 05, 2003 9:15 AM > Subject: [stuart.leask at nottingham.ac.uk: [R] R in your pocket on a Sharp > Zaurus] > > > > Interesting... and Sharp are coming out with a clam-verison of this PDA > > (i.e. like this Psion 5MX). > > > > Dave > > -- > > David Whiting > > Adult Morbidity and Mortality...
2002 Jan 18
1
RE: z-scores for different factor levels
...lit(test,test$f) # create the standardized version of x1 subsets <- lapply(subsets, function(s) { s$x1s <- standardize(s$x1); s} ) # paste the results back together result <- data.frame() for(s in subsets) result <- rbind(result, s) -Greg -----Original Message----- From: Stuart Leask [mailto:stuart.leask at nottingham.ac.uk] Sent: Friday, January 18, 2002 5:33 AM To: r-help at stat.math.ethz.ch Subject: [R]: z-scores for different factor levels Hi there. I am trying to generate z-scores for a variable according to it's factor level, leaving this result in the original dat...
2007 Feb 17
1
help with cluster stopping rules
...i.e. one number for example 0.876) that gives the agreement between the structure of the data as interpreted by the clustering method and the original data? If anyone could let me know where I can find a script file for these functions I would greatly appreciate it. Kind regards Dr Graham Leask Economics and Strategy Group Aston Business School Aston University Aston Triangle Birmingham B4 7ET Tel: Direct line 0121 204 3150 email g.leask@aston.ac.uk [[alternative HTML version deleted]]
2006 Oct 21
1
Box M test
...tablished method for identification of stable strategic time periods within the strategic management literature and I would like the opportunity to use this method within either R or S plus. Any help would be gratefully received. Kind regards Graham Kind regards Dr Graham Leask Economics and Strategy Group Aston Business School Aston University Aston Triangle Birmingham B4 7ET Tel: Direct line 0121 204 3150 email g.leask@aston.ac.uk [[alternative HTML version deleted]]
2002 Jan 08
3
Finding functions in uninstalled libraries
...#39;car' package). I think I've been told this before, but how do I search for a function/keyword in libraries I don't yet have installed? (ie. on the CRAN site I tried the search engines with "recode" etc., but didn't pick up the car package this way) Stuart Dr Stuart Leask MA MB BChir (Cantab) MRCPsych Clinical Lecturer in Psychiatry, University of Nottingham Dept Psychiatry Duncan Macmillan House, Porchester Road, Nottingham. NG3 6AA. UK tel. 00 44 115 969 1300 xtn 40784 fax 0115 955 5352 www.nottingham.ac.uk/psychiatry/staff/sjl.html -.-.-.-.-.-.-.-.-.-.-.-.-.-.-...
2002 Jan 18
0
RE: z-scores for different factor levels
Brian Ripley pointed out that there is already an R function scale() that does the work of my standardize(). -Greg -----Original Message----- From: Warnes, Gregory R Sent: Friday, January 18, 2002 9:38 AM To: 'Stuart Leask' Cc: 'r-help at stat.math.ethz.ch' Subject: RE: z-scores for different factor levels Hi Stuart, I often use this small function standardize <- function(x) ( x - mean(x, na.rm=T) ) / sqrt(var(x, na.rm=T)) to standardize variables. You should be able to use this to do what you...
2013 Apr 06
2
Replace missing value within group with non-missing value
Dear List members I have a large dataset organised in choice groups see sample below +-------------------------------------------------------------------------------------------------+ | dn obs choice acid br date cdate situat~n mth year set |
2002 Feb 21
2
Re: Factor analysis of categorical or mixed categorical/continuousdata in
...data, latent class analysis for categorical data. I understand that in a package such as MPlus I could perform a single analysis of both data types. Are there similar routines available in R? Stuart -----Original Message----- From: Prof Brian Ripley <ripley at stats.ox.ac.uk> To: Dr Stuart Leask <stuart.leask at nottingham.ac.uk> Cc: r-help at stat.math.ethz.ch <r-help at stat.math.ethz.ch> Date: 21 February 2002 10:53 Subject: [R] Re: Factor analysis of categorical or mixed categorical/continuousdata in [R] >On Thu, 21 Feb 2002, Dr Stuart Leask wrote: > >> Are th...
2008 Mar 07
0
Time series panel
...I wish to regress temperature against vegetation and type how do I express this as a linear hierarchical model nesting postcode within group but keeping time as non nested (eg group x time) with calendar time as a group level predictor? Any help would be most appreciated. Graham Leask Kind regards Dr Graham Leask Economics and Strategy Group Aston Business School Aston University Aston Triangle Birmingham B4 7ET Tel: Direct line 0121 204 3150 Fax: 0870 759 8408 email g.leask@aston.ac.uk [[alternative HTML version deleted]]
2009 Dec 24
3
aggregate binary response data
Dear list I have a response variable coded 0/1 i.e. a binary response. There are 20,000 individual responses that I would like to aggregate into numbers of each category (i.e. 0/1) by group called dn (350 different groups) and by month mth (there are several hundred responses per month. What is the simplest way to perform this operation in R?
2012 Jul 18
3
'symbols' not plotting correct circle radii
Hi there. I have been plotting some circles using 'symbols', with radii representing my data, but the radii looked incorrect. It seems to happen with a single circle too: Symbols ( 0, 0, circles = 40, xlim = c(-40, 40), ylim= c(-40, 40)) If I put a ruler up to my monitor (technology!) to compare the radius with the axes, the circle isn't radius 40; it is closer to 15... I
2002 Nov 27
1
R on the Zaurus
Hello All, I have a working port of R on my SL5500. I've not tested the X windowing support yet, but was more concerned about the accuracy of the fp emulation. The following is the result of the test which Stuart Leask recommended I should try: Mandrake 8.2 > x<-NA > is.na(x) [1] TRUE > x+1 [1] NA > 2*x [1] NA Zaurus OZ3 > x<-NA > is.na(x) [1] TRUE > x+1 [1] 1 > 2*x [1] 8.29488e-311 Presumably this is the wrong answer. The question is whether it's the fault of the Zaurus'...
2001 Sep 18
4
help in a separate window under linux
...unction>') into a new window, whereas under linux, it puts it into the main console window. I find the former much more helpful when checking a function's syntax. Is there a simple way of configuring R under linux to put its help messages into a separate, new console? Stuart Dr Stuart Leask, Clinical lecturer, University of Nottingham Dept Psychiatry, Duncan Macmillan House, Porchester Road, Nottingham. NG3 6AA. UK tel. 0115 969 1300 x 40784 fax 0115 952 5352 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwi...
2001 Mar 23
0
Re: Finding functions (eg. 'lag')
Many thanks to those who gave me a loaf, and others who taught me how to fish! Stuart > > > From: "Dr Stuart Leask" <stuart.leask at nottingham.ac.uk> > > To: "R-help" <r-help at stat.math.ethz.ch> > > Subject: [R] 'lag' in R? > > Date: Thu, 22 Mar 2001 16:46:18 -0000 > > X-Priority: 3 > > X-MSMail-Priority: Normal > > X-MimeOLE: Produced By...
2001 Dec 03
0
Summary on R script editor
...ll.psych.upenn.edu (Jonathan Baron) ESS is the real answer to your question, and anything else has got to be more difficult. Nels Tomlinson <tomlinso at purdue.edu> Installing ESS on debian was as simple as apt-get install ess. David Lucy <dlucy at maths.ed.ac.uk> & "Stuart Leask" <stuart.leask at nottingham.ac.uk>: Nedit - quick, easy, supports X (ie. mouse-click) pasting. I use Nedit - http://nedit.org/ For pasting bits in a Linux environment use gpm which is brilliant. S David White <dwhite at ling.ohio-state.edu> I have good luck just using gedit in...