[R] package building problem Centos 7 & R 3.4.1

2017-08-11 Thread Paul Johnson
Dear everybody: Packages that DO pass the package check on my Ubuntu 17.04 laptop with R 3.4.1 and Mac OSX do not build on Centos 7 with R 3.4.1. I'm pretty sure I have an environment defect, but cannot find it. I find posts from various people about this problem since 2012. But I've checked

Re: [R] PROC MIXED RANDOM equivalence in R nlme

2017-08-11 Thread Dennis F. Kahlbaum
Hi David: Thanks for your response and suggestions. --Dennis On 8/11/17 2:03 PM, David Winsemius wrote: On Aug 11, 2017, at 7:56 AM, Dennis F. Kahlbaum wrote: Hi Robert: Thanks for your response, as well. I'm sorry. As you've discovered, I made some capitalization errors

Re: [R] PROC MIXED RANDOM equivalence in R nlme

2017-08-11 Thread David Winsemius
> On Aug 11, 2017, at 7:56 AM, Dennis F. Kahlbaum wrote: > > Hi Robert: > > Thanks for your response, as well. > > I'm sorry. As you've discovered, I made some capitalization errors when > posting my R code. The actual R code does use "lme", "data", and "random". > > The

Re: [R] Directional Forecast

2017-08-11 Thread David Winsemius
> On Aug 11, 2017, at 4:47 AM, Suzen, Mehmet wrote: > > I suggest, you read: > Forecasting: principles and practice from Hyndman-Athana­sopou­los > https://www.otexts.org/fpp I also suggest reading the Posting Guide and reposting the question in palin text. The HTML format

Re: [R] Package nleqslv ERROR

2017-08-11 Thread Berend Hasselman
Just to set things straight: The error message "Error in nleqslv(xstart, fun) : Length of fn result <> length of x!" is issued by the underlying nleqslv C function. refers to the second argument of function nleqslv which is named fn. It is not issued by R itself. Other have already pointed

Re: [R] Annotation Ticks on the axis

2017-08-11 Thread David Winsemius
> On Aug 11, 2017, at 3:23 AM, Vivek Sutradhara wrote: > > Hi, > Thanks for the quick answer. I looked into the link that you provided. But > I am still not able to implement a solution. Here is my attempt : > > library(ggplot2) > x<-1:10 > y<-x^2 >

Re: [R] EOF within quoted string

2017-08-11 Thread William Dunlap via R-help
I tried reading it with read.table, as below, and didn't see any obvious problems. > txt <- readLines("http://ssc.wisc.edu/~ahanna/20_newsgroups.csv;) > str(txt) chr [1:11315] ",target,text" ... > writeLines(substring(txt[1:5],1,40)) ,target,text 0,9,"From: cub...@garnet.berkeley.edu (

Re: [R] Package sqldf in R and dates manipulation

2017-08-11 Thread Gabor Grothendieck
See FAQ #4 on the sqldf github home page. On Fri, Aug 11, 2017 at 9:21 AM, Mangalani Peter Makananisa wrote: > Dear all, > > I recently read the book " R data preperation and manipulation using sqldf > package" by Djoni Darmawikarta > However, I have a problem with

[R] Fwd: RE: Package sqldf in R and dates manipulation

2017-08-11 Thread manginduvho
Sent from Samsung tablet. Dear all,   I recently read the book “ R data preperation and manipulation using sqldf package”  by Djoni Darmawikarta  However, I have a problem with manipulation of dates using this package, I do not get the expected results. Do I need to install some packages  

Re: [R] Package sqldf in R and dates manipulation

2017-08-11 Thread Mangalani Peter Makananisa
Dear all, I recently read the book " R data preperation and manipulation using sqldf package" by Djoni Darmawikarta However, I have a problem with manipulation of dates using this package, I do not get the expected results. Do I need to install some packages to be able to subset the data by

Re: [R] PROC MIXED RANDOM equivalence in R nlme

2017-08-11 Thread Dennis F. Kahlbaum
Hi Robert: Thanks for your response, as well. I'm sorry. As you've discovered, I made some capitalization errors when posting my R code. The actual R code does use "lme", "data", and "random". The dataframe is indeed named "emiss" and each item in the formula is a column in the dataframe.

[R] Revolutions blog: July 2017 roundup

2017-08-11 Thread David Smith via R-help
Since 2008, Microsoft (formerly Revolution Analytics) staff and guests have written about R every weekday at the Revolutions blog (http://blog.revolutionanalytics.com) and every month I post a summary of articles from the previous month of particular interest to readers of r-help. In case you

Re: [R] PROC MIXED RANDOM equivalence in R nlme

2017-08-11 Thread Dennis F. Kahlbaum
Hi Thierry: Thank you for your response. I have been trying to resolve this issue for some time, without success. That's why I've posted the problem hoping that someone with both SAS and R experience would be able to help. As background, this SAS code has been used on many different data sets

Re: [R] PROC MIXED RANDOM equivalence in R nlme

2017-08-11 Thread Robert Baer
On 8/10/2017 8:34 AM, Dennis F. Kahlbaum wrote: -- snip -- I don't have real help, but I'll remind you that R is case sensitive, and it looks like that will be at least one problem in the solution your are working on below: lme not LME data not DATA random = RANDOM

Re: [R] PROC MIXED RANDOM equivalence in R nlme

2017-08-11 Thread Thierry Onkelinx
Dear Dennis, Your question assumes that people know both SAS PROC MIXED and R nlme. Only a limited number of people do. Add the mathematical formulation of the model. That will increase the number of people that can help you. Adding the number of levels in each categorical variable and the number

Re: [R] Problem with the fdim package

2017-08-11 Thread PIKAL Petr
Hm, I am not an expert in this field but trying to use obviously old package which was removed about 5 years ago from CRAN is asking for problems. There is probably some incompatibility between recent R version and obsolete package. You either 1. need to install/compile R version from

Re: [R] problem with R. program

2017-08-11 Thread S Ellison
> After a run multdrc comment in R program, show warning sign in this > program. I attached the saving page of the script. I hope you could help me, > please. Your model is probably generating negative or zero estimates, resulting in NaN when logs are taken. But multdrc is no longer in drc.

Re: [R] Directional Forecast

2017-08-11 Thread Suzen, Mehmet
I suggest, you read: Forecasting: principles and practice from Hyndman-Athana­sopou­los https://www.otexts.org/fpp __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

[R] Dispersion Index in POT

2017-08-11 Thread FMH via R-help
Dear All, I would like to plot the dispersion index against lambda and dispersion index against threshold. Appreciate if someone could help me to extract dispersion index in POT package. Pls also let me know the way to calculate it manually for a skewed distribution. Thank you

[R] problem with R. program

2017-08-11 Thread AHMAD rahbary
After a run multdrc comment in R program, show warning sign in this program. I attached the saving page of the script. I hope you could help me, please. Thanks a lot A. Rahbari R : Copyright 2005, The R Foundation for Statistical Computing Version 2.1.0 (2005-04-18), ISBN 3-900051-07-0 R is

[R] Cox model with time-dependent coefficients

2017-08-11 Thread Theresa Grimm
Dear R-help Community, I'm currently struggling with some issues extending the proportional Cox model with time-dependent coefficients and could really need some help. Since I'm not experienced in adding code in an email in a nice way I add the link to my question and code:

Re: [R] Annotation Ticks on the axis

2017-08-11 Thread Vivek Sutradhara
Hi, Thanks for the quick answer. I looked into the link that you provided. But I am still not able to implement a solution. Here is my attempt : library(ggplot2) x<-1:10 y<-x^2 df<-data.frame(x=x,y=y) p1<-ggplot(df,aes(x,y))+geom_point()+ scale_x_log10( breaks =

[R] Problem in retrieving list parameters

2017-08-11 Thread niharika singhal
Hello, I am having some problem in retrieving the list elements Code Mean_of_mc is a list as described below mean_mc_1 mean_mc_2 mean_mc_3 mean_mc 0.9577246 2.000516 2.962521 mean_mc 7.957725 9.000516 9.962521 optim(par=c(lVal=2, mu=Mean_of_mc), fn=xnorm,

[R] Directional Forecast

2017-08-11 Thread Sumanta Basak
I've some demand data, for which I wish to judge what will be the direction in the forecast period (Up/Down). What will be a best ML method to do this? Currently I'm using the data given below - 9/4/2016 241 9/11/2016 233 9/18/2016 226 9/25/2016 282 10/2/2016 291 10/9/2016 282 10/16/2016 308

Re: [R] Annotation Ticks on the axis

2017-08-11 Thread PIKAL Petr
Hi see in line > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Vivek > Sutradhara > Sent: Friday, August 11, 2017 11:02 AM > To: r-help > Subject: [R] Annotation Ticks on the axis > > Hi all, > > I would like to have help in

[R] Annotation Ticks on the axis

2017-08-11 Thread Vivek Sutradhara
Hi all, I would like to have help in getting annotation ticks (corresponding to the minor grid) on my plot. Here is my toy example : par(mar=c(5, 6, 5, 5) + 0.1) x<-1:10 y<-x^2 plot(x,y,log="xy",xlab="log(x)",ylab="log(y)") par(new=T)

Re: [R] EOF within quoted string

2017-08-11 Thread Mohan.Radhakrishnan
Yes. I tried that already. Not straightforward. data <- read.csv("20_newsgroups.csv",fill=TRUE,as.is=T,header=F, quote="", sep=",", encoding="UTF-8") This line does read it haphazardly. The emails in the column are split into multiple columns and there are several columns with just ‘NA’.

Re: [R] Problem with the fdim package

2017-08-11 Thread PIKAL Petr
Hi You did not provide necessary information but my gues is that there is some version incompatibility as AFAIK there is no fdim package in recent R version. Did you try examples from fdim docs? Did they work? You should tell us your R version and fdim version. see ?version and