Re: [R] computing distance in miles or km between 2 street addre

2007-09-06 Thread David Scott
. David Scott _ David Scott Department of Statistics, Tamaki Campus The University of Auckland, PB 92019 Auckland 1142,NEW ZEALAND Phone: +64 9 373 7599 ext 86830 Fax: +64 9 373 7000

Re: [R] Excel

2007-08-30 Thread David Scott
On Thu, 30 Aug 2007, Duncan Murdoch wrote: On 8/28/2007 3:16 AM, J Dougherty wrote: On Monday 27 August 2007 22:21, David Scott wrote: On Tue, 28 Aug 2007, Robert A LaBudde wrote: If you format the column as Text, you won't have this problem. By leaving the cells as General, you leave it up

[R] Excel

2007-08-27 Thread David Scott
at it. In the column of ID codes I saw: Aug-99. Clicking on that entry it showed 1/08/2699. In a column of character data, Excel had interpreted AUG2699 as a date. The .csv did not actually have a date in that cell, but if I had saved the .csv file it would have. David Scott

Re: [R] Excel

2007-08-27 Thread David Scott
as Aug-99. Most bizarre is that the NHI value of AUG1838 has *not* been interpreted as a date. David Scott You will note that the conversion to a date occurs immediately in Excel when you enter the value. There are many formats to enter dates. Either pre-format the column as Text, or prefix

[R] Recoding

2007-06-11 Thread David Scott
approach for these problems? David Scott _ David Scott Department of Statistics, Tamaki Campus The University of Auckland, PB 92019 Auckland 1142,NEW ZEALAND Phone: +64 9 373 7599 ext 86830

[R] RODBC and Date/Time variables

2007-05-28 Thread David Scott
in advance David Scott _ David Scott Department of Statistics, Tamaki Campus The University of Auckland, PB 92019 Auckland 1142,NEW ZEALAND Phone: +64 9 373 7599 ext 86830 Fax: +64 9 373 7000

Re: [R] Randomly extract rows from a data frame

2007-02-18 Thread David Scott
91 4.6 76 6 23 56 NA 135 8.0 75 6 25 62135 269 4.1 84 7 1 86108 223 8.0 85 7 25 12847 95 7.4 87 9 5 13521 259 15.5 76 9 12 137 9 24 10.9 71 9 14 David Scott

Re: [R] NEWBIE: @BOOK help?

2007-02-08 Thread David Scott
including the Current Index to Statistics (http://www.statindex.org/CIS/) can output bibliographic details in BibTeX format. You can obtain the reference in BibTeX form from the database and easily incorporate it into your document or private BibTeX database of references. David Scott

Re: [R] if(){} else{}

2006-12-05 Thread David Scott
://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. _ David Scott Visiting (Until January 07

Re: [R] Log-scale in histogramm

2006-10-13 Thread David Scott
package HyperbolicDist, and an updated one on my web page: http://www.stat.auckland.ac.nz/~dscott/Rpackage/NewFunctions/logHist.R David Scott _ David Scott Visiting (Until January 07) Department of Probability

Re: [R] VGAM Package ?

2006-10-05 Thread David Scott
. _ David Scott Visiting (Until January 07) Department of Probability and Statistics The University of Sheffield The Hicks Building Hounsfield Road Sheffield S3 7RH

[R] Tabulation and missing values

2006-10-04 Thread David Scott
, is.na=NA) ### I can tabulate with categories in the desired order table(EthnicFactor[,drop=TRUE]) ### But I can't seem to include the missing observations table(EthnicFactor,exclude=NULL) David Scott _ David Scott Visiting (Until

Re: [R] What is the matrix version of min()

2006-09-06 Thread David Scott
0.1739074 David Scott _ David Scott Visiting (July 06 to January 07) Department of Probability and Statistics The University of Sheffield The Hicks Building Hounsfield

[R] Lattice plot with fitted curves

2006-09-01 Thread David Scott
give an error (most of my other attempts did), and draws the panels correctly with the original data, but doesn't draw the fitted lines. paraslm1 is my fitted linear model with cubics for each location. David Scott _ David Scott

Re: [R] Lattice plot with fitted curves

2006-09-01 Thread David Scott
On Fri, 1 Sep 2006, Deepayan Sarkar wrote: On 9/1/06, David Scott [EMAIL PROTECTED] wrote: I have some data which consists of time series for a number of sites. It appears that there is not much autocorrelation in the data and I have fitted a cubic for each site using lm. I would like

[R] ASC/NZSA 2006 - Detailed Program Available via the Website

2006-05-24 Thread David Scott
Australian Statistical Conference / New Zealand Statistical Association Conference 'Statistical Connections' SKYCITY, Auckland, New Zealand 3 - 6 July 2006 LESS THAN TWO MONTHS TO GO Register Online Now! Register now for ASCNZ06 - an international conference with a full and varied

Re: [R] general Gauss-Newton or support for NSUR: contemporaneously correlated non-linear models

2006-05-24 Thread David Scott
-Stage Least Squares (W3SLS). David Scott _ David Scott Department of Statistics, Tamaki Campus The University of Auckland, PB 92019 AucklandNEW ZEALAND Phone: +64 9 373 7599 ext 86830

Re: [R] Plotting positions in qqnorm?

2006-04-14 Thread David Scott
Scott _ David Scott Department of Statistics, Tamaki Campus The University of Auckland, PB 92019 AucklandNEW ZEALAND Phone: +64 9 373 7599 ext 86830 Fax: +64 9 373 7000 Email: [EMAIL

Re: [R] extremely simple for loop question

2006-04-12 Thread David Scott
is the syntax for doing that? I had been doing a loop for m in 1:20, but I only want those values above. Thanks, Brian An easy one that doesn't need an answer from Gabor for (m in c(1,5,10,15,20)){ print(m) } or for (m in c(1,5*(1:4))){ print(m) } David Scott

Re: [R] argv[0] --- again

2006-04-03 Thread David Scott
to this list are second to none. He has my vote of appreciation. David Scott _ David Scott Department of Statistics, Tamaki Campus The University of Auckland, PB 92019 AucklandNEW ZEALAND

Re: [R] head function

2006-04-02 Thread David Scott
the unix operating system commands head and tail which were particularly useful in examining files in the days before gui editors and such fancy new-fangled things. David Scott _ David Scott Department of Statistics, Tamaki Campus

Re: [R] shift / rota

2006-03-09 Thread David Scott
On Thu, 9 Mar 2006, Omar Lakkis wrote: How to do a shift/rotate os a list? if a = c(1,2,3) what is the best way to make a equal c(3,1,2) a - c(a[length(a)],a[-length(a)]) or n - length(a) a - c(a[n],a[-n]) David Scott

Re: [R] LaTeX in R graph

2006-02-28 Thread David Scott
of the use of psfrag in the file Lecture Slides on TeX which is on the page: http://www.stat.auckland.ac.nz/~dscott/782/index.php David Scott _ David Scott Department of Statistics, Tamaki Campus The University

Re: [R] read.table

2006-02-13 Thread David Scott
having to load the package. David Scott _ David Scott Department of Statistics, Tamaki Campus The University of Auckland, PB 92019 AucklandNEW ZEALAND Phone: +64 9 373 7599 ext 86830

[R] Errors using update.packages()

2006-02-11 Thread David Scott
installing in my private library: stat71/dscott10 echo $R_LIBS /home/staff/dscott/Computing/R/Rprivatelib Any suggestions? David Scott _ David Scott Department of Statistics, Tamaki Campus The University of Auckland, PB

Re: [R] X11 error in png

2005-11-16 Thread David Scott
with your path (e.g. the directories it specifies don't exist) I think you will get this error. Check your path to make sure it is ok. David Scott *** Original post *** From: Jack Zhu yz8_at_georgetown.edu Date: Thu 17 Nov 2005 - 08:47:27 EST

Re: [R] Help with try or tryCatch

2005-11-01 Thread David Scott
) } This approach worked. I had to define a test function of this sort outside of the loops and then call it within the loops with appropriate parameter values. Thanks for the assistance. David Scott --- David Scott Department of Statistics, Tamaki

[R] Help with try or tryCatch

2005-10-31 Thread David Scott
restart which jumps to the top level, and I am guessing that that is what is happening. What I can't see is how to get the computation to restart from the error and just continue through the loop. Any suggestions or pointers would be most welcome. David Scott

Re: [R] identity matrix

2005-10-30 Thread David Scott
://en.wikipedia.org/wiki/Floating_point David Scott _ David Scott Department of Statistics, Tamaki Campus The University of Auckland, PB 92019 AucklandNEW ZEALAND Phone: +64 9 373 7599 ext 86830

Re: [R] Graphical presentation of logistic regression

2005-09-14 Thread David Scott
package HyperbDist (or a more recent version logHist.R on my homepage at http://www.stat.auckland.ac.nz/~dscott/) David Scott _ David Scott Department of Statistics, Tamaki Campus The University of Auckland, PB 92019

Re: [R] Multivariate Skew Normal distribution

2005-09-01 Thread David Scott
. There also appear to be some skew normal and skew t tools in RMetrics (in FSeries and fPortfolio). What is not clear is why Caio keeps asking the same question when I emailed him the name of the package yesterday. David Scott _ David

Re: [R] barplots - text direction

2005-08-23 Thread David Scott
it. Note: colnames(h) not colnames(g) David Scott _ David Scott Department of Statistics, Tamaki Campus The University of Auckland, PB 92019 AucklandNEW ZEALAND Phone: +64 9 373 7599 ext

Re: [R] A Question About Inverse Gamma

2005-07-21 Thread David Scott
at wikipedia http://en.wikipedia.org/wiki/Inverse-gamma_distribution It seems the one line of the function should be: return(1/rgamma(n, shape, 1/scale) Or you could of course throw caution to the winds and write your own rinvgamma using rgamma :-) David Scott

Re: [R] superscript in figures - basic question

2005-06-13 Thread David Scott
(m2/ha) but I want the 2 to be superscripted. Thanks in advence for the help, or for pointing out the appropriate help file. ?plotmath _ David Scott Department of Statistics, Tamaki Campus The University

[R] POSIX problem

2005-05-31 Thread David Scott
for some of the days (as in 7/12/2001). This doesn't phase as.Date though. David Scott _ David Scott Department of Statistics, Tamaki Campus The University of Auckland, PB 92019 Auckland

Re: [R] sample function

2005-03-10 Thread David Scott
in the histogram. Try temp -sample(0:12, 2000, replace=T,prob=(rep(1/13,13))) table(temp) David Scott _ David Scott Department of Statistics, Tamaki Campus The University of Auckland, PB 92019 AucklandNEW

Re: [R] sample function

2005-03-10 Thread David Scott
(temp)) David Scott _ David Scott Department of Statistics, Tamaki Campus The University of Auckland, PB 92019 AucklandNEW ZEALAND Phone: +64 9 373 7599 ext 86830 Fax: +64 9 373 7000

Re: [R] How about a mascot for R?

2004-12-02 Thread David Scott
not be warmly received by New Zealanders. (To clarify, despite the address, I am Australian.) My suggestion is the Kea: inquisitive and intelligent. See: http://www.doc.govt.nz/Conservation/001~Plants-and-Animals/001~Native-Animals/Kea.asp David Scott

Re: [R] rhyp function from fBasics

2004-11-21 Thread David Scott
at the package HyperbolicDist David Scott _ David Scott Department of Statistics, Tamaki Campus The University of Auckland, PB 92019 AucklandNEW ZEALAND Phone: +64 9 373 7599 ext 86830 Fax: +64 9

Re: [R] Slightly off-topic --- distribution name.

2004-09-15 Thread David Scott
the distribution. David Scott On Wed, 15 Sep 2004, Rolf Turner wrote: I've built R functions to ``effect'' a particular distribution, and would like to find out if that distribution is already ``known'' by an existing name. (I.e. suppose it were called the ``Melvin'' distribution --- I've built dmelvin

Re: [R] Plotting groupedData objects

2004-08-26 Thread David Scott
On Thu, 26 Aug 2004, Deepayan Sarkar wrote: Quoting David Scott [EMAIL PROTECTED]: On Thu, 26 Aug 2004, Deepayan Sarkar wrote: Quoting David Scott [EMAIL PROTECTED]: I am trying to create a plot similar to Figure 3.2 in Bates and Pinheiro. I have repeated

Re: [R] Plotting groupedData objects

2004-08-26 Thread David Scott
On Thu, 26 Aug 2004, Deepayan Sarkar wrote: Quoting David Scott [EMAIL PROTECTED]: I am trying to create a plot similar to Figure 3.2 in Bates and Pinheiro. I have repeated measurements on about 80 subjects from 2 treatment groups. I would like to have the panels for the two

[R] Plotting groupedData objects

2004-08-25 Thread David Scott
=Elapsed time,y=Airways resistance), units=list(x=(hours),y=cm H20/L/sec)) I guess I could just plot the two treatment groups separately in turn but I feel there is something I am missing. I am using 1.9.1 on Windows XP. David Scott

[R] Time zones

2004-08-08 Thread David Scott
too. David Scott _ David Scott Department of Statistics, Tamaki Campus The University of Auckland, PB 92019 AucklandNEW ZEALAND Phone: +64 9 373 7599 ext 86830 Fax: +64 9 373 7000 Email

Re: [R] text editor for R

2004-07-07 Thread David Scott
two shortcuts to WinEdt, one for your TeX stuff, one for R. Uwe Ligges is the guru for this though. David Scott David Scott Department of Statistics, Tamaki Campus The University of Auckland, PB 92019

Re: [R] a question on useage of table

2004-06-22 Thread David Scott
David Scott _ David Scott Department of Statistics, Tamaki Campus The University of Auckland, PB 92019 AucklandNEW ZEALAND Phone: +64 9 373 7599 ext 86830 Fax: +64 9 373 7000

Re: [R] Different results

2004-05-27 Thread David Scott
there is only one degree of freedom for x. David Scott _ David Scott Department of Statistics, Tamaki Campus The University of Auckland, PB 92019 AucklandNEW ZEALAND Phone: +64 9 373

Re: [R] Error with 1.9.0 - Invalid HOMEDRIVE

2004-04-22 Thread David Scott
A quick question: has anybody encountered this error working on a desktop? Users here who have had problems are working on laptops, and laptops have been mentioned in other posts. Brian said he was unable to reproduce the problem. David Scott

Re: [R] Error with 1.9.0 - Invalid HOMEDRIVE

2004-04-21 Thread David Scott
for the inconvenience, included in a prompt to send an error report to Microsoft. For both versions, R fails to start at all. I'm running Windows XP Pro, and like David Scott I'm supposed to install the XP critical updates as soon as they come out, which I did last week. I suppose, given

Re: [R] Error with 1.9.0 - Invalid HOMEDRIVE

2004-04-20 Thread David Scott
Brett Melbourne, Postdoctoral Fellow Biological Invasions IGERT www.cpb.ucdavis.edu/bioinv Center for Population Biology, Storer Hall University of California Davis CA 95616 _ David Scott Department of Statistics, Tamaki Campus

Re: [R] how to replace NaN in a vector

2004-03-08 Thread David Scott
-1 -99924 -999 David Scott _ David Scott Department of Statistics, Tamaki Campus The University of Auckland, PB 92019 AucklandNEW ZEALAND Phone: +64 9 373 7599 ext 86830

Re: [R] importing SAS data

2003-10-29 Thread David Scott
it: http://www.r-project.org/nocvs/mail/r-help/2002/8604.html David Scott _ David Scott Department of Statistics, Tamaki Campus The University of Auckland, PB 92019 AucklandNEW ZEALAND Phone: +64

Re: [R] Re: diamond graphs and patents

2003-08-28 Thread David Scott
. Then again we may be the last bastion of open scientific enquiry. David Scott _ David Scott Department of Statistics, Tamaki Campus The University of Auckland, PB 92019 AucklandNEW

RE: [R] Diamond graphs

2003-08-21 Thread David Scott
who are not aware of Cleveland's work, it would be fair to say that you see his influence (and that of others from Bell Labs) every time you ask R to produce a graph. David Scott _ David Scott Department of Statistics, Tamaki

RE: [R] Confidence Band for empirical distribution function

2003-07-24 Thread David Scott
. It is a little more sophisticated in that it fits a spline in preference to linear interpolation, before using uniroot. Look at qhyperb if this is of interest. David Scott _ David Scott Department of Statistics, Tamaki Campus

[R] Package submission---HyperbolicDist

2003-07-22 Thread David Scott
the fit of the hyperbolic distribution to a set of data, the log-histogram is useful. David Scott _ David Scott Department of Statistics, Tamaki Campus The University of Auckland, PB 92019 Auckland

[R] Diagnostics for gee models

2003-06-12 Thread David Scott
of diagnostics should be considered or some R code for this sort of thing? I didn't find anything in recent mail archives, but did see a few people using geese from geepack instead of gee. A look at the manual for geepack didn't give me any leads on diagnostics though. David Scott

Re: [R] R CMD check .

2003-02-12 Thread David Scott
). Rcmd check makes a directory called libname.Rcheck. Inside that you will find a .Rout file which gives a log of the examples. If I understand the pattern it is called libname-Ed.Rout. Look at that file to see where the running of your examples failed. David Scott

Re: [R] R CMD check .

2003-02-12 Thread David Scott
Sorry, there was a typo in my answer: On Thu, 13 Feb 2003, David Scott wrote: . . . lots of stuff cut . . examples aren't actually being executed because most of them take a long time and the error is pretty much instantaneous). Rcmd check makes a directory called libname.Rcheck. Inside