Re: [R] about fitting a regression line

2017-06-15 Thread Don McKenzie
Did you perhaps accidentally include your response as a predictor? > On Jun 15, 2017, at 12:48 PM, lily li wrote: > > Thanks for your replies. I tried the regression, but then got a NA value > for the slope. And here is the error message: > Coefficients: (1 not defined

Re: [R] seek non-black box alternative to randomForest

2017-05-31 Thread Don McKenzie
Though off-topic for this list, your question (complaint?) comes up a lot in discussions of analytical methods, and has generated hundreds of papers (Google is your friend here). You can start with https://www.quora.com/What-are-the-pros-and-cons-of-GLM-vs-Random-forest-vs-SVM

Re: [R] Tree plot with percentages and hierarchies

2016-06-08 Thread Don McKenzie
> On Jun 8, 2016, at 1:03 PM, Bert Gunter wrote: > > I am not really sure what you want, but it sounds like you want the > "rpart" package (which is part of the standard R distribution). I’m not sure either, but do you want to fit a model (in which case Bert’s

Re: [R] mixed-effects models with (g)lmer in R and model selection

2016-02-19 Thread Don McKenzie
This is a complicated and subtle statistical issue, not an R question, the latter being the purpose of this list. There are people on the list who could give you literate answers, to be sure, but a statistically oriented list would be a better match. e.g., http://stats.stackexchange.com/ >

Re: [R] Change the maximum likelihood of multinomial logic model in R

2015-08-28 Thread Don McKenzie
Have you looked at the help for mlogit.optim? At the minimum you need a likelihood function and starting value(s). If you don’t understand the function syntax you may have difficulty interpreting any output that you do get. On Aug 28, 2015, at 11:26 AM, Alaa Sindi alaasi...@gmail.com wrote:

Re: [R] Infinite Series

2015-07-25 Thread Don McKenzie
but you get a different hide with sum vs. cumsum. David is right if you want the sum of n terms. sum(1/(1:100)^2) - pi^2/6 [1] -0.009950167 sum(1/(1:1000)^2) - pi^2/6 [1] -0.0009995002 etc. On Jul 24, 2015, at 7:24 PM, Janh Anni annij...@gmail.com wrote: Wow! So many (simpler) ways to

Re: [R] Infinite Series

2015-07-24 Thread Don McKenzie
cumsum(1/(1:100)^2)[100] On Jul 24, 2015, at 4:37 PM, Janh Anni annij...@gmail.com wrote: Hello Jeff, Thanks a lot. I tried it and see that it prints out the entire 100 partial sums, so I can take the last value as the partial sum for the first 100 terms. Would there be any way cumsum

Re: [R] model non-integer count outcomes

2015-07-22 Thread Don McKenzie
21, 2015 at 11:41 PM, Don McKenzie d...@u.washington.edu wrote: Or if there are enough averages of enough counts, the CLT provides another option. On Jul 21, 2015, at 8:38 PM, David Winsemius dwinsem...@comcast.net wrote: On Jul 21, 2015, at 8:21 PM, Wensui Liu wrote: Dear Lister When

Re: [R] model non-integer count outcomes

2015-07-22 Thread Don McKenzie
Or if there are enough averages of enough counts, the CLT provides another option. On Jul 21, 2015, at 8:38 PM, David Winsemius dwinsem...@comcast.net wrote: On Jul 21, 2015, at 8:21 PM, Wensui Liu wrote: Dear Lister When the count outcomes are integers, we could use either Poisson or

Re: [R] glm help - final predictor variable NA

2015-07-21 Thread Don McKenzie
On Jul 21, 2015, at 7:30 PM, Rolf Turner r.tur...@auckland.ac.nz wrote: Psigh! Why do people think that it is perfectly OK to undertake statistical analyses without knowing or understanding any statistics? (I guess it's slightly less dangerous than undertaking to do your own wiring

Re: [R] jaccards index

2015-07-20 Thread Don McKenzie
Sarah Goslee’s package “ecodist” will compute a Jaccard index, I believe. You are unlikely to get much help, however, unless you provide more details as to what you are trying to accomplish. See http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example for how to

Re: [R] graphs, need urgent help (deadline :( )

2015-06-11 Thread Don McKenzie
/in/rosacsoliveira] Many admire, few know Hippocrates On 10 Jun 2015, at 18:10, Don McKenzie d...@u.washington.edu wrote: For a legend, try (untested) legend(0.15,0.9,c(factora,factorb,factorc),col=c(4,2,3),lty=1

Re: [R] graphs, need urgent help (deadline :( )

2015-06-10 Thread Don McKenzie
The answer lies in learning to use the help (and knowing where to start). Did you look at the tutorial that comes with the R installation? ?plot ?lines ?par In the last, look for the descriptions of “col” and “lty”. Using plot() and lines(), and subsetting the four unique values of

Re: [R] graphs, need urgent help [from Rosa Oliveira]

2015-06-10 Thread Don McKenzie
Tlm: +351 939355143 Linkedin: https://pt.linkedin.com/in/rosacsoliveira https://pt.linkedin.com/in/rosacsoliveira Many admire, few know Hippocrates On 09 Jun 2015, at 19:23, Don McKenzie d...@u.washington.edu

Re: [R] graphs, need urgent help (deadline :( )

2015-06-10 Thread Don McKenzie
...@gmail.com Tlm: +351 939355143 Linkedin: https://pt.linkedin.com/in/rosacsoliveira Many admire, few know Hippocrates On 10 Jun 2015, at 18:10, Don McKenzie d...@u.washington.edu wrote: For a legend, try

Re: [R] graphs, need urgent help (deadline :( )

2015-06-10 Thread Don McKenzie
https://pt.linkedin.com/in/rosacsoliveira Many admire, few know Hippocrates On 10 Jun 2015, at 18:10, Don McKenzie d...@u.washington.edu mailto:d...@u.washington.edu wrote: For a legend, try (untested

Re: [R] graphs, need urgent help (deadline :( )

2015-06-10 Thread Don McKenzie
belay that — something else is wrong On Jun 10, 2015, at 11:21 AM, Don McKenzie d...@u.washington.edu wrote: You need to substitute the real name of the data frame for “my.data”. That was just my example. :-) On Jun 10, 2015, at 11:03 AM, Rosa Oliveira rosit...@gmail.com mailto:rosit

Re: [R] graphs, need urgent help (deadline :( )

2015-06-10 Thread Don McKenzie
Many admire, few know Hippocrates On 10 Jun 2015, at 18:10, Don McKenzie d...@u.washington.edu mailto:d...@u.washington.edu wrote: For a legend, try (untested) legend(0.15,0.9,c(factora,factorb,factorc),col=c(4,2,3),lty=1) If it overlaps data points move the first two

Re: [R] graphs, need urgent help (deadline :( )

2015-06-10 Thread Don McKenzie
/in/rosacsoliveira https://pt.linkedin.com/in/rosacsoliveira Many admire, few know Hippocrates On 09 Jun 2015, at 19:23, Don McKenzie d...@u.washington.edu mailto:d...@u.washington.edu mailto:d...@u.washington.edu

Re: [R] graphs, need urgent help (deadline :( )

2015-06-10 Thread Don McKenzie
(IMO) On Jun 10, 2015, at 10:03 AM, Don McKenzie d...@u.washington.edu wrote: On Jun 10, 2015, at 9:08 AM, Rosa Oliveira rosit...@gmail.com mailto:rosit...@gmail.com wrote: Dear All, I attach my data. Dear Jim, when I run your code (even the one you send me, not in my data

Re: [R] Summing certain values within columns that satisfy a certain condition

2015-02-27 Thread Don McKenzie
Use Jeff’s solution. This doesn’t account for ties. On Feb 26, 2015, at 1:11 PM, Don McKenzie d...@u.washington.edu wrote: Kate — here is a transparent solution (tested but without NA treatment). Doubtless there are cleverer faster ones, which later posters will present. HTH

Re: [R] Summing certain values within columns that satisfy a certain condition

2015-02-26 Thread Don McKenzie
Kate — here is a transparent solution (tested but without NA treatment). Doubtless there are cleverer faster ones, which later posters will present. HTH # example with four columns and 20 rows nrows - 20 A - sample(c(1:100), nrows, replace=T) B - sample(c(1:100), nrows, replace=T) C -

Re: [R] data frame cumulative row sum

2014-12-08 Thread Don McKenzie
://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. Don McKenzie Research Ecologist Pacific Wildland Fire Sciences Lab US Forest Service Affiliate Faculty School

Re: [R] loops in R

2014-11-05 Thread Don McKenzie
]] __ 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. Don McKenzie Research Ecologist Pacific Wildland

Re: [R] Help with Lowess smoother

2014-10-26 Thread Don McKenzie
]] __ 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. Don McKenzie Research Ecologist

Re: [R] Is xyz point inside 3d convex hull?

2014-10-12 Thread Don McKenzie
and provide commented, minimal, self-contained, reproducible code. Don McKenzie Research Ecologist Pacific Wildland Fire Sciences Lab US Forest Service Affiliate Professor School of Environmental and Forest Sciences University of Washington d...@uw.edu

Re: [R] Using PCA to filter a series

2014-10-02 Thread Don McKenzie
/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Don McKenzie Research Ecologist Pacific WIldland Fire Sciences Lab US Forest Service Affiliate Professor School of Environmental and Forest Sciences College of the Environment University of Washington d...@uw.edu

Re: [R] Using PCA to filter a series

2014-10-02 Thread Don McKenzie
. Beyond that, there are many approaches to signal/noise relations within time-series analysis. I am not a good source of help on these, and you probably need a statistical consult (locally?), which is not the function of this list. Jonathan Thayn On Oct 2, 2014, at 2:33 PM, Don McKenzie d

Re: [R] Writing .csv file

2014-09-24 Thread Don McKenzie
the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Don McKenzie Research Ecologist Pacific Wildland Fire Sciences Lab US Forest Service Affiliate Professor School of Environmental and Forest Sciences University

Re: [R] simulation data in SEM

2014-09-14 Thread Don McKenzie
-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Don McKenzie Research Ecologist Pacific Wildland Fire Sciences Lab US Forest Service Affiliate Professor School of Environmental and Forest Sciences University of Washington d...@uw.edu

Re: [R] simulation data in SEM

2014-09-14 Thread Don McKenzie
in 1:10) { if (v[j]0) yo[i,j]-1 else yo[i,j]-0 } + + + #Input data set for WinBUGS + data-list(N=200,P=10,R=Ro,z=yo) + + } #end + also i cannot continue to get on a data. many thanks again Thanoon On 14 September 2014 18:41, Don McKenzie d

Re: [R] Euclidean Distance in 3 Dimensions

2014-08-21 Thread Don McKenzie
underneath to speed it up even in 2D. Not for the faint-of-heart to hack. Others? �dist3D�? On Aug 21, 2014, at 11:34 AM, Patzelt, Edward patz...@g.harvard.edu wrote: This function unfortunately does not work in 3d space. Thoughts? On Wed, Aug 20, 2014 at 4:57 PM, Don McKenzie d

Re: [R] Euclidean Distance in 3 Dimensions

2014-08-20 Thread Don McKenzie
-contained, reproducible code. Don McKenzie Research Ecologist Pacific Wildland Fire Sciences Lab US Forest Service Affiliate Professor School of Environmental and Forest Sciences University of Washington d...@uw.edu __ R-help@r-project.org mailing list

Re: [R] mutually exclusive events

2014-08-02 Thread Don McKenzie
, self-contained, reproducible code. Don McKenzie Research Ecologist Pacific Wildland Fire Sciences Lab US Forest Service Affiliate Professor School of Environmental and Forest Sciences University of Washington d...@uw.edu [[alternative HTML version deleted

Re: [R] Multiple plots and postscripts using split function

2014-07-31 Thread Don McKenzie
-guide.html and provide commented, minimal, self-contained, reproducible code. Don McKenzie Research Ecologist Pacific Wildland Fire Sciences Lab US Forest Service Affiliate Professor School of Environmental and Forest Sciences University of Washington d...@uw.edu [[alternative HTML version

Re: [R] structural equation models in R

2014-04-06 Thread Don McKenzie
http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Don McKenzie Research Ecologist Pacific Wildland Fire Sciences Lab US Forest Service Affiliate Professor School of Environmental and Forest Sciences University of Washington d...@uw.edu

Re: [R] grouping explanatory variables into sets for GLMM

2014-04-03 Thread Don McKenzie
. __ 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. Don McKenzie Research Ecologist Pacific WIldland Fire Sciences Lab US

Re: [R] mean help?

2014-02-12 Thread Don McKenzie
and provide commented, minimal, self-contained, reproducible code. Don McKenzie Research Ecologist Pacific Wildland Fire Sciences Lab US Forest Service Affiliate Professor School of Environmental and Forest Sciences University of Washington d...@uw.edu

Re: [R] xyplots in lattice - strange behaviour, possible bug?

2014-01-22 Thread Don McKenzie
On Jan 22, 2014, at 3:02 PM, Bert Gunter gunter.ber...@gene.com wrote: Well, if the professor wrote that, it wouldn't have run for him either! Fortune? Or just a great line? Don McKenzie Research Ecologist Pacific Wildland Fire Science Lab US Forest Service Affiliate Professor School

Re: [R] quantiles with approximately the same number of data points within each quantile?

2013-12-06 Thread Don McKenzie
? __ 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. Don McKenzie Research

Re: [R] specify breaks in divergent palette in RColorBrewer: was divergent colors around zero in levelplot()

2013-11-26 Thread Don McKenzie
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. Don McKenzie Research Ecologist Pacific Wildland Fire Science Lab US Forest Service Affiliate

Re: [R] Tukey, Bartlett

2013-11-26 Thread Don McKenzie
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. Don McKenzie Research Ecologist Pacific Wildland Fire Science Lab US Forest Service Affiliate Professor School

[R] specify breaks in divergent palette in RColorBrewer: was divergent colors around zero in levelplot()

2013-11-25 Thread Don McKenzie
a suggestion, even if it doesn’t work. :-) On Nov 22, 2013, at 10:25 PM, Bert Gunter gunter.ber...@gene.com wrote: Use the Rcolorbrewer package. -- Bert On Fri, Nov 22, 2013 at 8:43 PM, Don McKenzie d...@u.washington.edu wrote: I would like to produce a levelplot with divergent colors

Re: [R] specify breaks in divergent palette in RColorBrewer: was divergent colors around zero in levelplot()

2013-11-25 Thread Don McKenzie
Never mind. Solved. “cuts” argument back in levelplot(). Duh. On Nov 25, 2013, at 4:27 PM, Don McKenzie d...@u.washington.edu wrote: Bert or anyone else familiar with RColorBrewer: Has anyone tried to accomplish with RColorBrewer what I asked about in my original post (below)? Here

Re: [R] specify breaks in divergent palette in RColorBrewer: was divergent colors around zero in levelplot()

2013-11-25 Thread Don McKenzie
, 2013, at 4:27 PM, Don McKenzie d...@u.washington.edu wrote: Bert or anyone else familiar with RColorBrewer: Has anyone tried to accomplish with RColorBrewer what I asked about in my original post (below)? Here is an example cribbed from the levelplot() help examples x - seq(pi/4, 5

[R] divergent colors around zero in levelplot()

2013-11-22 Thread Don McKenzie
. Don McKenzie Research Ecologist Pacific Wildland Fire Sciences Lab US Forest Service Affiliate Professor School of Environmental and Forest Sciences University of Washington d...@uw.edu __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] divergent colors around zero in levelplot()

2013-11-22 Thread Don McKenzie
Thanks Bert. I’ll check it out. Don On Nov 22, 2013, at 10:25 PM, Bert Gunter gunter.ber...@gene.com wrote: Use the Rcolorbrewer package. -- Bert On Fri, Nov 22, 2013 at 8:43 PM, Don McKenzie d...@u.washington.edu wrote: I would like to produce a levelplot with divergent colors

Re: [R] extraction of roots in R

2013-11-01 Thread Don McKenzie
, reproducible code. Don McKenzie Pacific Wildland Fire Sciences Lab US Forest Service Affiliate Professor School of Environmental and Forest Sciences University of Washington d...@uw.edu __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] extraction of roots in R

2013-11-01 Thread Don McKenzie
If you want complex roots, there is a post by Ravi Varadhan from 2010, a reprint of which I found quickly by a google search at http://r.789695.n4.nabble.com/finding-complex-roots-in-R-td2541514.html On 1-Nov-13, at 11:20 AM, Don McKenzie wrote: If you just want the nth root of X, use X^(1

Re: [R] min(NA,bla) != min(bla, NA)

2013-09-26 Thread Don McKenzie
/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. Don McKenzie Research Ecologist Pacific Wildland Fire Sciences Lab US Forest Service Affiliate Professor School of Environmental

Re: [R] double matrix?

2013-07-31 Thread Don McKenzie
__ 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. Don McKenzie, Research Ecologist Pacific WIldland Fire Sciences Lab

Re: [R] when to use pros/cons of dataframe vs. matrix?

2013-06-27 Thread Don McKenzie
?) __ 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. Don McKenzie, Research Ecologist

Re: [R] Simulating from a special type of bivariate exponential distribution

2013-06-16 Thread Don McKenzie
commented, minimal, self-contained, reproducible code. Don McKenzie, Research Ecologist Pacific WIldland Fire Sciences Lab US Forest Service Affiliate Professor School of Forest Resources, College of the Environment CSES Climate Impacts Group University of Washington phone: 206-732-7824 d...@uw.edu

Re: [R] Forecasting MA model different to manually computation?

2013-05-22 Thread Don McKenzie
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. Don McKenzie, Research Ecologist Pacific Wildland Fire Sciences Lab US Forest Service

Re: [R] add identifier column by row

2013-05-21 Thread Don McKenzie
-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. Don McKenzie, Research Ecologist Pacific Wildland Fire Sciences Lab US

Re: [R] add identifier column by row

2013-05-21 Thread Don McKenzie
Duh -- I mean for the latter On 21-May-13, at 1:25 PM, Don McKenzie wrote: Do you want each number in Date to be repeated once (as in your example) or appear 48 times (so that you start over every 1440 rows, as in your request). For the former, rep(c(1:30),each=48) fills the first 1440

Re: [R] pearson correlation significant level

2013-05-17 Thread Don McKenzie
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. Don McKenzie, Research Ecologist Pacific Wildland Fire Sciences Lab US Forest Service phone: 206

Re: [R] wrong data interpretation in R

2012-11-26 Thread Don McKenzie
://www.R-project.org/posting- guide.html and provide commented, minimal, self-contained, reproducible code. Don McKenzie, Research Ecologist Pacific Wildland Fire Sciences Lab US Forest Service phone: 206-732-7824 Affiliate Professor School of Environmental and Forest Sciences University

Re: [R] Help with loess

2012-11-19 Thread Don McKenzie
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. Don McKenzie, Research Ecologist Pacific Wildland Fire Sciences Lab US Forest Service phone

Re: [R] How to do an infinite sum in R

2012-11-16 Thread Don McKenzie
://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. Don McKenzie, Research Ecologist Pacific Wildland Fire Sciences Lab US Forest Service phone: 206-732-7824 Affiliate

Re: [R] commenting out a block of R code

2012-05-06 Thread Don McKenzie
that apples might start to rise tomorrow, but the possibility does not merit equal time in physics classrooms. -- Stephen Jay Gould Don McKenzie, Research Ecologist Pacific Wildland Fire Sciences Lab US Forest Service phone: 206-732-7824 Affiliate Professor School of Environmental

Re: [R] Object not found using GAMs in MGCV Package

2012-01-16 Thread Don McKenzie
-project.org/posting- guide.html and provide commented, minimal, self-contained, reproducible code. Don McKenzie, Research Ecologist Pacific Wildland Fire Sciences Lab US Forest Service phone: 206-732-7824 Affiliate Professor School of Environmental and Forest Sciences University of Washington

Re: [R] graph bugs using R on MAC

2011-09-18 Thread Don McKenzie
elder quoted in EOS Transactions Don McKenzie, Research Ecologist Pacific WIldland Fire Sciences Lab US Forest Service Affiliate Professor School of Forest Resources, College of the Environment CSES Climate Impacts Group University of Washington phone: 206-732-7824 d...@uw.edu

Re: [R] graph bugs using R on MAC

2011-09-18 Thread Don McKenzie
On 18-Sep-11, at 12:59 PM, Duncan Murdoch wrote: On 11-09-18 3:48 PM, Don McKenzie wrote: On 18-Sep-11, at 12:38 PM, bby2...@columbia.edu wrote: This is has been bugging me for a long time. Nobody around me seems to have this problem. I hope someone on the forum could help me. When I

Re: [R] graph bugs using R on MAC

2011-09-18 Thread Don McKenzie
Yuan. Quoting Duncan Murdochmurdoch.dun...@gmail.com: On 11-09-18 3:48 PM, Don McKenzie wrote: On 18-Sep-11, at 12:38 PM, bby2...@columbia.edu wrote: This is has been bugging me for a long time. Nobody around me seems to have this problem. I hope someone on the forum could help me. When I

Re: [R] graph bugs using R on MAC

2011-09-18 Thread Don McKenzie
using Word 2004. Upgrading Word is an idea. I will definitely look into it, although I didn't think those who didn't have this problem necessarily had a higher version of Word. Bonnie Yuan Quoting Duncan Murdoch murdoch.dun...@gmail.com: On 11-09-18 4:53 PM, Don McKenzie wrote: I think

Re: [R] graph bugs using R on MAC

2011-09-18 Thread Don McKenzie
Sorry -- you do have to highlight the quartz window to use identify(), but that shouldn't matter either. On Sep 18, 2011, at 2:41 PM, Don McKenzie wrote: On Sep 18, 2011, at 2:15 PM, bby2...@columbia.edu wrote: Don and Duncan, That function works, up to the same point where I can save

Re: [R] ARIMA simulations

2011-07-25 Thread Don McKenzie
guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Don McKenzie Research Ecologist Pacific Wildland Fire Sciences Lab US Forest Service Affiliate Professor School of Forest Resources and CSES Climate Impacts Group University

Re: [R] converting character to numeric

2011-06-21 Thread Don McKenzie
opinion -- Richard Feynman Don McKenzie, Research Ecologist Pacific WIldland Fire Sciences Lab US Forest Service Affiliate Professor School of Forest Resources, College of the Environment CSES Climate Impacts Group University of Washington phone: 206-732-7824 d...@uw.edu

Re: [R] converting character to numeric

2011-06-21 Thread Don McKenzie
Bill is right on both points. My longer clumsier code is for chickens who are afraid to change any more than they have to. Don McKenzie On 21-Jun-11, at 4:36 PM, bill.venab...@csiro.au wrote: The point I would make is that for safety it's much better to use FALSE rather than F. FALSE

Re: [R] Using jitter function with differing variable lengths

2011-04-18 Thread Don McKenzie
the universe go to all the bother of existing? -- Stephen Hawking Don McKenzie, Research Ecologist Pacific WIldland Fire Sciences Lab US Forest Service Affiliate Professor School of Forest Resources, College of the Environment CSES Climate Impacts Group University of Washington desk: 206-732-7824 cell

Re: [R] Partial Cross Correlation

2011-03-11 Thread Don McKenzie
, reproducible code. Why does the universe go to all the bother of existing? -- Stephen Hawking #define QUESTION ((bb) || !(bb)) -- William Shakespeare Don McKenzie, Research Ecologist Pacific WIldland Fire Sciences Lab US Forest Service Affiliate Professor School of Forest Resources, College

Re: [R] Partial Cross Correlation

2011-03-11 Thread Don McKenzie
Belay that. I misread the post. On 11-Mar-11, at 12:09 PM, Don McKenzie wrote: ?pacf On 11-Mar-11, at 9:42 AM, Kevin Boggs wrote: Does anyone know of any R code for computing partial cross- correlation? I have examples of cross correlation functions (ccfs) that are not smooth but rather

Re: [R] cv.lm syntax error

2011-03-08 Thread Don McKenzie
, minimal, self-contained, reproducible code. Why does the universe go to all the bother of existing? -- Stephen Hawking #define QUESTION ((bb) || !(bb)) -- William Shakespeare Don McKenzie, Research Ecologist Pacific WIldland Fire Sciences Lab US Forest Service Affiliate Professor School

Re: [R] allocating factor levels

2011-03-07 Thread Don McKenzie
PLEASE do read the posting guide http://www.R-project.org/posting- guide.html and provide commented, minimal, self-contained, reproducible code. Why does the universe go to all the bother of existing? -- Stephen Hawking #define QUESTION ((bb) || !(bb)) -- William Shakespeare Don McKenzie

Re: [R] Parsing question, partly comma separated partly underscore separated string

2011-03-06 Thread Don McKenzie
read the posting guide http://www.R-project.org/posting- guide.html and provide commented, minimal, self-contained, reproducible code. Why does the universe go to all the bother of existing? -- Stephen Hawking #define QUESTION ((bb) || !(bb)) -- William Shakespeare Don McKenzie, Research

Re: [R] Export R dataframes to excel

2011-03-01 Thread Don McKenzie
, minimal, self-contained, reproducible code. Why does the universe go to all the bother of existing? -- Stephen Hawking #define QUESTION ((bb) || !(bb)) -- William Shakespeare Don McKenzie, Research Ecologist Pacific WIldland Fire Sciences Lab US Forest Service Affiliate Professor School of Forest

Re: [R] error in saved .csv

2011-03-01 Thread Don McKenzie
-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Don McKenzie Research Ecologist Pacific Wildland Fire Sciences Lab US Forest Service Affiliate Professor School of Forest Resources and CSES Climate Impacts Group University of Washington phone

Re: [R] Months in alphabetical order rather than chronological order in graph

2011-01-28 Thread Don McKenzie
, minimal, self-contained, reproducible code. Don McKenzie Research Ecologist Pacific Wildland Fire Sciences Lab US Forest Service Affiliate Professor School of Forest Resources and CSES Climate Impacts Group University of Washington phone: 206-732-7824 cell: 206-321-5966 d...@uw.edu

Re: [R] scientific vs. fixed notation in xyplot()

2010-09-27 Thread Don McKenzie
, self-contained, reproducible code. Don McKenzie, Research Ecologist Pacific WIldland Fire Sciences Lab US Forest Service Affiliate Professor School of Forest Resources, College of the Environment CSES Climate Impacts Group University of Washington desk: 206-732-7824 cell: 206-321-5966 d...@uw.edu

Re: [R] hierarchical clustering with Jaccard index

2009-11-03 Thread Don McKenzie
/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Don McKenzie Research Ecologist Pacific Wildland Fire Sciences Lab US Forest Service Affiliate Professor College of Forest Resources and CSES Climate Impacts Group University of Washington phone: 206-732-7824 cell

Re: [R] sort (all columns of) a matrix

2009-10-08 Thread Don McKenzie
read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Don McKenzie Research Ecologist Pacific Wildland Fire Sciences Lab US Forest Service Affiliate Professor College of Forest Resources and CSES Climate Impacts

Re: [R] Stranger Behavior -maybe not

2009-10-03 Thread Don McKenzie
://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. Don McKenzie, Research Ecologist Pacific WIldland Fire Sciences Lab US Forest Service Affiliate Professor School

Re: [R] Stranger Behavior -maybe not

2009-10-03 Thread Don McKenzie
expect i at the top-level to remain undefined. Hadley -- http://had.co.nz/ Don McKenzie, Research Ecologist Pacific WIldland Fire Sciences Lab US Forest Service Affiliate Professor School of Forest Resources, College of the Environment CSES Climate Impacts Group University of Washington desk

Re: [R] How not to keep the redundant space when convert a data frame with as.matrix()?

2009-09-16 Thread Don McKenzie
-project.org/posting- guide.html and provide commented, minimal, self-contained, reproducible code. Don McKenzie, Research Ecologist Pacific WIldland Fire Sciences Lab US Forest Service Affiliate Professor School of Forest Resources, College of the Environment CSES Climate Impacts Group University

Re: [R] variable selection in logistic

2009-09-03 Thread Don McKenzie
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. Don McKenzie Research Ecologist Pacific Wildland Fire Sciences Lab US Forest Service Affiliate

Re: [R] Unique command not deleting all duplicate rows

2009-08-24 Thread Don McKenzie
]] __ 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. Don McKenzie, Research Ecologist Pacific WIldland Fire

Re: [R] Selecting groups with R

2009-08-21 Thread Don McKenzie
. __ 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. Don McKenzie, Research

Re: [R] Selecting groups with R

2009-08-21 Thread Don McKenzie
Right, but he just wanted to eliminate BLUE as far as I could see. Your solution does more, of course. On 21-Aug-09, at 3:33 PM, David Winsemius wrote: On Aug 21, 2009, at 6:16 PM, Don McKenzie wrote: dataset[dataset$Color != BLUE,] Will return a data.frame with Color still a factor

Re: [R] Best way to replace :SS with :00

2009-07-16 Thread Don McKenzie
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. Don McKenzie Research Ecologist Pacific Wildland Fire Sciences Lab US Forest Service Affiliate

[R] axis values on lattice log-scale plot

2009-04-07 Thread Don McKenzie
display as simply numeric (i.e., 10,100,1000, ... on the X axis and proportions on the Y axis). Suggestions much appreciated. R 2.8.1 on mac OSX 10.4.11 Don McKenzie, Research Ecologist Pacific WIldland Fire Sciences Lab US Forest Service Affiliate Professor College of Forest Resources

Re: [R] Bar Plot ggplot2 Filling bars with cross hatching

2009-01-19 Thread Don McKenzie
, minimal, self-contained, reproducible code. Don McKenzie, Research Ecologist Pacific WIldland Fire Sciences Lab US Forest Service Affiliate Professor College of Forest Resources CSES Climate Impacts Group University of Washington desk: 206-732-7824 cell: 206-321-5966 d...@u.washington.edu donaldmcken

Re: [R] How to find the index

2008-09-16 Thread Don McKenzie
--- Peng Jiang 江鹏 ,Ph.D. Candidate Don McKenzie, Research Ecologist Pacific WIldland Fire Sciences Lab US Forest Service Affiliate Professor College of Forest Resources CSES Climate Impacts Group University of Washington desk: 206-732-7824 cell: 206-321-5966 [EMAIL PROTECTED] [EMAIL PROTECTED