Re: [R] Difficulty with "\\" in string functions....

2019-02-11 Thread Bernard
Simple when you know how! Thanks Sent from mobile device - please excuse any spelling mistakes. -- Original Message -- From: William Dunlap To: Bernard McGarvey Cc: Ivan Krylov, r-help@r-project.org Sent: February 11, 2019 at 4:29 PM Subject: Re: [R] Difficulty with "\\"

[R] JMdesign package

2017-05-22 Thread Bernard North
uadratic effects for the Sigma_theta input. I thought theVarCorr output from a lmer mixed model analysis of the profiles might provide the elements for that matrix my apologies for so many questions - many thanks for any thoughts on any of them best wishes Bernard [[alternative

[R] User Interfaces for R

2019-01-10 Thread Bernard McGarvey
for R? Thanks in advance for any help. Lion Bernard McGarvey Director, Fort Myers Beach Lions Foundation, Inc. Retired (Lilly Engineering Fellow). [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE

[R] Reading an excel file

2019-01-10 Thread Bernard Comcast
What is the best way to read in data of any type from an Excel 2016 .xlsx file? Thanks Bernard Sent from my iPhone so please excuse the spelling!" __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/ma

[R] loading the xlsx library

2019-01-11 Thread Bernard McGarvey
OME cannot be determined from the Registry > Does anyone have any idea what the issue is? Thanks Lion Bernard McGarvey Director, Fort Myers Beach Lions Foundation, Inc. Retired (Lilly Engineering Fellow). [[alternative HTML version deleted]] ___

[R] Difficulty with "\\" in string functions....

2019-02-11 Thread Bernard McGarvey
ng the str_split with str_split(Fname1,"\") does not work either. Any ideas on how I can handle the \\ and split the full name into its pieces? Lion Bernard McGarvey Director, Fort Myers Beach Lions Foundation, Inc. Retired (Lilly Engineering Fell

Re: [R] Difficulty with "\\" in string functions....

2019-02-11 Thread Bernard McGarvey
Brilliant! Thanks a million Ivan. Lion Bernard McGarvey Director, Fort Myers Beach Lions Foundation, Inc. Retired (Lilly Engineering Fellow). > On February 11, 2019 at 3:13 PM Ivan Krylov wrote: > > > On Mon, 11 Feb 2019 15:01:16 -0500 (EST) > Bernard McGarvey wrote: >

[R] Weather station data

2019-02-17 Thread Bernard Comcast
Is anyone aware of any R capability to access data at weather stations around the globe? An R package perhaps? Thanks Bernard Sent from my iPhone so please excuse the spelling!" __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more

[R] Error trapping in R

2019-02-27 Thread Bernard Comcast
What is the recommended way to trap errors in R? My main need is to be able to trap an error and then skip a section of code if an error has occurred. In VB for Excel I used the “On Error goto .” construct to do this. Bernard Sent from my iPhone so please excuse the spelling

Re: [R] Error trapping in R

2019-02-27 Thread Bernard Comcast
Thanks Bernard Sent from my iPhone so please excuse the spelling!" > On Feb 27, 2019, at 4:05 PM, Duncan Murdoch wrote: > >> On 27/02/2019 3:55 p.m., Bernard Comcast wrote: >> What is the recommended way to trap errors in R? My main need is to be able >> to

Re: [R] Error trapping in R

2019-02-28 Thread Bernard McGarvey
Thanks - the try() approach is exactly what I need. Lion Bernard McGarvey Director, Fort Myers Beach Lions Foundation, Inc. Retired (Lilly Engineering Fellow). > On February 27, 2019 at 4:39 PM Robert Knight wrote: > > Some use try blocks, like found in other languages. Put

[R] Quantile Density Contours

2019-03-26 Thread Bernard McGarvey
gives density values that can be plotted on a contour plot but I would like the curves that enclose a given % of the data, if that is possible Thanks Bernard McGarvey Director, Fort Myers Beach Lions Foundation, Inc. Retired (Lilly Engineering Fellow

Re: [R] Quantile Density Contours

2019-03-27 Thread Bernard McGarvey
John, I have attached a pdf of the plot. Hopefully you can read this. If I understand correctly, this plot is basically the 2-D version of the 1-D quantile plot. Thanks Bernard McGarvey Director, Fort Myers Beach Lions Foundation, Inc. Retired (Lilly Engineering Fellow). > On March

Re: [R] [FORGED] Re: Quantile Density Contours

2019-03-27 Thread Bernard McGarvey
% value). I hope this makes some sense. Bernard McGarvey Director, Fort Myers Beach Lions Foundation, Inc. Retired (Lilly Engineering Fellow). > On March 27, 2019 at 3:57 PM Paul Murrell wrote: > > > > Are you looking for the contourLines() function ? > > Paul >

Re: [R] [FORGED] Re: Quantile Density Contours

2019-03-27 Thread Bernard Comcast
That thought had crossed my mind so thanks for that clarification Bert. i think you are correct and so the plot I am looking at must be doing something different than I was thinking. Thanks Bernard Sent from my iPhone so please excuse the spelling!" > On Mar 27, 2019, at 5:18 PM, Ber

Re: [R] [FORGED] Re: Quantile Density Contours

2019-03-27 Thread Bernard Comcast
To follow on Jeff, is there a function to do 2-D (double) numerical integration in R? Bernard Sent from my iPhone so please excuse the spelling!" > On Mar 27, 2019, at 6:38 PM, Jeff Newmiller wrote: > > Regardless of how many dimensions you have for independent variables, the

Re: [R] [FORGED] Re: Quantile Density Contours

2019-03-27 Thread Bernard Comcast
No - how do I access that? Bernard Sent from my iPhone so please excuse the spelling!" > On Mar 27, 2019, at 6:57 PM, Jeff Newmiller wrote: > > I don't know. Have you looked at the Multivariate Task View? > >> On March 27, 2019 3:43:52 PM PDT, Bernard Comcast >

Re: [R] [FORGED] Re: Quantile Density Contours

2019-03-28 Thread Bernard Comcast
Thanks Petr Bernard Sent from my iPhone so please excuse the spelling!" > On Mar 28, 2019, at 2:26 AM, PIKAL Petr wrote: > > Hallo Bernard > > I did not follow all emails in this thread but it seems to me that your > request is similar to Bioconductor packages deal

Re: [R] [FORGED] Re: Quantile Density Contours

2019-03-28 Thread Bernard McGarvey
pracma meets my needs - thanks - this is an amazing package with lots of very very useful functions. Thanks for bringing it to my attention. Bernard McGarvey Director, Fort Myers Beach Lions Foundation, Inc. Retired (Lilly Engineering Fellow). > On March 28, 2019 at 1:40 PM David Winsem

Re: [R] [FORGED] Re: Quantile Density Contours

2019-03-28 Thread Bernard Comcast
I will take a look but the hdrcde package appears to give me the plots I was looking for. Thanks Bernard Sent from my iPhone so please excuse the spelling!" > On Mar 28, 2019, at 10:16 PM, Jeff Newmiller wrote: > > I just found the "ks" package which looks pro

Re: [R] Quantile Density Contours

2019-03-29 Thread Bernard Comcast
Thanks Abs - I was able to get the plot I needed with the hdrcde package but I will check out your package as well. I continue to be impressed with the power Of R and the various packages available. Thanks again Bernard Sent from my iPhone so please excuse the spelling!" > On Mar

[R] R package to fit mixture or cure survival models

2009-05-13 Thread marc bernard
Dear All, I am desperately trying to find any R package that fits a mixture survival models also know as a cure models. These are survival models where the survival function is improper, which also means that a fraction of subjects are expected not to expreience the event. A huge literature

[R] Mixture of survivals or cure models

2009-05-13 Thread marc bernard
Dear All, I am desperately trying to find any R package that fits a mixture survival models also know as a cure models. This are survival model where the survival function is improper which also means that a fraction of subjects are expected not to expreience the event. A Huge literature

[R] problem with installing a local zip file : GFCURE

2009-05-19 Thread marc bernard
Dear all, I am trying to install a package called "GFCURE" from a local zip file. This package fits a cure survival model and has been downloaded from: http://post.queensu.ca/~pengp/software.html The problem is that when I try to install this package from a local zip file using R,

Re: [R] problem with installing a local zip file : GFCURE

2009-05-19 Thread marc bernard
uk > CC: r-help@r-project.org > > On Tue, May 19, 2009 at 6:17 AM, marc bernard > wrote: > > > > Dear all, > > > > > > > > I am trying to install a package called "GFCURE" from a local zip file. > > This package fits a cure survival model

Re: [R] Inappropriate color name

2020-11-17 Thread Bernard Comcast
If the word Indian refers to India, the place of origin for the color, then referring to it by this name gives an acknowledgement to this fact and I would have assumed such acknowledgement is a positive thing. Bernard Sent from my iPhone so please excuse the spelling!" > On Nov 17, 20

[R] Summarizing select columns in a data frame

2021-01-17 Thread Bernard McGarvey
to be returned to a data frame or other object that I can write out using the write.csv function. I have looked at the summarize and numSummary functions but they do not appear to be flexible enough to do the above. Any help would be appreciated, Thanks Bernard McGarvey Director, Fort Myers

Re: [R] Summarizing select columns in a data frame

2021-01-17 Thread Bernard Comcast
Thanks Bert Bernard Sent from my iPhone so please excuse the spelling!" > On Jan 17, 2021, at 3:48 PM, Bert Gunter wrote: > >  > There are literally tons of ways to do this sort of thing in R. > > In base R ?tapply and friends, especially ?ave and ?by that may be cl

Re: [R] Summarizing select columns in a data frame

2021-01-17 Thread Bernard Comcast
Thanks David Bernard Sent from my iPhone so please excuse the spelling!" > On Jan 17, 2021, at 5:59 PM, David Winsemius wrote: > >  >> On 1/17/21 12:15 PM, Bernard McGarvey wrote: >> I have a data frame that consists of several factor columns say A, B, C, D, &g

[R] Col names in a data frame

2021-01-21 Thread Bernard McGarvey
by periods but I can add them after creating the data frame and the column headings are correct. Any ideas on why this occurs? Thanks Bernard McGarvey Director, Fort Myers Beach Lions Foundation, Inc. Retired (Lilly Engineering Fellow). __ R-help@r-p

Re: [R] Col names in a data frame

2021-01-21 Thread Bernard Comcast
Thanks - I had seen that parameter but did not think the ( would be illegal but now I understand why it considers it illegal. Thanks again Bernard Sent from my iPhone so please excuse the spelling!" > On Jan 21, 2021, at 4:14 PM, Duncan Murdoch wrote: > > On 21/01/2021 3:58

Re: [R] Col names in a data frame

2021-01-21 Thread Bernard Comcast
Thanks - I had seen that parameter but did not think the ( would be illegal but now I understand why it considers it illegal. Thanks again Bernard Sent from my iPhone so please excuse the spelling!" > On Jan 21, 2021, at 4:14 PM, Duncan Murdoch wrote: > > On 21/01/2021 3:58

[R] Error loading "XLConnect" library

2021-04-14 Thread Bernard McGarvey
'"cat"' not found > library("XLConnect") Error: package or namespace load failed for ‘XLConnect’: .onLoad failed in loadNamespace() for 'XLConnect', details: call: system2("cat", c("/etc/*-release"), stdout = TRUE, stderr = TRUE) erro

Re: [R] Error loading "XLConnect" library

2021-04-14 Thread Bernard Comcast
Thanks Marc Bernard Sent from my iPhone so please excuse the spelling!" > On Apr 14, 2021, at 2:20 PM, Marc Schwartz wrote: > > Hi, > > When you experience errors with a third party package like that, one of the > first steps to take is to review the results of CRAN

Re: [R] Suggestions as to how to proceed would be appreciated...............

2022-05-22 Thread Bernard Comcast
Its simply a query to know what tools/packages R has for correlating single values with multivalued vectors. If that is outside the scope of the PG then so be it. Bernard Sent from my iPhone so please excuse the spelling!" > On May 22, 2022, at 1:52 PM, Bert Gunter wrote: > &

Re: [R] Pause script at input from terminal (interactive use)

2019-04-19 Thread Bernard Comcast
I have used the shiny package to create a web page user interface and it works well. Bernard Sent from my iPhone so please excuse the spelling!" > On Apr 19, 2019, at 1:12 AM, Luigi Marongiu wrote: > > I am realizing as well that R is not the best option for an > inter

[R] Surface plots....

2019-04-25 Thread Bernard Comcast
Does anyone have a recommendation for the best package/function for doing surface plots? Bernard Sent from my iPhone so please excuse the spelling!" __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/ma

Re: [R] Surface plots....

2019-04-25 Thread Bernard McGarvey
If I have a set of data (x,y,z) and I want to plot z(x,y) as a surface plot. What I am looking for is one with a lot of functionality like easily rotate the plot and so on. Thanks Bernard McGarvey Director, Fort Myers Beach Lions Foundation, Inc. Retired (Lilly Engineering Fellow

Re: [R] Surface plots....

2019-04-25 Thread Bernard Comcast
That works nicely for what I need Thanks Bernard Sent from my iPhone so please excuse the spelling!" > On Apr 25, 2019, at 3:21 PM, Duncan Murdoch wrote: > >> On 25/04/2019 2:24 p.m., Bernard McGarvey wrote: >> If I have a set of data (x,y,z) and I want to plot z

[R] Curve fitting

2020-04-05 Thread Bernard Comcast
Any recommendations on an R package to fit data to a nonlinear model Y=f(x) with a single x and y variable? I want to be able to generate parameter uncertainty estimates and prediction uncertainties if possible. Bernard Sent from my iPhone so please excuse the spelling

Re: [R] Curve fitting

2020-04-05 Thread Bernard Comcast
Thanks Jeff Bernard Sent from my iPhone so please excuse the spelling!" > On Apr 5, 2020, at 3:14 PM, Jeff Newmiller wrote: > > stats::nlm? > >> On April 5, 2020 11:53:10 AM PDT, Bernard Comcast >> wrote: >> Any recommendations on an R package to fit

[R] Correlated sampling

2020-04-09 Thread Bernard Comcast
I want to create a Monte Carlo simulation with 4 input parameters that are correlated with each other. The parameters have normal distributions and the variance/covariance matrix is known. Are there any R functions available to generate such correlated normal random variables? Bernard Sent

[R] Interactive stats packages

2020-04-16 Thread Bernard Comcast
Do any of you know of any interactive stats analysis packages built on top of R? Bernard Sent from my iPhone so please excuse the spelling!" __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listi

Re: [R] Interactive stats packages

2020-04-16 Thread Bernard Comcast
Yes Ista, that is what I meant by interactive. Something that is menu driven with a GUI rather than command line. Thanks Bernard Sent from my iPhone so please excuse the spelling!" > On Apr 16, 2020, at 5:44 PM, Ista Zahn wrote: > > On Thu, Apr 16, 2020 at 4:48 PM Bernard Co

Re: [R] Interactive stats packages

2020-04-16 Thread Bernard Comcast
Thanks Bernard Sent from my iPhone so please excuse the spelling!" > On Apr 16, 2020, at 6:10 PM, Bert Gunter wrote: > > In addition ... > > https://cran.r-project.org/web/views/TeachingStatistics.html > > Bert Gunter > > "The trouble with having an

Re: [R] Interactive stats packages

2020-04-16 Thread Bernard Comcast
Thanks Bernard Sent from my iPhone so please excuse the spelling!" > On Apr 16, 2020, at 9:01 PM, Ista Zahn wrote: > > On Thu, Apr 16, 2020 at 8:05 PM Bernard Comcast > wrote: >> >> Yes Ista, that is what I meant by interactive. Something that is menu driv

[R] COVID-19 datasets...

2020-05-04 Thread Bernard McGarvey
Just curious does anyone know of a website that has data available in a format that R can download and analyze?   Thanks Bernard McGarvey Director, Fort Myers Beach Lions Foundation, Inc. Retired (Lilly Engineering Fellow). __ R-help@r

Re: [R] COVID-19 datasets...

2020-05-04 Thread Bernard Comcast
Thanks, i will take a look Bernard Sent from my iPhone so please excuse the spelling!" > On May 4, 2020, at 2:49 PM, James Spottiswoode wrote: > > Sure. COVID-19 Data Repository by the Center for Systems Science and > Engineering (CSSE) at Johns Hopkins University

Re: [R] unstable results of nlxb fit

2020-05-07 Thread Bernard McGarvey
180 2.6139e-02 [96,] 3359.2 4.6052e+04 6.8321e+00 -7.158584 2.6139e-02 [97,] 3359.2 2.5464e+03 6.8321e+00 -1.811626 2.6139e-02 [98,] 3359.2 6.8321e+00 1.0338e+030.026139 -1.5365e+01 [99,] 3359.2 1.3783e+01 -6.9507e+000.026139 2.6139e-02 [100,] 3359.2 6.8321e+00 6.7153e

Re: [R] Fitting Richards' curve

2020-05-13 Thread Bernard Comcast
John, have you ever looked at interval optimization as an alternative since it can lead to provably global minima? Bernard Sent from my iPhone so please excuse the spelling!" > On May 13, 2020, at 8:42 AM, J C Nash wrote: > > The Richards' curve is analytic, so nlsr:

Re: [R] Fitting Richards' curve

2020-05-13 Thread Bernard Comcast
Also, in the full curve referenced on Wikpedia, the parameters Q And M are confounded - you only need one or the other But not both. If you are using both and trying to estimate them both you will have problems. I have fitted these curves quite easily using the Solver in Excel. Bernard Sent

Re: [R] Fitting Richards' curve

2020-05-13 Thread Bernard Comcast
I have been using nlsr() to fit s curves to Covid-19 data over the past few weeks and I have not had any issues. Bernard Sent from my iPhone so please excuse the spelling!" > On May 13, 2020, at 5:16 PM, Abby Spurdle wrote: > > Hi Christofer, > > This doesn't re

[R] Plotting shipment routs on a world map

2020-05-27 Thread Bernard McGarvey
ents. How do I add these shipments as individual lines onto the world map. If I need to I can convert from lat & long to map coordinates using the mercator projection equations. My issue is what ggplot commands to use. Thanks Bernard McGarvey Director, Fort Myers Beach Lions Foundation

Re: [R] plot shows exponential values incompatible with data

2020-07-09 Thread Bernard Comcast
Use the xlim option in the plot function? Bernard Sent from my iPhone so please excuse the spelling!" > On Jul 9, 2020, at 10:06 AM, Luigi Marongiu wrote: > > Thank you, > but why it does not work in linear? With the log scale, I know it > works but I am not looking for i

Re: [R] How to run Hutcheson t-test on R?

2020-09-07 Thread Bernard Comcast
This website has an example calculation shown in Excel Which might help in programming it in R. https://www.dataanalytics.org.uk/comparing-diversity/ Bernard Sent from my iPhone so please excuse the spelling!" > On Sep 7, 2020, at 6:17 PM, Rolf Turner wrote: > >  >> O

[R] histograms embedded in a plot (as alternative to jitter)

2014-03-05 Thread Bernard North
Dear R list, I am plotting a discrete valued number on the y axis against a continuous variable on the x axis. To allow sample size to be viewed for the discrete groups I am using vertical jitter. So my code is along the lines of y<-rpois(500,2) x<-rnorm(500,y,1) plot(x,jitter(y)) It has not be

[R] Chess Playing Software Written in R

2013-10-28 Thread Rob Bernard
Have there been attempts to build a chess engine in R? If so, is it available anywhere? I recognize that R really isn’t the right language for a chess engine, but I was more curious if it had been attempted. Thank you. Rob Bernard -- -- Robert N. Bernard minus

[R] issue with Matrix package

2010-10-22 Thread Bernard SEBASTIEN
I have an issue with Matrix package. When I try to load it (with R version 2.10.1 with Windows XP) I have an error message in return: Error in registerS3method(Info[i, 1], Info[i, 2], Info[i, 3], env) : aucun slot de nom "methods" pour cet objet de la classe "derivedDefaultMethod" any idea o

[R] graphing plots of plots

2010-08-21 Thread Bernard Leemon
I want to make a graph where each element plotted is itself a graph. I can see how to use par(fig=) and viewport to do that, but they require (i think) me to do my own scaling as they are scaled to the graphics window. any advice on which approach I should take (just bite the bullet and do my own

Re: [R] graphing plots of plots

2010-08-21 Thread Bernard Leemon
many useful suggestions that I'll work on, especially babtiste's detailed code. yes, I want something like Fig 1.7, or 7.18, or 7.22, but where the x,y values are characteristics of the mini-histogram that is plotted. attached (if it makes it through) is what i'm trying to do in R. On Sat, Aug

Re: [R] graphing plots of plots

2010-08-21 Thread Bernard Leemon
I've now tried Babtiste's code and my reaction is WOW! it shows me how to do just what I need to do. I know enough to follow all the code but it would have taken me a LOOO time to generate it. thank you Babtiste! gary On Sat, Aug 21, 2010 at 2:15 PM, baptiste auguie < baptiste.aug...@g

[R] nls() newbie convergence question

2008-06-04 Thread Bernard Leemon
I'm sure this must be a nls() newbie question, but I'm stumped. I'm trying to do the example from Draper and Yang (1997). They give this snippet of S-Plus code: Specify the weight function: weight < - function(y,x1,x2,b0,b1,b2) { pred <- b0+b1*x1 + b2*x2 parms <- abs(b1*b2)^(1/3) (y-pred)/parms

[R] nls() newbie convergence problem

2008-06-04 Thread Bernard Leemon
I'm sure this must be a nls() newbie question, but I'm stumped. I'm trying to do the example from Draper and Yang (1997). They give this snippet of S-Plus code: Specify the weight function: weight < - function(y,x1,x2,b0,b1,b2) { pred <- b0+b1*x1 + b2*x2 parms <- abs(b1*b2)^(1/3) (y-pred)/parms

[R] Random effects dimension in nlme and P-values

2008-06-10 Thread Marc Bernard
data than M2 Many thanks in advance Bernard, - Une boite mail plus intelligente. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/ma

[R] NLME: Prediction intervals for random effects

2008-06-16 Thread Marc Bernard
Dear all,   Is there a function to calculate the  prediction intervals for random effects in non-linear mixed models? I found a way to do it for linear mixed models but not for non-linear mixed one.   Many thnaks   Bernard

[R] prediction intervals for random effects in nlme

2008-06-16 Thread Marc Bernard
for non-linear mixed one.   Many thanks   Bernard _ o.fr [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

[R] sequence of vectors

2007-11-19 Thread Marc Bernard
r example is (1,4,6). Many thanks in advance, Bernard - [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEAS

[R] Choosing the right model

2007-11-21 Thread Marc Bernard
in the firts model. Thus my question: Which model should I select: the one that fits better to the data (i.e Model 1) or the one that shows significant effects of my covariate (Model2). Or in another way, Is it legitimate to use model 2? Many thanks in advance, Bernard

[R] bootstrap for nlme

2007-11-23 Thread Marc Bernard
Dear All, Is there any bootstrap function in nlme for a non linear mixed model. Either a non-parametric or parametric one. Thanks Bernard - [[alternative HTML version deleted

[R] lme output

2007-12-05 Thread Marc Bernard
re equals to the optimized parameters in fm2 not in fm1. I am missing something I suppose. Bests, Bernard - [[alternative HTML version deleted]] __ R-help@r-project.org mailing list http

[R] confidence interval for roc curves

2009-02-05 Thread marc bernard
Dear all, I am looking for an R package that allows me to calculate and plot the confidence limits for the roc curve using for example some bootstrapping. I tried "ROCR" who seems doing such work but i couldn't find the right option to do it. Many thanks Bests Marc ___

[R] Roc curves confidence intervals

2009-02-05 Thread marc bernard
Dear all, I am looking for an R package that allows me to calculate and plot the confidence intervals for the roc curve using for example some bootstrapping. I tried "ROCR" who seems doing such work but i couldn't find the right option in it. Many thanks Bests Marc _

[R] boxplot and number of observations per box

2008-01-30 Thread Marc Bernard
Dear all, How can I plot the number of observations per box in a boxplot. Many thanks, Bernard - [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https

[R] boxplot and number of observations per box

2008-01-30 Thread Marc Bernard
Dear all, How can I plot the number of observations per box in a boxplot. Many thanks, Bernard - [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https

Re: [R] how to calculate chisq value in R

2008-02-07 Thread Bernard Leemon
On Thu, Feb 7, 2008 at 1:06 PM, John Kane <[EMAIL PROTECTED]> wrote: > ?chisq.test > --- jinjin <[EMAIL PROTECTED]> wrote: > > > > > for example, an expression such as chisq(df=1,ncp=0) > > ? > > perhaps pchisq(chisqvalue, df=1, ncp=0) is what you are looking for to evaluate the probability for

[R] a kinder view of Type III SS

2008-02-07 Thread Bernard Leemon
A young colleague (Matthew Keller) who is an ardent fan of R is teaching me much about R and discussions surrounding its use. He recently showed me some of the sometimes heated discussions about Type I and Type III errors that have taken place over the years on this listserve. I'm presumptive eno

Re: [R] correlation

2008-02-08 Thread Bernard Leemon
It is easy to worry too much about using numbers to represent order when using statistics like the correlation. this little example shows that the correlation is essentially a rank-order correlation itself: > x <- 1:20 > y <- x^2 > cor(x,y) [1] 0.9713482 x and y are definitely not linearly relate

Re: [R] R on Mac PRO does anyone have experience with R on such a platform ?

2008-02-09 Thread Bernard Leemon
I have R on all sorts of Macs, including one's a lot whimpier than the one you are describing and it works great on all of them. gary mcclelland colorado On Sat, Feb 9, 2008 at 6:29 PM, Maura E Monville <[EMAIL PROTECTED]> wrote: > I saw there exists an R version for Mac/OS. > I'd like to hear fr

Re: [R] Do I need to use dropterm()??

2008-02-10 Thread Bernard Leemon
Hi Dani, it would be better to start with a question you are trying to ask of your data rather than trying to figure out what a particular function does. with your variables and model, even if the component terms were not significant, they must in the model or the product of sunlight and aspect wi

Re: [R] Using R in a university course: dealing with proposal comments

2008-02-11 Thread Bernard Leemon
Hi Arin, Others have commented wisely an your first issue. As for your 2nd issue, I had my own concerns about using R in undergraduate teaching because I had always used a point-and-click program for that level. I should not have worried. The current generation has been typing on their keyboards

Re: [R] R programming style

2008-02-11 Thread Bernard Leemon
I just got a copy of A First Course in Statistical Programming with R by W. John Braun and Duncan J. Murdoch. Cambridge. at amazon: http://www.amazon.com/First-Course-Statistical-Programming-R/dp/0521694248/ first couple of chapters are base R that most everyone would know before wanting to pro

[R] good references on "survival analysis"

2008-02-19 Thread Marc Bernard
Dear all, I am looking for a good reference on "Survival analysis". I am looking for a booking containing both applications and Maths. Explaining different methods in survival analysis Many thanks

[R] Help with cochran.test

2007-11-05 Thread Stephanie Bernard
Hi, I have been trying to use the function cochran.test from the Outliers package to test for homogeneity of variance. This works well except when I use transformed data. Would anyone have an idea why it doesn't work and how I could do the cochran test on transformed data? Thanks, Stephanie >l

[R] Help with Bartlett's test on linear model

2007-11-14 Thread Stephanie Bernard
Hi all, I would like to test the homoegeneity of variances between several linear model for some analysis of covariance. It seems that the Bartlett's test is a good test to use but I am having problem using with linear model and I cannot find any examples on the internet. There are some exampl

Re: [R] Nagelkerkes R2N

2009-07-15 Thread North, Bernard V
I am interested Andrea is whether you ever established why your R2 was 1. I have had a similar situation previously. My main issue though, which I'd be v grateful for advice on, is why I am obtaining such negative values -0.3 for Somers Dxy using validate.cph from the Design package given m

[R] negative Somers D from Design package

2009-07-15 Thread North, Bernard V
.0017677983 0.091630642 150 U -0.001562582 -0.001579618 0.001150175 -0.0027297932 0.001167211 150 Q 0.094961022 0.096745857 0.092248266 0.0044975915 0.090463431 150 Dr Bernard North Statistical Consultant Statistical Advisory Service Advice and Courses on Research Design and

[R] using axis.Date with interaction.plot

2009-10-13 Thread North, Bernard V
d. So I suppose I could do that and add time series for successive time series using lines( but then I wouldn't have a legend or I'd have to create one "manually" Many thanks for any advice Bernard speclong Date time outcome id 1.1 1998-01-291 8.11879e-

[R] output (p-values) of "fastbw" in Design package

2009-10-27 Thread North, Bernard V
I am using the validate option in the Design package with the Cox survival model. I am using the bw=T option which, like the fastbw function, performs a backward elimination variable selection The output includes a series of columns (below) giving information on eliminated variables. My question

[R] confidence intervals for Harrell's c-index in survival setting

2010-08-17 Thread North, Bernard V
Dear All, Is it possible to get confidence intervals for Harrell's concordance index or, equivalently, Somer's D using the rms package or in some other way ? I have survival data it would be the c-index in the Cox model setting Many thanks Dr Bernard North Statistical Consultant S

[R] C-statistics (AUCs) from rcorr.cens or survcomp time-dependent ROC curves

2011-03-25 Thread North, Bernard V
I am using the rcorr.cens function from the Hmisc package and the time-dependent ROC curve obtained using tdrocc in the survcomp package. I understand that the C statistic from rcorr.cens has to be subtracted from 1 if high values of the risk variable lower survival. Given that I wonder what the

[R] relation between tdrocc AUC and c-statistic from rcorr.cens

2011-06-21 Thread North, Bernard V
I am using the rcorr.cens function from the Hmisc package and the time-dependent ROC curve obtained using tdrocc in the survcomp package. I understand that the C statistic from rcorr.cens has to be subtracted from 1 if high values of the risk variable lower survival. Given that I wonder what the

[R] Simulated annealing method with restarts

2008-05-09 Thread Gordon, Bernard (Research)
anyone know of an implementation that does this? I searched both the internet and the help archives and was unable to find anything. Thanks in advance. Bernard Gordon This is not an offer (or solicitation of an offer) to buy/sell