Re: [R] offset in nlme

2016-12-28 Thread Jeff Newmiller
You don't need to post WORKING code... just code that leads to the problem you want help with. The ability to create the error and then eliminate the error greatly reduces guessing on both sides of the conversation about the nature of the question. (Things the asker did not know were important b

[R] Rbbg usurped ?

2016-12-28 Thread Tolga Uzuner
Dear R users, I have some old code that was using Rbbg, which no longer appears to be working. I tried to download Rbbg using the line: install.packages("Rbbg", repos = "http://r.findata.org";) in R version 3.3.2 on a Windows 10 machine and got the following error: > install.packages("Rbbg",

Re: [R] offset in nlme

2016-12-28 Thread PIKAL Petr
Hi > -Original Message- > From: Jeff Newmiller [mailto:jdnew...@dcn.davis.ca.us] > Sent: Wednesday, December 28, 2016 10:13 AM > To: PIKAL Petr ; r-help mailing list project.org> > Subject: RE: [R] offset in nlme > > You don't need to post WORKING code... just code that leads to the probl

Re: [R] Rbbg usurped ?

2016-12-28 Thread Sarah Goslee
If you actually visit that link, you will see that the directory structure isn't laid out in the way that install.packages() currently expects for a repo, but that you can still download the package yourself, and presumably install it from local file. On Wed, Dec 28, 2016 at 4:41 AM Tolga Uzuner

Re: [R] Bayesian cox model: spBayesSurv package

2016-12-28 Thread radhika sundar
The example code for the indeptCoxph function in the spBayesSurv package has been updated(this is not cross-posted anywhere else). See code below. The author simulates data to illustrate the Cox model - I am stuck trying to understand the role of the functions f0oft, S0oft, fioft and Sioft as als

Re: [R] Bayesian cox model: spBayesSurv package

2016-12-28 Thread David Winsemius
> On Dec 28, 2016, at 4:30 AM, radhika sundar > wrote: > > The example code for the indeptCoxph function in the spBayesSurv package has > been updated(this is not cross-posted anywhere else). See code below. The > author simulates data to illustrate the Cox model - I am stuck trying to > u

Re: [R] Rbbg usurped ?

2016-12-28 Thread John Laing
I've cleaned up the findata repository, you should now be able to install Rbbg as expected. But that said, the package is no longer being actively developed. Recent efforts have been taking place in the Rblpapi package. The interface is similar, though not strictly compatible. If you're doing much

[R] Predictive analysis based on past data

2016-12-28 Thread Winson Lui
HI, I have a historical dataset which tells who bought our products. This dataset contains ID, Age, Gender and Salary. I have another set of data which contains the four fields above. How should I use R to calculate the probability of purchase of each customer in the second dataset or whether th

[R] recovering PLSDA equations for prediction (outside R)

2016-12-28 Thread Diego Ruiz Moreno
Hi all, I'm trying to use the result of a PLSDA model outside R, but I'm having a really hard time finding documentation on how to write the model from the results in the fit object. In order to provide a good starting point I believe that this code creates a good model that is stored in the fit va

Re: [R] Reshape to wide format

2016-12-28 Thread David L Carlson
Your original data does not contain a field called year. This will not give you what you asked for which was a separate row for each month and you have specified month as part of the timevar (columns) and the idvar (rows). Perhaps you want year and month to specify the rows using idvar=c("year",

Re: [R] Rbbg usurped ?

2016-12-28 Thread Dirk Eddelbuettel
On 28 December 2016 at 13:46, John Laing wrote: | I've cleaned up the findata repository, you should now be able to install | Rbbg as expected. | | But that said, the package is no longer being actively developed. Recent | efforts have been taking place in the Rblpapi package. The interface is |

Re: [R] Predictive analysis based on past data

2016-12-28 Thread Bert Gunter
This list is about R programming, not statistical methodology, although there is sometimes an overlap. You should do better posting to a statistics list like stats.stackexchange.com for queries about statistics. Although it looks like you may need to do some studying in a basic regression methods t

[R] Interpolating Splines: Equidistant Points

2016-12-28 Thread Sidoti, Salvatore A.
I am attempting to smooth the jagged paths of animal tracks to determine their distances with greater accuracy. The data is in the form of (x,y) 2D coordinates. My end goal is to produce a set of interpolating points whereby their Cartesian distances are equal to each other. So far, I have been

[R] Export R output in Excel

2016-12-28 Thread Bryan Mac
Hi, How do I export results from R to Excel in a format-friendly way? For example, when I copy and paste my results into excel, the formatting is messed up. Thanks. Bryan Mac bryanmac...@gmail.com __ R-help@r-project.org mailing list -- To UNSUBSCRI

Re: [R] Predictive analysis based on past data

2016-12-28 Thread Vikash Kumar
Collaborative filtering will be helpful. Regards, Vikash On Wed, Dec 28, 2016 at 3:53 PM, Winson Lui wrote: > HI, > > I have a historical dataset which tells who bought our products. This > dataset contains ID, Age, Gender and Salary. > I have another set of data which contains the four fields

Re: [R] [FORGED] Export R output in Excel

2016-12-28 Thread Rolf Turner
On 29/12/16 10:45, Bryan Mac wrote: Hi, How do I export results from R to Excel in a format-friendly way? For example, when I copy and paste my results into excel, the formatting is messed up. Short answer: *Don't*. ("Friends don't let friends use excel for statistics.") Longer answer:

Re: [R] Interpolating Splines: Equidistant Points

2016-12-28 Thread Bert Gunter
I think this is really a statistical issue, not a general r programming issue, which is what r-help is about. I think a much better target for this post would be the r-sig-geo list, where you likely would find the expertise you need. r-sig-ecology might also work, so you should probably check this

Re: [R] [FORGED] Export R output in Excel

2016-12-28 Thread Rolf Turner
On 29/12/16 12:48, Bryan Mac wrote: Hi Rolf, I wanted to export the output/results of R to an Excel file for easier comparisons/reporting. When I tried to copy and paste my output to an excel file the formatting was off. I want to export my descriptive stats and the linear regression. This mak

Re: [R] [FORGED] Export R output in Excel

2016-12-28 Thread Bryan Mac
Hi Rolf, I wanted to export the output/results of R to an Excel file for easier comparisons/reporting. When I tried to copy and paste my output to an excel file the formatting was off. I want to export my descriptive stats and the linear regression. I googled “Export R output to excel” but did

Re: [R] Export R output in Excel

2016-12-28 Thread Jim Lemon
Hi Bryan, When I have to do something like this, I usually go through HTML output and import it into MS Word. I am not suggesting that this is the best thing to do, but it might get you out of trouble. I'm not sure whether importing HTML into Excel will work as well. I assume that you are running a

[R] How to overlay lines and rectangles in lattice plot key

2016-12-28 Thread sbihorel
Hi, I would like to create a custom key for a lattice xyplot in which line elements are displayed on top of rectangle elements. In the example code below, the lines and rectangles are shown side by side (the legend itself is meaningless, but that is not the point). Is there a way to overlay t

Re: [R] Export R output in Excel

2016-12-28 Thread Omar André Gonzáles Díaz
use "write.csv("you-df", "name-of-file.csv", row.names = FALSE). And Google please, as others have suggested. 2016-12-28 21:33 GMT-05:00 Jim Lemon : > Hi Bryan, > When I have to do something like this, I usually go through HTML > output and import it into MS Word. I am not suggesting that this i

Re: [R] How to overlay lines and rectangles in lattice plot key

2016-12-28 Thread David Winsemius
> On Dec 28, 2016, at 6:50 PM, sbihorel > wrote: > > Hi, > > I would like to create a custom key for a lattice xyplot in which line > elements are displayed on top of rectangle elements. In the example code > below, the lines and rectangles are shown side by side (the legend itself is > mea

Re: [R] Need Help, Unable to find the problem in R Script

2016-12-28 Thread David Winsemius
> On Dec 27, 2016, at 7:28 PM, amit rathee > wrote: > > R/Sir,    i am trying to find > precision and recall value for multi class software clustering problem using > package "ClusterCrit"i have attached my source code > "Clustering.txt" and input files "ClassCoupling.txt" > & "JUnitGol

Re: [R] How to overlay lines and rectangles in lattice plot key

2016-12-28 Thread Richard M. Heiberger
Yes, but it will probably require work. I think you will need to write a grob that does what you want and then use the grob in a legend statement in the xyplot. Start with the 'legend' argument to xyplot (about line 940 in ?xyplot). You will probably need to work directly with grid functions and

Re: [R] How to overlay lines and rectangles in lattice plot key

2016-12-28 Thread Duncan Mackay
Hi Is this something like what you are looking for? I have put it on the right and heights etc are just a quick guess. (all i have time for) It may be a little too complicated for what you want but I thought of this first based on your description rather than the plot. library(grid) library(latt

Re: [R] How to overlay lines and rectangles in lattice plot key

2016-12-28 Thread Richard M. Heiberger
I think the intended appearance is closer to this xyplot(Sepal.Length + Sepal.Width ~ Petal.Length + Petal.Width, iris, type = c("p", "r"), jitter.x = TRUE, jitter.y = TRUE, factor = 5, key = list(between=c(-4.5), column=4, text=list(lab=paste0(" ", letters[1:4], "

Re: [R] Export R output in Excel

2016-12-28 Thread PIKAL Petr
Hi For rectangular data write.table(tab, "clipboard", sep = "\t", row.names = F) followed by Ctrl-V in Excel or write.table(tab, "somefile.xls", sep = "\t", row.names = F) For free format output like summary(somefit) I prefer to copy it to Word and use font like Courier New with monospaced le

Re: [R] How to overlay lines and rectangles in lattice plot key

2016-12-28 Thread Duncan Mackay
Hi It makes it easier library(grid) library(lattice) # legend XY04.glay <- grid.layout(nrow = 4, ncol = 2, heights = unit(rep(1, 2), rep("cm", 2)), widths = unit(c(0.4, 0.8), c("in","in")), just = "centre") XY04.fmG <-

Re: [R] Rbbg usurped ?

2016-12-28 Thread Tolga Uzuner
Many thanks John, Bush, Dirk. Kind regards > On Dec 28, 2016, at 9:57 PM, Dirk Eddelbuettel wrote: > > > On 28 December 2016 at 13:46, John Laing wrote: > | I've cleaned up the findata repository, you should now be able to install > | Rbbg as expected. > | > | But that said, the package is no

Re: [R] How to overlay lines and rectangles in lattice plot key

2016-12-28 Thread Duncan Mackay
I forgot to change the xyplot for the colours; if you want the same colours in the key you need to use the par.settings argument or set the settings for the device. the xyplot becomes xyplot(Sepal.Length + Sepal.Width ~ Petal.Length + Petal.Width, iris, par.settings = list(superpose.symbol