Re: [R] Monte Carlo Simulation

2011-04-15 Thread Charles Annis, P.E.
What have you tried so far? It is often helpful to begin with a much simpler problem, then add complexity incrementally until you've constructed the desired model. Best wishes. Charles Annis, P.E. charles.an...@statisticalengineering.com 561-352-9699 http://www.StatisticalEngineerin

[R] survfit - help avoiding re-inventing the wheel.

2011-02-05 Thread Charles Annis, P.E.
values, but find myself doing what must already be available, if I knew how to access it. The reason for wanting to compute a loglikelihood at non-mle values is to estimate the log likelihood ratios. Any help is much appreciated. Thanks. Charles Annis, P.E. charles.an

Re: [R] extracting x,y coordinates from a contour plot

2010-09-06 Thread Charles Annis, P.E.
Thank you, David: I obviously didn't look hard enough. This is exactly what I need. Charles Annis, P.E. charles.an...@statisticalengineering.com 561-352-9699 http://www.StatisticalEngineering.com -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun

[R] extracting x,y coordinates from a contour plot

2010-09-05 Thread Charles Annis, P.E.
-forward but I've been unsuccessful in my searches of CRAN. Can anyone provide a hint? Thanks. Charles Annis, P.E. charles.an...@statisticalengineering.com 561-352-9699 http://www.StatisticalEngineering.com [[alternative HTML version de

Re: [R] Servreg $loglik

2010-07-20 Thread Charles Annis, P.E.
g the same model with the same data (37 weighted and the corresponding 70 unweighted) produces different values for loglik. Thank you for your help. It gives me peace of mind. ~:-) Charles Annis, P.E. charles.an...@statisticalengineering.com 561-352-9699 http://www.StatisticalEngineering.com ---

[R] Servreg $loglik

2010-07-20 Thread Charles Annis, P.E.
3 8750 R-Censored 2 8750 Failure 1 9400 R-Censored 1 9900 R-Censored 1 10100 R-Censored 3 11500 R-Censored 1 I am running R version 2.11.1 (2010-05-31) on a HP Windows 7 box with 8 gig RAM. Thank you for your help. Charles Annis, P.E.

[R] HELP - four.nines.cartesian.probability.grid

2010-07-07 Thread Charles Annis, P.E.
= 0.5) mtext("www.StatisticalEngineering.com", side = 1, line = 2.9, adj = 1, cex = 0.7) box() } windows(width = 6, height = 6, pointsize = 12) par(mar = c(4, 4, 0.5, 1) + 0.1) X.data <- rnorm(n=100, mean = 8000, sd = 300) four

Re: [R] P values

2010-05-07 Thread Charles Annis, P.E.
Please let me quote an eminently sensible person, who observed that ... "p-values are dangerous, especially large, small, and in-between ones." - Frank E Harrell Jr., Prof. of Biostatistics and Department Chair, Vanderbilt University Charles Annis, P.E.

Re: [R] Logit/probit model

2010-03-25 Thread Charles Annis, P.E.
Perhaps I am missing something but it appears that because X1 and X2 are random normal, that the influence of X2 is much like a second sampling of X1, and thus you would expect just what you observed, especially with a large (1000) sample size. Try making X2 and X1 different. Charles Annis, P.E

Re: [R] Decreasing Cumsum Function?

2010-03-22 Thread Charles Annis, P.E.
how about sum(X) - cumsum(X) Charles Annis, P.E. charles.an...@statisticalengineering.com 561-352-9699 http://www.StatisticalEngineering.com -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Gundala Viswanath Sent: Monday, March

Re: [R] R Aerodynamic Package(s)?

2010-02-27 Thread Charles Annis, P.E.
o broad to allow a more focused response. Perhaps we could be more helpful if you told us what you are trying to accomplish. Charles Annis, P.E. charles.an...@statisticalengineering.com 561-352-9699 http://www.StatisticalEngineering.com -Original Message- From: r-help-boun...@r-p

Re: [R] Integral of function of dnorm

2010-02-11 Thread Charles Annis, P.E.
1)*log(dnorm(x,mean=8,sd=1))) This suggests to me that you can integrate over restricted domains of x, and sum the intermediate results. Charles Annis, P.E. charles.an...@statisticalengineering.com 561-352-9699 http://www.StatisticalEngineering.com -Original Message- From: r-help-boun...

Re: [R] Problems by saving Rprofile.site under vista

2009-11-14 Thread Charles Annis, P.E.
You may have to run R as Administrator (right-click, choose run as administrator) to make these kinds of changes. After you have things the way you like them, run R in the usual way by clicking on the icon. Charles Annis, P.E. charles.an...@statisticalengineering.com 561-352-9699 http

Re: [R] Cannot activate chm help in R 2.10

2009-10-27 Thread Charles Annis, P.E.
x27;m sure this was explained elsewhere but I missed it. Could someone explain why the compiled html help is no longer supported? Thanks. Charles Annis, P.E. charles.an...@statisticalengineering.com phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Messa

Re: [R] News on R "s largest corporate partner REVolution Computingand SPSS CEO:

2009-10-21 Thread Charles Annis, P.E.
of experience...?" Charles Annis, P.E. charles.an...@statisticalengineering.com phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of David M Smith Sen

Re: [R] Fortran vs R

2009-09-23 Thread Charles Annis, P.E.
u must learn another language. R would be my choice if I were you. Mister Know-It-All Charles Annis, P.E. charles.an...@statisticalengineering.com phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Message- From: r-help-boun...@r-project.org [mai

Re: [R] Scripting - sort of

2009-08-26 Thread Charles Annis, P.E.
Thanks to Gabor Grothendieck and to David Huffer for suggesting autoit and autohotkey, neither of which I had heard of. I'll take a look. Thanks! Charles Annis, P.E. charles.an...@statisticalengineering.com phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineerin

[R] Scripting - sort of

2009-08-26 Thread Charles Annis, P.E.
see if all unfolds correctly? Many thanks for any suggestions. Charles Annis, P.E. <mailto:charles.an...@statisticalengineering.com> charles.an...@statisticalengineering.com phone: 561-352-9699 eFax: 614-455-3265 <http://www.StatisticalEngineering.com> http://www.Stat

Re: [R] distinguish regression lines in grouped, black and white lattice xyplot

2009-06-24 Thread Charles Annis, P.E.
is informative also. So plotting all on one grid isn't of itself bad. That depends on what you are trying to do. Charles Annis, P.E. charles.an...@statisticalengineering.com phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Message- From: r-h

Re: [R] Running R from a read-only CD

2009-05-25 Thread Charles Annis, P.E.
I'm not sure how not to use chm help, since that's the only way I've ever done things. But why would things work well from a USB Flash Drive and not for a CD when the folders are identical? (The CD was burned from the image on the Flash Drive.) Charles Annis, P

Re: [R] Running R from a read-only CD

2009-05-25 Thread Charles Annis, P.E.
there is another way. Any other ideas? Charles Annis, P.E. charles.an...@statisticalengineering.com phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Message- From: Duncan Murdoch [mailto:murd...@stats.uwo.ca] Sent: Monday, May 25, 2009 4:57 PM To

[R] Running R from a read-only CD

2009-05-25 Thread Charles Annis, P.E.
52;LC_NUMERIC=C;LC_TIME=English_United States.1252 attached base packages: [1] splines tcltk stats graphics grDevices utils datasets methods base other attached packages: [1] mh1823_2.5.4.1 survival_2.35-3RColorBrewer_1.0-2 RODBC_1.2-5 > ........

Re: [R] clear screen?

2009-05-03 Thread Charles Annis, P.E.
ility than necessary and thus wanted something less potent to clear the console. Thanks for the insight. Charles Annis, P.E. charles.an...@statisticalengineering.com phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Message- From: Gabor Gr

[R] clear screen?

2009-05-03 Thread Charles Annis, P.E.
ded via a namespace (and not attached): [1] tools_2.8.1 > Charles Annis, P.E. charles.an...@statisticalengineering.com phone: 561-352-9699 eFax:  614-455-3265 http://www.StatisticalEngineering.com   __ R-help@r-project.org mailing list https://stat.ethz.

Re: [R] compiled help pages

2009-05-02 Thread Charles Annis, P.E.
Thank you, Duncan! You are right-as-rain: I forgot to change the aliases. A single change from \alias{STUFF} to \alias{newSTUFF} in the newSTUFF-package.Rd file did the trick. Thanks! Charles Annis, P.E. charles.an...@statisticalengineering.com phone: 561-352-9699 eFax: 614-455-3265 http

[R] compiled help pages - OS info

2009-05-02 Thread Charles Annis, P.E.
252 attached base packages: [1] splines stats graphics grDevices utils datasets methods base other attached packages: [1] mh1823AECL_2.5.4 survival_2.35-3RColorBrewer_1.0-2 RODBC_1.2-5 rcom_2.1-1 [6] rscproxy_1.2-0 > Charles Anni

[R] compiled help pages

2009-05-02 Thread Charles Annis, P.E.
of the ZIP file that R has made, it says the newSTUFF compiled help pages are there: newSTUFF/ newSTUFF/chtml/ newSTUFF/chtml/newSTUFF.chm What's even more puzzling is that the command: help(package=newSTUFF) DOES work, as it should. Only help(newSTUFF) doesn't. How did I mess t

Re: [R] Flipping axes of qqnorm

2009-04-26 Thread Charles Annis, P.E.
?qqnorm qqnorm(y, ylim, main = "Normal Q-Q Plot", xlab = "Theoretical Quantiles", ylab = "Sample Quantiles", plot.it = TRUE, datax = TRUE, ...) Charles Annis, P.E. charles.an...@statisticalengineering.com phone: 561-352

Re: [R] Cannot clean infinite values

2009-04-26 Thread Charles Annis, P.E.
?is.infinite Charles Annis, P.E. charles.an...@statisticalengineering.com phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Nigel Birney Sent: Sunday

Re: [R] Discover significant change in sorted vector

2009-04-22 Thread Charles Annis, P.E.
Please excuse my nit-picking: In physicists the third and fourth derivative of position are jerk (or jolt) and jounce, respectively. Impulse is the integral of force with respect to time. Charles Annis, P.E. charles.an...@statisticalengineering.com phone: 561-352-9699 eFax: 614-455-3265 http

Re: [R] threshold distribution

2009-04-05 Thread Charles Annis, P.E.
io) significant.difference <- qchisq(p = 0.95, df = 1)/2 print(significant.difference) Charles Annis, P.E. charles.an...@statisticalengineering.com phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Message- From: r-help-boun...@r-project.or

Re: [R] threshold distribution

2009-04-05 Thread Charles Annis, P.E.
ikelihiood.ratio <- sum.loglikelihood.63 - sum.loglikelihood print(log.likelihiood.ratio) significant.difference <- qchisq(p = 0.95, df = 1)/2 print(significant.difference) # Charles Annis, P.E. charles.an...@statisticalengineering.com phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEng

Re: [R] Linear model, finding the slope

2009-04-03 Thread Charles Annis, P.E.
I'm not sure what you are doing when you "Normalize." Would you explain? To see if the slope is significant, look at the model summary, in your example: summary(model) Charles Annis, P.E. charles.an...@statisticalengineering.com phone: 561-352-9699 eFax: 61

Re: [R] How to set up a function for "Central Limit Theorem"

2009-03-23 Thread Charles Annis, P.E.
Ivan: While you're figuring out how to execute the CLT in R you may find my automated examples informative. http://StatisticalEngineering.com/central_limit_theorem.htm Charles Annis, P.E. charles.an...@statisticalengineering.com phone: 561-352-9699 eFax: 614-455-3265

Re: [R] which.na

2009-03-19 Thread Charles Annis, P.E.
> ?is.na > x <- c(NA, 3, 4, 5, NA) > which(is.na(x)) [1] 1 5 Charles Annis, P.E. charles.an...@statisticalengineering.com phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Message- From: r-help-boun...@r-project.org [mailto:r-he

Re: [R] Cannot update 2.8.1 packages: unable to access index forrepository...

2009-03-09 Thread Charles Annis, P.E.
or my permission to let R2.8.1 access the internet, but I missed the request (the window was buried elsewhere). Several days later the request again surfaced, I OKed the internet access and all the problems vanished. Charles Annis, P.E. charles.an...@statisticalengineering.com phone: 561-352-9699 eFax:

[R] FW: Can't access CRAN

2009-02-17 Thread Charles Annis, P.E.
tly. Consulting the FAQ I tried changing permissions but no-go, plus the permissions on R 2.6.2 and R 2.8.1 appear to be identical. I'm baffled. Can anyone illuminate this situation? Thanks Charles Annis, P.E. charles.an...@statisticalengineering.com phone: 561-352-9699 eFax:  614-

[R] cannot load package "splines"

2008-12-30 Thread Charles Annis, P.E.
ror in parse(n = -1, file = file) : invalid multibyte character in parser at line 33 $B:x8m(B: unable to load R code in package 'mh1823' Any suggestions are welcome. Thank you. Charles Annis, P.E. <mailto:charles.an...@statisticalengineering.com> charles.an...@st

Re: [R] HOW to provide a CITATION file?

2008-11-16 Thread Charles Annis, P.E.
Many thanks to Henrik and Spencer, Professor Ripley, and others. The trick that I had missed (found in 'Writing R Extensions') is that the CITATION file must be located in the 'inst' subdirectory of the package sources. Again, my gratitude to all. Charles Annis, P.E. [EM

[R] HOW to provide a CITATION file?

2008-11-15 Thread Charles Annis, P.E.
ignored. Thanks for your guidance. Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax:  614-455-3265 http://www.StatisticalEngineering.com   __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

Re: [R] trouble with character \u00e2

2008-10-08 Thread Charles Annis, P.E.
PS - After installing rcom from CRAN as a zipped binary, my home-brew package runs on R2.8.0 beta as it did on r releases before R2.7.x Thank you, Professor Ripley. Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com

Re: [R] trouble with character \u00e2

2008-10-08 Thread Charles Annis, P.E.
lt;- basename(file.name) > savePlot(paste("diagnostic â vs a ", file.label, ".jpg", + sep = ""), type = "jpg") > > Encoding(file.label) [1] "UTF-8" > In both cases the saved file had the hoped-for result. I will try to load my p

Re: [R] trouble with character \u00e2

2008-10-08 Thread Charles Annis, P.E.
xls" > charToRaw(file.label) [1] 45 58 41 4d 50 4c 45 20 31 20 e2 20 76 73 20 61 2e 78 6c 73 > Encoding(file.label) [1] "latin1" > Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -----Original Message--

Re: [R] trouble with character \u00e2

2008-10-08 Thread Charles Annis, P.E.
61 2e 78 6c 73 (before) The file label appears on the screen as it does above both times, but clearly charToRaw() shows that the coding for â has changed from the unexpected c3 a2, to the desired e2. After running your example I now observe > Encoding(file.label) [1] "latin1" Again, than

Re: [R] trouble with character \u00e2

2008-10-08 Thread Charles Annis, P.E.
iagnostic â vs a ", file.label, ".jpg", sep = ""), type = "jpg") The name of my input Excel file is "EXAMPLE 1 â vs a.xls" The problem does not occur on R < R2.7.0 I am running R2.7.2 on a 5 year old DELL box (2 Gig RAM, 3GHz Penti

[R] trouble with character \u00e2

2008-10-05 Thread Charles Annis, P.E.
lt;- iconvlist() for(encoding in iconv.List) { print(iconv(file.name, "", encoding, ""))} So, here's the question: How can I save, with a non-interactive R command, an existing plot with the troublesome character in the file name? Thanks. Charles Annis, P.E. [EMAIL

Re: [R] gsub difficulty

2008-09-23 Thread Charles Annis, P.E.
Thanks, Jorge, for another alternative. Charles Annis, P.E. <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 <http://www.StatisticalEngineering.com> http://www.StatisticalEngineering.com _ From: Jorge Ivan Velez [mailto:[EMA

Re: [R] gsub difficulty

2008-09-23 Thread Charles Annis, P.E.
Thanks! Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Message- From: Phil Spector [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2008 1:30 PM To: Charles Annis, P.E. Subject: Re: [R] gsub

[R] gsub difficulty

2008-09-23 Thread Charles Annis, P.E.
;.xls", " ", file.label) replaces ".xls" with a blank as expected. It appears that "." is some kind of wild-card. How do I tell gsub that a period is just a period? Thanks. Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax:  614-455-3265 http://ww

Re: [R] How to learn R language?

2008-08-27 Thread Charles Annis, P.E.
ollow, and will systematically teach you R. It's paperback, not too expensive and available at Amazon. Start at the front, work all the way through it and you will be delighted with the results. Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.Statis

Re: [R] help with my sloppy syntax

2008-08-14 Thread Charles Annis, P.E.
Right you are! Thank you for finding my mistake. I have been trying all sorts of combinations and I just dropped the ball. Thank you and thanks to Professor Ripley! Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com

Re: [R] help with my sloppy syntax

2008-08-14 Thread Charles Annis, P.E.
eric argument to binary operator > Thank you for your counsel. Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Prof Brian Ripley Sent: Th

Re: [R] help with my sloppy syntax

2008-08-14 Thread Charles Annis, P.E.
at other list, z. Is there a way to do this without defining another variable "var" and listing its elements without the undesirable unlisting that terminal variable z? Thank you. Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.Sta

[R] help with my sloppy syntax

2008-08-14 Thread Charles Annis, P.E.
... It seems that I should be able to avoid defining the variable "par" and then specifying each of its elements, but all my attempts resulted in a list whose first element is a list, rather than the elements of the list. And my attempts at unlist were unsuccessful. Thank you. Char

Re: [R] Legality Question about R's Open Source GNU GPL License

2008-07-29 Thread Charles Annis, P.E.
Gad and David - would you be so kind as to include me in any off-line discussion of this vital topic of R and GPL? Many thanks. Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Message- From: [EMAIL

Re: [R] REvolution computing

2008-07-18 Thread Charles Annis, P.E.
answer to Uwe's question? Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Uwe Ligges Sent: Friday, July 18, 2008 7:28 AM To: Gre

Re: [R] shapiro wilk normality test

2008-07-13 Thread Charles Annis, P.E.
http://www.bmj.com/cgi/content/full/311/7003/485 Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ted Harding Sent: Sunday, July 13

Re: [R] Install Packages in Windows Vista

2008-07-01 Thread Charles Annis, P.E.
Run R as the Administrator. Install the packages. Then run as an ordinary user. Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of

Re: [R] multiple multiplication in R

2008-06-18 Thread Charles Annis, P.E.
> 1*2*3*4*5*6 [1] 720 Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Manli Yan Sent: Wednesday, June 18, 2008 7:22 PM To: r-hel

Re: [R] "rbinom" : Does randomness preclude precision?

2008-05-28 Thread Charles Annis, P.E.
s of successes. How could it be otherwise? Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax:  614-455-3265 http://www.StatisticalEngineering.com   From: Philip Twumasi-Ankrah [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 28, 2008 10:36 AM

Re: [R] "rbinom" : Does randomness preclude precision?

2008-05-28 Thread Charles Annis, P.E.
What do you mean by "... *eventual* nature of the distribution?" If you simulated 100 samples, would you expect to see 1.5 successes? Or 1? Or 2? How many, in your thinking, is "eventual?" Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax

Re: [R] "rbinom" not using probability of success right

2008-05-28 Thread Charles Annis, P.E.
Do it again. What did you get this time? Then do it another time. Do you see what is happening? Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED

Re: [R] Where to download BRugs

2008-05-22 Thread Charles Annis, P.E.
Could you mean RBugs? Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of qqw Sent: Thursday, May 22, 2008 3:10 PM To: r-help@r-project.org

Re: [R] Pros and Cons of R

2008-05-22 Thread Charles Annis, P.E.
y 9, 2004) is pretty close. If you don't know much statistics, it will teach you statistics while teaching you R. If you already know statistics, it will demonstrate how to do familiar things using R. Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699

Re: [R] How do you test for "consecutivity"?

2008-04-29 Thread Charles Annis, P.E.
This will work: my.list <- c(2, 28, 31, 4, 27) sort(my.list) diff(sort(my.list)) any(diff(sort(my.list)) == 1) the middle two lines are only to illustrate what's going on. Best wishes! Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3

Re: [R] How to use the optim function if the length of the objectivefunction is greater than 1?

2008-04-26 Thread Charles Annis, P.E.
, such as the sum of the squares of deviations, so that the function is then single-valued. But that's only a guess, based on insufficient information. Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Message-

Re: [R] Labelling a secondary axis in R

2008-04-21 Thread Charles Annis, P.E.
If you just want the title, look at ?mtext. Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, April 21

Re: [R] Huber-white cluster s.e. after optim?

2008-04-09 Thread Charles Annis, P.E.
I concur! Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rolf Turner Sent: Wednesday, April 09, 2008 10:22 PM To: R-help List Subject

[R] help with R semantics

2008-04-03 Thread Charles Annis, P.E.
", constructed elsewhere using paste(), and I need to remove the quotations in order to use it, since binomial("logit.FC(0,1)") will fail. I know I am missing something obvious and would appreciate any help. Thanks. Charles Annis, P.E. <mailto:[EMAIL PROTECTED]> [

Re: [R] NEW: Sociolects in R

2008-04-01 Thread Charles Annis, P.E.
Groovy!!! Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Dalgaard Sent: Tuesday, April 01, 2008 10:19 AM To: R help Subject: [R

Re: [R] invalid \uxxxx sequence while trying to create a package

2008-03-22 Thread Charles Annis, P.E.
t; - obvious in hindsight, of course - sent me back to "Writing ..." and the correct syntax.) Thank you very much for the rescue. (I will revisit lazy loading when R-2.7.0 arrives.) Again, my sincere gratitude! Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-32

Re: [R] invalid \uxxxx sequence while trying to create a package

2008-03-21 Thread Charles Annis, P.E.
** Installation of mh1823 failed *** Removing 'C:/DOCUME~1/CHARLE~1/LOCALS~1/Temp/Rinst406445831/mh1823' Clearly I am overlooking something obvious, so I would greatly appreciate any guidance. Thanks. Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-

Re: [R] invalid \uxxxx sequence while trying to create a package

2008-03-18 Thread Charles Annis, P.E.
get around the objection with the corresponding Unicode character(s), obviously with no success. The menu works perfectly well, but can't be packaged as it currently is using R CMD build --binary March18. Is there no way for me to package the menu? Thanks, again. Charles Annis, P.E. [EMAIL P

[R] invalid \uxxxx sequence while trying to create a package

2008-03-18 Thread Charles Annis, P.E.
27;C:/DOCUME~1/CHARLE~1/LOCALS~1/Temp/Rinst142800030/March18' While I can clearly read that the problem is invalid \u sequence I don't know what it means nor how to remedy it. Helpful suggestions would be greatly appreciated. Thanks. Charles Annis, P.E. <mailt

[R] GDD and dashed lines (lty=2)

2008-03-14 Thread Charles Annis, P.E.
ng that perhaps having too many line segments was the problem, but even with length=2 the lines are not dashed. Any suggestions? Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com

Re: [R] Help needed in R

2008-03-03 Thread Charles Annis, P.E.
I believe I wrote too hastily and that what you want is sum(X < 1) which will sum the indicator (T/F) function. Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EM

Re: [R] Help needed in R

2008-03-03 Thread Charles Annis, P.E.
perhaps you need something like sum(X[X < 1]) Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of AbouEl-Makarim Aboueissa Sent: Mon

Re: [R] Specify Path of an Excel file in R

2008-02-17 Thread Charles Annis, P.E.
like this: my.stuff <- read.csv(file.choose(), ... and then navigate to your file. Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of sav

Re: [R] How many R packages?

2008-02-12 Thread Charles Annis, P.E.
1305 by my count. Go to CRAN and click on Packages. Then copy and paste the list into your text processor and look at the line count. Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Message- From: [EMAIL

Re: [R] Formulae for R functions

2008-02-12 Thread Charles Annis, P.E.
it, as you will when you list predict.lm Best wishes. Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Richard Saba Sent: Tuesday

[R] Off-topic - FORM/SORM

2008-02-01 Thread Charles Annis, P.E.
es on these methods. Any comments, pro or con, would be greatly appreciated. Since this is off-topic, you may wish to reply directly to me and I will summarize the comments to the group. Thank you. Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265

Re: [R] Which R version created a package?

2008-01-26 Thread Charles Annis, P.E.
Many thanks to all. These methods all provide the needed info: library(help= lattice) packageDescription("lattice ", fields="Built") packageDescription("lattice")$Built The first method produces nore complete information, should that also be interesting.

[R] Which R version created a package?

2008-01-26 Thread Charles Annis, P.E.
Greetings, R-ians: I would like to know which version or R was used to create a given package. I think I remember seeing that topic discussed recently but cannot find it among my notes. Can anyone tell me how to determine which version of R created a package? Thanks. Charles Annis

Re: [R] unload & reload a (new version of a) package

2008-01-14 Thread Charles Annis, P.E.
ages, Load package ... , and click on your.new.package in the drop-down menu. Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Harte, Tho

Re: [R] glm expand model to more values

2008-01-12 Thread Charles Annis, P.E.
mmendation is _Introductory Statistics with R_ by Peter Dalgaard (Paperback - Jan 9, 2004). Amazon.com carries it. Best wishes. Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Message- From: [EMAIL PROTECTED] [mail

Re: [R] glm expand model to more values

2008-01-12 Thread Charles Annis, P.E.
6 0.529 0.649562 Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jarek Jasiewicz Sent: Saturday, January 12, 2008 11:50 AM To:

Re: [R] installing and using a package

2008-01-10 Thread Charles Annis, P.E.
ll do the rest and tell you that it has installed the package (which it apparently has in your case). Now click on Packages again and choose Load package. Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Me

Re: [R] how can i add a package that i want to use permanent

2008-01-10 Thread Charles Annis, P.E.
?.First This will explain things. You make a hidden program called .First like this .First <- function() { library(lattice) } and then save your workspace. The next time you open R, lattice will load automatically. Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-

Re: [R] non-ascii characters in TclTk

2007-12-30 Thread Charles Annis, P.E.
ll run, of course, but doesn't display as expected (or does display as expected, depending on your expectations). ~:-) Your Unicode suggestion fixes all that. The package.skeleton() likes the escape sequence and the resulting TclTk widget displays the â as desired. Thank you! Charles Annis, P.E

[R] non-ascii characters in TclTk

2007-12-29 Thread Charles Annis, P.E.
displays something frightening like R-call_lang 019C8480 019A7724 where I expected to see â. Can anyone suggest how to use the a with caret in a TclTk widget? Thanks. Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax:  614-455-3265 http://www.StatisticalEngineering.com

[R] Running R from a CD on Windows?

2007-12-27 Thread Charles Annis, P.E.
if the icon is copied back from the CD to the desktop. Since the basic R installation on Windows can create a desktop icon, I know this must be possible. I would be grateful for any help. Thanks Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax:  614-4

Re: [R] Drawing functions on Cartesian coordinate systems

2007-09-28 Thread Charles Annis, P.E.
Yes, R can do that. Well, actually YOU can do that using R. But it is hard to believe that you looked very hard before writing. Did you look at these R functions? ?plot ?line ?points ?arrows Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http

Re: [R] Adding a table to a plot area

2007-09-22 Thread Charles Annis, P.E.
t;, tab, "}", "\\psfrag{fx}{$f(x)$}", : object "tab" not found > > system('fragmaster.pl psfrag2') Warning message: Impossible to run C:\PROGRA~1\R\R-25~1.0\bin\FRAGMA~1.PL psfrag2 > Please help me do whatever this means: " ... save

Re: [R] What's the corresponding function in R for lo() function inS-PLUS?

2007-09-17 Thread Charles Annis, P.E.
?loess Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of zhijie zhang Sent: Monday, September 17, 2007 1:19 PM To: [EMAIL

Re: [R] how to plot shaded area under a curve?

2007-09-13 Thread Charles Annis, P.E.
nd it here: http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=88 The code for this graph is downloadable too. Just click on the icon on the left of the screen. Best wishes! Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineerin