[R] rnaturalearth: detail by degrees

2018-11-03 Thread Ferri Leberl
Dear all, I have the graph of a path, walking a number of places specified by name, logitude and latitude – thanks to Don MacQueen. xliam and ylim define a certain section of the earth. How can I put this section of a political map into the background? Thank you in advance. Yours, Ferri   _

Re: [R] Different stack barplots - same color legends

2018-11-03 Thread P. Roberto Bakker
Dear Richard, Thank you so much for all your work and time you punt in it. I will start with your suggestions and let you know how far I come. Also thanks to the others who helpt me. Best Roberto Op do 1 nov. 2018 om 23:42 schreef Richard M. Heiberger : > ## reminder on how the levels= argument

Re: [R] Different stack barplots - same color legends

2018-11-03 Thread P. Roberto Bakker
Thank you Op do 1 nov. 2018 om 00:25 schreef Jim Lemon : > Hi Roberto, > Here is a snippet of code that translates the text responses of the > BIS-11 into numeric values. Note the reversal of the order in the > second item: > > BIS$Q1<-as.numeric(factor(BIS$Q1, > levels=c("Almost","Often","Occas

[R] spi package

2018-11-03 Thread Okan Mert Katipoglu
Hi,Can I get information about following spi error, spi(1,"tercanspi.txt",1966,2017) spi(9,"tercanspi.txt",1966,2017,"Tercan Standart Yağış İndeksi",2,"Yıllar","Aylar") spi(12,"tercanspi.txt",1966,2017,"Tercan Standart Yağış İndeksi",2,"Yıllar","Aylar") spi(24,"tercanspi.txt",1966

Re: [R] spi package

2018-11-03 Thread Sarah Goslee
It would help a lot if you actually told us what your error was. Based on ?spi::spi your command looks correct, so we need more information. Sarah On Sat, Nov 3, 2018 at 10:02 AM Okan Mert Katipoglu wrote: > > > Hi,Can I get information about following spi error, > > spi(1,"tercanspi.txt",19

Re: [R] Granger causality: lag selection

2018-11-03 Thread John C Frain
This is probably a question about econometric methods rather than one about R, While I would probably use an information criterion this would only be my first step in determining an appropriate lag length. One needs to check 1. The whiteness of the residuals 2. Non-normality and 3. Structural Cha

[R] cox model

2018-11-03 Thread Medic
I need a R-code for a situation that is well described in the sas help. I would be very grateful for the help! "Time-dependent variables can be used to model the effects of subjects transferring from one treatment group to another. One example of the need for such strategies is the Stanford heart t

[R] Predict follow up time using parametric model in r

2018-11-03 Thread Israel Ortiz
I am trying to predict follow-up time using several survival models, both parametric and semi-parametric. I achieve it for semi parametric models using predict.coxph function in R from survival package using type = "expected" as indicated in help. However, for parametric models, this option doesn't

Re: [R] cox model

2018-11-03 Thread David Winsemius
It's also "well described" in the help materials for the obvious recommended package that ships with every copy of R. My copy sits at http://127.0.0.1:29434/library/survival/doc/timedep.pdf. Therneau's S package was first ported to R by Thomas Lumley and later Therneau took over maintenance.

Re: [R] cox model

2018-11-03 Thread Jeff Newmiller
Stop re-posting this question. It only irritates people... it does not improve your chances of getting help. What does improve your chances is reading the Posting Guide and following the advice given there. Your question amounts to asking someone to figure out what theory you should apply to a

Re: [R] Predict follow up time using parametric model in r

2018-11-03 Thread David Winsemius
On 11/3/18 12:59 PM, Israel Ortiz wrote: I am trying to predict follow-up time using several survival models, both parametric and semi-parametric. I achieve it for semi parametric models using predict.coxph function in R from survival package using type = "expected" as indicated in help. Howeve

Re: [R] Predict follow up time using parametric model in r

2018-11-03 Thread David Winsemius
On 11/3/18 12:59 PM, Israel Ortiz wrote: I am trying to predict follow-up time using several survival models, both parametric and semi-parametric. I achieve it for semi parametric models using predict.coxph function in R from survival package using type = "expected" as indicated in help. Howeve

Re: [R] cox model

2018-11-03 Thread David Winsemius
It's also "well described" in the help materials for the obvious recommended package that ships with every copy of R. My copy sits at http://127.0.0.1:29434/library/survival/doc/timedep.pdf. Therneau's S package was first ported to R by Thomas Lumley and later Therneau took over maintenance.

Re: [R] date and time data on x axis

2018-11-03 Thread snowball0916
Hi, Don After I've tried 1 month data. It show me like attachment. The problem is it's hard to identify the the high point from the graph. Is there possible, when my cursor move on some point , it will show me both x axis and y axis data? OR Is there other way to get the same goal? Thanks very

Re: [R] date and time data on x axis

2018-11-03 Thread Bert Gunter
See ?identify and ?locator Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Sat, Nov 3, 2018 at 6:47 PM snowball0916 wrote: > Hi, Don > After I'v

Re: [R] date and time data on x axis

2018-11-03 Thread snowball0916
Hi, Bert I will check those two, by the way, how can you find the two function? have you used them before? Thanks very much. From: Bert Gunter Date: 2018-11-04 10:07 To: snowball0916 CC: MacQueen, Don; R-help Subject: Re: [R] date and time data on x axis See ?identify and ?locator Cheers, B