Re: [R] beta binomial distribution installation

2017-10-31 Thread MCGUIRE, Rhydwyn
Hi there, 

It looks like you also need the bioconductor package biobase, I found 
instructions for downloading that package here: www.bioconductor.org/install

Good luck.

Cheers,
Rhydwyn 

-Original Message-
From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Amany 
Abdel-Karim
Sent: Wednesday, 1 November 2017 2:13 PM
To: r-h...@stat.math.ethz.ch
Subject: [R] beta binomial distribution installation

Hello,

I  tried to install package TailRank using the command install.packages 
(RankTail) and library (TailRank) but I got the following errors. So, how can I 
install TaiRank in Rstudio to have se beta-binomial distribution, CDF and 
inverse CDG of  beta-binomal?

The commands I used are:

> install.packages("TailRank")

Installing package into C:/Users/stator-guest/Documents/R/win-library/3.4

(as lib is unspecified)

Warning in install.packages :

  dependency Biobase is not available

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/TailRank_3.1.3.zip'

Content type 'application/zip' length 331270 bytes (323 KB)

downloaded 323 KB



package TailRank successfully unpacked and MD5 sums checked



The downloaded binary packages are in


C:\Users\stator-guest\AppData\Local\Temp\RtmpoVx40V\downloaded_packages

> library(TailRank)

Error: package or namespace load failed for TailRank in loadNamespace(i, 
c(lib.loc, .libPaths()), versionCheck = vI[[i]]):

 there is no package called Biobase

In addition: Warning message:

package TailRank was built under R version 3.4.2




[[alternative HTML version deleted]]

__
This email has been scanned for the NSW Ministry of Health by the Websense 
Hosted Email Security System.
Emails and attachments are monitored to ensure compliance with the NSW Ministry 
of health's Electronic Messaging Policy.
__
___
Disclaimer: This message is intended for the addressee named and may contain 
confidential information.
If you are not the intended recipient, please delete it and notify the sender.
Views expressed in this message are those of the individual sender, and are not 
necessarily the views of the NSW Ministry of Health.
___
This email has been scanned for the NSW Ministry of Health by the Websense 
Hosted Email Security System.
Emails and attachments are monitored to ensure compliance with the NSW Ministry 
of Health's Electronic Messaging Policy.
___
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] beta binomial distribution installation

2017-10-31 Thread Amany Abdel-Karim
Hello,

I  tried to install package �TailRank� using the command install.packages 
(RankTail) and library (TailRank) but I got the following errors. So, how can I 
install TaiRank in Rstudio to have se beta-binomial distribution, CDF and 
inverse CDG of  beta-binomal?

The commands I used are:

> install.packages("TailRank")

Installing package into �C:/Users/stator-guest/Documents/R/win-library/3.4�

(as �lib� is unspecified)

Warning in install.packages :

  dependency �Biobase� is not available

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/TailRank_3.1.3.zip'

Content type 'application/zip' length 331270 bytes (323 KB)

downloaded 323 KB



package �TailRank� successfully unpacked and MD5 sums checked



The downloaded binary packages are in


C:\Users\stator-guest\AppData\Local\Temp\RtmpoVx40V\downloaded_packages

> library(TailRank)

Error: package or namespace load failed for �TailRank� in loadNamespace(i, 
c(lib.loc, .libPaths()), versionCheck = vI[[i]]):

 there is no package called �Biobase�

In addition: Warning message:

package �TailRank� was built under R version 3.4.2




[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Re: [R] Help with Nesting

2017-10-31 Thread Rui Barradas

Hello,

This is cross-posted from

https://stackoverflow.com/questions/47042591/how-to-resolve-nested-variables-inside-a-loop-in-r

And you already have the answer there. See my comment.

Rui Barradas

Em 31-10-2017 19:00, Edward Guda via R-help escreveu:

How do i resolve this?

symbol <-  c('RRR' ,'GGG')

for(i in seq_along(symbol)) {
   dat <- Quandl("LLL/symbol[i]")

}

required solutionis a loop where Quandl is a function and it loops as flows,
Quandl("LLL/RRR")
Quandl("LLL/GGG")

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Scatterplot3d :: Rotating x tick labels by x degrees

2017-10-31 Thread Alex Restrepo
Thanks Jim, I will research.  I appreciate the response.

On Oct 31, 2017, at 9:33 PM, Jim Lemon 
mailto:drjimle...@gmail.com>> wrote:

Well, scatterplot3d might not allow it, but have a look at the second
example for staxlab in the plotrix package.

Jim

On Wed, Nov 1, 2017 at 7:30 AM, Uwe Ligges
mailto:lig...@statistik.tu-dortmund.de>> wrote:


On 31.10.2017 00:56, Alex Restrepo wrote:
...
45 degree rotation is not supported in base R graphics and scatterplot3d
uses that.


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Scatterplot3d :: Rotating x tick labels by x degrees

2017-10-31 Thread Alex Restrepo
Hello,

David, don’t worry about answering this question or any of my inquiries in the 
future.  Not looking for code servants. Definitely not an expert at using the 
scatter plot 3D  library.  That being said, I plan on researching rgl as was 
recommended so kindly on a previous response to my question.

Regards, Alex

On Oct 31, 2017, at 4:13 PM, David Winsemius 
mailto:dwinsem...@comcast.net>> wrote:


On Oct 31, 2017, at 8:55 AM, Olivier Crouzet 
mailto:olivier.crou...@univ-nantes.fr>> wrote:

Hi Alex,

this should be related to the "las" argument of "par()" but
actually it does not seem to be parametered in scatterplot3d.
Searching the net for "scatterplot3d las" provides a link to:

https://stackoverflow.com/questions/25458652/specifying-the-orientation-of-the-axes-labels-in-scatterplot3d

You may try the solution that is provided in this link or consider using
alternate packages (like rgl or the plotly packages which one may be
more powerfull as far as I can judge). However I can't help more. It
seems ggplot does not produce 3d plots (but it looks like it can
interact with plotly when using 3d plots).

Olivier;

The cited SO solutions (mine being the first one)  were addressing the request 
for rotated "axis"-labels rather than rotated "axtick"-labels, although the 
general strategy of looking at the code and using the `text`-function with 
xpd=TRUE (rather than the `mtext`-function where needed in the definitions of 
mytext and mytext2) should apply.

Alex;

I'd encourage you to demonstrate more initiative rather than expecting us to be 
on-call code servants.  I've decided to limit my gratis coding time to 15 
minutes daily. I think this might take me an hour or more. I'm still available 
for on-list code review on this effort.

As a start, I'd suggest downloading the scatterplot3d package code and then 
open up scatterplot3d.R. Find the comment

## label tick marks

... and perhaps decide whether you need to use `text` rather than `mtext`. 
(`text` can rotate by any amount,
but may need "xpd" to be set TRUE. `mtext` is limited to 90 degree increments.) 
I've used up my time, so the next move is yours.
--
David.



Olivier.

On Mon, 30 Oct 2017
23:56:02 + Alex Restrepo 
mailto:alex.restr...@outlook.com>> wrote:

Hi,

I would like to rotate the x axis tick labels by 45 degrees.   Using
the code below, could someone please provide an example?   Many
Thanks In Advance, Alex

library("scatterplot3d")
mydf=data.frame(rate=seq(158, 314)
  ,age=seq(1, 157)
  ,market_date=seq(as.Date("2000/1/1"), as.Date
("2003/1/1"), by="7 days"))

mydf$market_date=as.Date(mydf$market_date, format="%Y-%m-%d")

scatterplot3d(mydf$market_date
,mydf$rate
,mydf$age
,x.ticklabs = seq(as.Date("2000/1/1"), as.Date
("2003/1/1"), by="330 days"))


   [[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To 
UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html and provide commented,
minimal, self-contained, reproducible code.


--
Olivier Crouzet, PhD
/Assistant Professor/
@LLING - Laboratoire de Linguistique de Nantes
  UMR6310 CNRS / Université de Nantes
/Guest Researcher/
@UMCG (University Medical Center Groningen)
  ENT department
  Rijksuniversiteit Groningen

__
R-help@r-project.org mailing list -- To 
UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

David Winsemius
Alameda, CA, USA

'Any technology distinguishable from magic is insufficiently advanced.'   
-Gehm's Corollary to Clarke's Third Law

__
R-help@r-project.org mailing list -- To 
UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Re: [R] Scatterplot3d :: Rotating x tick labels by x degrees

2017-10-31 Thread Jim Lemon
Well, scatterplot3d might not allow it, but have a look at the second
example for staxlab in the plotrix package.

Jim

On Wed, Nov 1, 2017 at 7:30 AM, Uwe Ligges
 wrote:
>
>
> On 31.10.2017 00:56, Alex Restrepo wrote:
> ...
> 45 degree rotation is not supported in base R graphics and scatterplot3d
> uses that.
>

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Help with Nesting

2017-10-31 Thread Jeff Newmiller
R does not look inside strings for language objects like your symbol variable. 
Nor does it magically figure out that it needs to keep previous values in a 
loop. And you need to be able to use valid syntax to ask clear questions in 
this list, so some more time with a tutorial should occur before you post again.

Perhaps:

result <- lapply( symbol, function(s) {
   Quandl( paste0( "LLL/", s ) )
}
result
-- 
Sent from my phone. Please excuse my brevity.

On October 31, 2017 12:00:41 PM PDT, Edward Guda via R-help 
 wrote:
>How do i resolve this?
>
>symbol <-  c('RRR' ,'GGG')
>
>for(i in seq_along(symbol)) {
>  dat <- Quandl("LLL/symbol[i]")
>  
>}
> 
>required solutionis a loop where Quandl is a function and it loops as
>flows,
>Quandl("LLL/RRR")
>Quandl("LLL/GGG")
>
>__
>R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Scatterplot3d :: Rotating x tick labels by x degrees

2017-10-31 Thread David Winsemius

> On Oct 31, 2017, at 8:55 AM, Olivier Crouzet  
> wrote:
> 
> Hi Alex,
> 
> this should be related to the "las" argument of "par()" but
> actually it does not seem to be parametered in scatterplot3d.
> Searching the net for "scatterplot3d las" provides a link to:
> 
> https://stackoverflow.com/questions/25458652/specifying-the-orientation-of-the-axes-labels-in-scatterplot3d
> 
> You may try the solution that is provided in this link or consider using
> alternate packages (like rgl or the plotly packages which one may be
> more powerfull as far as I can judge). However I can't help more. It
> seems ggplot does not produce 3d plots (but it looks like it can
> interact with plotly when using 3d plots).

Olivier;

The cited SO solutions (mine being the first one)  were addressing the request 
for rotated "axis"-labels rather than rotated "axtick"-labels, although the 
general strategy of looking at the code and using the `text`-function with 
xpd=TRUE (rather than the `mtext`-function where needed in the definitions of 
mytext and mytext2) should apply. 

Alex;

I'd encourage you to demonstrate more initiative rather than expecting us to be 
on-call code servants.  I've decided to limit my gratis coding time to 15 
minutes daily. I think this might take me an hour or more. I'm still available 
for on-list code review on this effort. 

As a start, I'd suggest downloading the scatterplot3d package code and then 
open up scatterplot3d.R. Find the comment

## label tick marks

... and perhaps decide whether you need to use `text` rather than `mtext`. 
(`text` can rotate by any amount, 
but may need "xpd" to be set TRUE. `mtext` is limited to 90 degree increments.) 
I've used up my time, so the next move is yours.
-- 
David.


> 
> Olivier.
> 
> On Mon, 30 Oct 2017
> 23:56:02 + Alex Restrepo  wrote:
> 
>> Hi,
>> 
>> I would like to rotate the x axis tick labels by 45 degrees.   Using
>> the code below, could someone please provide an example?   Many
>> Thanks In Advance, Alex
>> 
>> library("scatterplot3d")
>> mydf=data.frame(rate=seq(158, 314)
>>,age=seq(1, 157)
>>,market_date=seq(as.Date("2000/1/1"), as.Date
>> ("2003/1/1"), by="7 days"))
>> 
>> mydf$market_date=as.Date(mydf$market_date, format="%Y-%m-%d")
>> 
>> scatterplot3d(mydf$market_date
>>  ,mydf$rate
>>  ,mydf$age
>>  ,x.ticklabs = seq(as.Date("2000/1/1"), as.Date
>> ("2003/1/1"), by="330 days"))
>> 
>> 
>>  [[alternative HTML version deleted]]
>> 
>> __
>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html and provide commented,
>> minimal, self-contained, reproducible code.
> 
> 
> -- 
>  Olivier Crouzet, PhD
>  /Assistant Professor/
>  @LLING - Laboratoire de Linguistique de Nantes
>UMR6310 CNRS / Université de Nantes
>  /Guest Researcher/
>  @UMCG (University Medical Center Groningen)
>ENT department
>Rijksuniversiteit Groningen
> 
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

David Winsemius
Alameda, CA, USA

'Any technology distinguishable from magic is insufficiently advanced.'   
-Gehm's Corollary to Clarke's Third Law

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

[R] Help with Nesting

2017-10-31 Thread Edward Guda via R-help
How do i resolve this?

symbol <-  c('RRR' ,'GGG')

for(i in seq_along(symbol)) {
  dat <- Quandl("LLL/symbol[i]")
  
}
 
required solutionis a loop where Quandl is a function and it loops as flows,
Quandl("LLL/RRR")
Quandl("LLL/GGG")

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Scatterplot3d :: Rotating x tick labels by x degrees

2017-10-31 Thread Uwe Ligges



On 31.10.2017 00:56, Alex Restrepo wrote:

Hi,

I would like to rotate the x axis tick labels by 45 degrees.   Using the code 
below, could someone please provide an example?   Many Thanks In Advance, Alex


45 degree rotation is not supported in base R graphics and scatterplot3d 
uses that.


You can use par(las=2)
before your code and get them rrotated by 90 degrees, or you can add 
them individually by


s3d <- scatterplot3d(

Afterwards you could try along trhese lines:

par(xpd=TRUE)
text(s3d$xyz.convert(desired positions of labels in 3D coordinate 
system), labels, angle=45)


(untested)

Best,
Uwe Ligges







library("scatterplot3d")
mydf=data.frame(rate=seq(158, 314)
 ,age=seq(1, 157)
 ,market_date=seq(as.Date("2000/1/1"), as.Date("2003/1/1"), by="7 
days"))

mydf$market_date=as.Date(mydf$market_date, format="%Y-%m-%d")

scatterplot3d(mydf$market_date
   ,mydf$rate
   ,mydf$age
   ,x.ticklabs = seq(as.Date("2000/1/1"), as.Date("2003/1/1"), by="330 
days"))


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] convertTime package.

2017-10-31 Thread Eric Berger
If you need a function (e.g. convertTime ) from a package (unknown?) then
you cannot simply instruct R to install the function.
e.g. if you give the command
> install.packages("convertTime")
you will get an error message like
"package 'convertTime' is not available (for R version 3.4.1)"

I did a Google search and found a package called SGP that has a function
"convertTime". I have no idea if it is the function you are looking for but
installing that package worked fine in R version 3.4.1.  So you can try

> install.packages("SGP")

HTH,
Eric


On Tue, Oct 31, 2017 at 9:15 PM, Sarah Goslee 
wrote:

> Hi Scott,
>
> Where did you get this function originally? I can't find anything about it.
>
> What OS are you using?
>
> What says, "not available for the version"? Where are you getting that
> error?
>
> What are you trying to accomplish? What does that function actually
> do? It's impossible to suggest a work-around for a function of unknown
> purpose and origin.
>
> (The posting guide for this list suggests you include all of that
> information when you inquire.)
>
> Sarah
>
>
> On Tue, Oct 31, 2017 at 2:04 PM, Scott Anderwald via R-help
>  wrote:
> > To whom it might concern.  I am working on a project that needs the
> convertTime function. I am currently using version 3.4.1 and it says not
> available for the version.  Two questions is there a work around for the
> function or is there another package that contains that functions.
> >
> >
> > Thanks,
> >
> >
> > Scott Anderwald
>
>
>
> --
> Sarah Goslee
> http://www.functionaldiversity.org
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/
> posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] convertTime package.

2017-10-31 Thread Sarah Goslee
Hi Scott,

Where did you get this function originally? I can't find anything about it.

What OS are you using?

What says, "not available for the version"? Where are you getting that error?

What are you trying to accomplish? What does that function actually
do? It's impossible to suggest a work-around for a function of unknown
purpose and origin.

(The posting guide for this list suggests you include all of that
information when you inquire.)

Sarah


On Tue, Oct 31, 2017 at 2:04 PM, Scott Anderwald via R-help
 wrote:
> To whom it might concern.  I am working on a project that needs the 
> convertTime function. I am currently using version 3.4.1 and it says not 
> available for the version.  Two questions is there a work around for the 
> function or is there another package that contains that functions.
>
>
> Thanks,
>
>
> Scott Anderwald



-- 
Sarah Goslee
http://www.functionaldiversity.org

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] run r script in r-fiddle

2017-10-31 Thread Suzen, Mehmet
Dear List,

According to datacamp support team, r-fiddle.org is not supported. We
asked them to put it down as Professor Maechler suggested it is
a waste of time for the R-help to respond to questions on something
not maintained and severely outdated. If you would like to use
R from your browser, you can embed the following into a web page:

https://cdn.datacamp.com/datacamp-light-latest.min.js";>


Currently, it supports R 3.4.0. See the code base, which is open
source, here https://github.com/datacamp/datacamp-light

Hope it helps.

Best,
Mehmet



On 31 October 2017 at 15:09, Suzen, Mehmet  wrote:
> On 31 October 2017 at 12:42, Martin Maechler  
> wrote:
>> Notably as I think it's been provided by a company that no
>> longer exists under that name, and even if that'd be wrong,  R-Fiddle
>> does not seem free software (apart from the R parts, I hope !).
>
> For the record, r-fiddle is maintained by datacamp:
> https://www.datacamp.com/community/blog/r-fiddle-an-online-playground-for-r-code-2

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] convertTime package.

2017-10-31 Thread Scott Anderwald via R-help
To whom it might concern.  I am working on a project that needs the convertTime 
function. I am currently using version 3.4.1 and it says not available for the 
version.  Two questions is there a work around for the function or is there 
another package that contains that functions.


Thanks, 


Scott Anderwald
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] error to run this package

2017-10-31 Thread Fox, John
Dear John and Anima,

I didn't reply earlier because other people got to it before I did and because, 
given the lack of information in the original post, there wasn't anything to 
add.

The car package shouldn't require anything near 2.5 Gb to load. Here's what I 
get under Windows 10 with R 3.4.2:

> memory.size()
[1] 62.08
> library(car)
> memory.size()
[1] 166.09

The units are MB (the ?memory.size help page says "Mb" but I believe that's 
usually for "megabits" and that it isn't what's intended).

Some more information, as has been suggested by other posters, might help.

Best,
 John

-
John Fox, Professor Emeritus
McMaster University
Hamilton, Ontario, Canada
Web: socserv.mcmaster.ca/jfox



> -Original Message-
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of John Kane
> via R-help
> Sent: Tuesday, October 31, 2017 10:46 AM
> To: r-help@r-project.org; Anima Pramanik 
> Subject: Re: [R] error to run this package
> 
> Since we don't know what you were doing when this happened it is a bit
> difficult to guess.
> Please supply a minimal set of code that demonstrates what you were doing
> that gives this error.
> The output of sessionInfo() would also be useful.
> Have a look at http://stackoverflow.com/questions/5963269/how-to-make-a-
> great-r-reproducible-example
> or
> Reproducibility · Advanced R.for some idea of the type of information that
> would useful.
> The simplist solution might be to make sure that you have enough memory
> available since the error says, "cannot allocate memory block of size 2.5 Gb".
> 
> 
> |
> |
> |  |
> Reproducibility · Advanced R.
> 
> 
>  |
> 
>  |
> 
>  |
> 
> 
> 
> 
> 
> On Tuesday, October 31, 2017, 9:07:04 AM EDT, Anima Pramanik
>  wrote:
> 
>  Error: package or namespace load failed for ‘car’ in get(Info[i, 1], envir
> = env):
>  cannot allocate memory block of size 2.5 Gb
> 
> 
> please help me to get a solution of this problem
> 
>     [[alternative HTML version deleted]]
> 
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-
> guide.html
> and provide commented, minimal, self-contained, reproducible code.
>   [[alternative HTML version deleted]]
> 
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-
> guide.html
> and provide commented, minimal, self-contained, reproducible code.
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Re: [R] Pass Parameters to RScript?

2017-10-31 Thread William Michels via R-help
Hello Morcus,

Is your question really about language inter-operability?
If so, have you checked out rJava?

"rJava: Low-Level R to Java Interface"
 https://CRAN.R-project.org/package=rJava
http://www.rforge.net/rJava/

Regards,

Bill.

W. Michels, Ph.D.


On Mon, Oct 30, 2017 at 8:10 AM, Morkus via R-help  wrote:
> Thanks Eric,
>
> I saw that page, too, but it states:
>
> "This post describes how to pass external arguments to R when calling a 
> Rscript with a command line."
>
> Not what I'm trying to do.
>
> Thanks for your reply.
>
> Sent from [ProtonMail](https://protonmail.com), Swiss-based encrypted email.
>
>>  Original Message 
>> Subject: Re: [R] Pass Parameters to RScript?
>> Local Time: October 30, 2017 9:39 AM
>> UTC Time: October 30, 2017 1:39 PM
>> From: ericjber...@gmail.com
>> To: Morkus 
>> r-help@r-project.org 
>>
>> I did a simple search and got  hits immediately, e.g.
>> https://www.r-bloggers.com/passing-arguments-to-an-r-script-from-command-lines/
>>
>> On Mon, Oct 30, 2017 at 2:30 PM, Morkus via R-help  
>> wrote:
>>
>>> Is it possible to pass parameters to an R Script, say, from Java or other 
>>> language?
>>>
>>> I did some searches, but came up blank.
>>>
>>> Thanks very much in advance,
>>>
>>> Sent from [ProtonMail](https://protonmail.com), Swiss-based encrypted email.
>>> [[alternative HTML version deleted]]
>>>
>>> __
>>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>>> and provide commented, minimal, self-contained, reproducible code.
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] error to run this package

2017-10-31 Thread John Kane via R-help
Since we don't know what you were doing when this happened it is a bit 
difficult to guess.
Please supply a minimal set of code that demonstrates what you were doing that 
gives this error.
The output of sessionInfo() would also be useful.
Have a look at 
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
or 
Reproducibility · Advanced R.for some idea of the type of information that 
would useful.
The simplist solution might be to make sure that you have enough memory 
available since the error says, "cannot allocate memory block of size 2.5 Gb".


| 
| 
|  | 
Reproducibility · Advanced R.


 |

 |

 |



 

On Tuesday, October 31, 2017, 9:07:04 AM EDT, Anima Pramanik 
 wrote:  
 
 Error: package or namespace load failed for ‘car’ in get(Info[i, 1], envir
= env):
 cannot allocate memory block of size 2.5 Gb


please help me to get a solution of this problem

    [[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.  
[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Re: [R] error to run this package

2017-10-31 Thread Jeff Newmiller
Cc'ing back to the list... ALWAYS reply-to-all to keep the list included... I 
don't know all the answers and I don't reply to every request since this is 
volunteer time on my part.

That error does not occur when I load that package. Please re-read my previous 
recommendations and follow all of them... maybe someone else will notice 
something.
-- 
Sent from my phone. Please excuse my brevity.

On October 31, 2017 9:01:51 AM PDT, Anima Pramanik  
wrote:
>library("car", lib.loc="~/R/win-library/3.4")
>Error: package or namespace load failed for ‘car’ in get(Info[i, 1],
>envir
>= env):
> cannot allocate memory block of size 2.5 Gb
>
>On Tue, Oct 31, 2017 at 8:50 PM, Jeff Newmiller
>
>wrote:
>
>> Please read the Posting Guide mentioned at the bottom of this and
>every
>> message on this list. Things like the following you should consider:
>>
>> What did you do between the time you started R and this error
>occurred?
>> There is a presumption that we can reproduce your actions and perhaps
>get
>> the same result.
>>
>> What is the output of sessionInfo() just before this error occurs?
>>
>> Send your email in plain text, since html gets mangled frequently
>before
>> we see your message.
>> --
>> Sent from my phone. Please excuse my brevity.
>>
>> On October 31, 2017 5:41:36 AM PDT, Anima Pramanik
>
>> wrote:
>> >Error: package or namespace load failed for ‘car’ in get(Info[i, 1],
>> >envir
>> >= env):
>> > cannot allocate memory block of size 2.5 Gb
>> >
>> >
>> >please help me to get a solution of this problem
>> >
>> >   [[alternative HTML version deleted]]
>> >
>> >__
>> >R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> >https://stat.ethz.ch/mailman/listinfo/r-help
>> >PLEASE do read the posting guide
>> >http://www.R-project.org/posting-guide.html
>> >and provide commented, minimal, self-contained, reproducible code.
>>

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Re: [R] Scatterplot3d :: Rotating x tick labels by x degrees

2017-10-31 Thread Olivier Crouzet
Hi Alex,

this should be related to the "las" argument of "par()" but
actually it does not seem to be parametered in scatterplot3d.
Searching the net for "scatterplot3d las" provides a link to:

https://stackoverflow.com/questions/25458652/specifying-the-orientation-of-the-axes-labels-in-scatterplot3d

You may try the solution that is provided in this link or consider using
alternate packages (like rgl or the plotly packages which one may be
more powerfull as far as I can judge). However I can't help more. It
seems ggplot does not produce 3d plots (but it looks like it can
interact with plotly when using 3d plots).

Olivier.

On Mon, 30 Oct 2017
23:56:02 + Alex Restrepo  wrote:

> Hi,
> 
> I would like to rotate the x axis tick labels by 45 degrees.   Using
> the code below, could someone please provide an example?   Many
> Thanks In Advance, Alex
> 
> library("scatterplot3d")
> mydf=data.frame(rate=seq(158, 314)
> ,age=seq(1, 157)
> ,market_date=seq(as.Date("2000/1/1"), as.Date
> ("2003/1/1"), by="7 days"))
> 
> mydf$market_date=as.Date(mydf$market_date, format="%Y-%m-%d")
> 
> scatterplot3d(mydf$market_date
>   ,mydf$rate
>   ,mydf$age
>   ,x.ticklabs = seq(as.Date("2000/1/1"), as.Date
> ("2003/1/1"), by="330 days"))
> 
> 
>   [[alternative HTML version deleted]]
> 
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html and provide commented,
> minimal, self-contained, reproducible code.


-- 
  Olivier Crouzet, PhD
  /Assistant Professor/
  @LLING - Laboratoire de Linguistique de Nantes
UMR6310 CNRS / Université de Nantes
  /Guest Researcher/
  @UMCG (University Medical Center Groningen)
ENT department
Rijksuniversiteit Groningen

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Re: [R] SamplingStrata R package

2017-10-31 Thread Bert Gunter
If yours is primarily a statistics issue (I can't tell), you might do
better posting on a statistics list like stats.stackexchange.com.

-- Bert



On Tue, Oct 31, 2017 at 8:15 AM, Chris S  wrote:

> Hi Bert
> thank you for the reply. Not a coding query as such. Just wanted some
> pointers towards how to handle strata using the package in my situation,
> i.e. business type X business size with information for count and financial
> turnover.
>
> many thanks
>
> On 31 October 2017 at 14:37, Bert Gunter  wrote:
>
>> 1.  There is no question here.
>>
>> 2. In any case, this is not a code writing service, so a question about
>> how to code models without any offering of your own attempts might not be
>> replied to anyway.
>>
>> 3. For what sorts of queries you might expect replies to, please read and
>> follow the posting guide below. Also, if you do post, please post in plaint
>> text, not html, as the latter (especially code) can get mangled by the mail
>> server.
>>
>> 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 Tue, Oct 31, 2017 at 4:43 AM, Chris S  wrote:
>>
>>> Hi all
>>>
>>> I am hoping to use the SamplingStrata R package for a dataset describing
>>> a
>>> population of businesses wherein I have information on the type of
>>> business, as well as, for designated employment number bands, number of
>>> employees and business turnover information. So in this context the
>>> employment number bands can be described as micro, small, medium and
>>> large,
>>> i.e. size of business. Hence I would like the stratification to be
>>> business
>>> type X business size. I note that SamplingStrata allows for multivariate
>>> scenarios and the data frame should be straightforward to set up, but in
>>> terms of "domains" which descriptor should be used for this? I am
>>> assuming
>>> I can use both number of employees and business turnover information to
>>> optimise the stratification sampling procedure.
>>>
>>> thank you in advance
>>>
>>> [[alternative HTML version deleted]]
>>>
>>> __
>>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide http://www.R-project.org/posti
>>> ng-guide.html
>>> and provide commented, minimal, self-contained, reproducible code.
>>>
>>
>>
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] error to run this package

2017-10-31 Thread Jeff Newmiller
Please read the Posting Guide mentioned at the bottom of this and every message 
on this list. Things like the following you should consider:

What did you do between the time you started R and this error occurred? There 
is a presumption that we can reproduce your actions and perhaps get the same 
result.

What is the output of sessionInfo() just before this error occurs?

Send your email in plain text, since html gets mangled frequently before we see 
your message. 
-- 
Sent from my phone. Please excuse my brevity.

On October 31, 2017 5:41:36 AM PDT, Anima Pramanik  
wrote:
>Error: package or namespace load failed for ‘car’ in get(Info[i, 1],
>envir
>= env):
> cannot allocate memory block of size 2.5 Gb
>
>
>please help me to get a solution of this problem
>
>   [[alternative HTML version deleted]]
>
>__
>R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Re: [R] SamplingStrata R package

2017-10-31 Thread Chris S
Hi Bert
thank you for the reply. Not a coding query as such. Just wanted some
pointers towards how to handle strata using the package in my situation,
i.e. business type X business size with information for count and financial
turnover.

many thanks

On 31 October 2017 at 14:37, Bert Gunter  wrote:

> 1.  There is no question here.
>
> 2. In any case, this is not a code writing service, so a question about
> how to code models without any offering of your own attempts might not be
> replied to anyway.
>
> 3. For what sorts of queries you might expect replies to, please read and
> follow the posting guide below. Also, if you do post, please post in plaint
> text, not html, as the latter (especially code) can get mangled by the mail
> server.
>
> 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 Tue, Oct 31, 2017 at 4:43 AM, Chris S  wrote:
>
>> Hi all
>>
>> I am hoping to use the SamplingStrata R package for a dataset describing a
>> population of businesses wherein I have information on the type of
>> business, as well as, for designated employment number bands, number of
>> employees and business turnover information. So in this context the
>> employment number bands can be described as micro, small, medium and
>> large,
>> i.e. size of business. Hence I would like the stratification to be
>> business
>> type X business size. I note that SamplingStrata allows for multivariate
>> scenarios and the data frame should be straightforward to set up, but in
>> terms of "domains" which descriptor should be used for this? I am assuming
>> I can use both number of employees and business turnover information to
>> optimise the stratification sampling procedure.
>>
>> thank you in advance
>>
>> [[alternative HTML version deleted]]
>>
>> __
>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posti
>> ng-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] run r script in r-fiddle

2017-10-31 Thread Gabor Grothendieck
Try that source statement here -- it is running R 3.4.1:

https://www.tutorialspoint.com/execute_r_online.php

On Mon, Oct 30, 2017 at 11:14 AM, Suzen, Mehmet  wrote:
>  Note that, looks like r-fiddle runs R 3.1.2.
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



-- 
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] SamplingStrata R package

2017-10-31 Thread Bert Gunter
1.  There is no question here.

2. In any case, this is not a code writing service, so a question about how
to code models without any offering of your own attempts might not be
replied to anyway.

3. For what sorts of queries you might expect replies to, please read and
follow the posting guide below. Also, if you do post, please post in plaint
text, not html, as the latter (especially code) can get mangled by the mail
server.

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 Tue, Oct 31, 2017 at 4:43 AM, Chris S  wrote:

> Hi all
>
> I am hoping to use the SamplingStrata R package for a dataset describing a
> population of businesses wherein I have information on the type of
> business, as well as, for designated employment number bands, number of
> employees and business turnover information. So in this context the
> employment number bands can be described as micro, small, medium and large,
> i.e. size of business. Hence I would like the stratification to be business
> type X business size. I note that SamplingStrata allows for multivariate
> scenarios and the data frame should be straightforward to set up, but in
> terms of "domains" which descriptor should be used for this? I am assuming
> I can use both number of employees and business turnover information to
> optimise the stratification sampling procedure.
>
> thank you in advance
>
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/
> posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] run r script in r-fiddle

2017-10-31 Thread Suzen, Mehmet
On 31 October 2017 at 12:42, Martin Maechler  wrote:
> Notably as I think it's been provided by a company that no
> longer exists under that name, and even if that'd be wrong,  R-Fiddle
> does not seem free software (apart from the R parts, I hope !).

For the record, r-fiddle is maintained by datacamp:
https://www.datacamp.com/community/blog/r-fiddle-an-online-playground-for-r-code-2

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] error to run this package

2017-10-31 Thread Anima Pramanik
Error: package or namespace load failed for ‘car’ in get(Info[i, 1], envir
= env):
 cannot allocate memory block of size 2.5 Gb


please help me to get a solution of this problem

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

[R] SamplingStrata R package

2017-10-31 Thread Chris S
Hi all

I am hoping to use the SamplingStrata R package for a dataset describing a
population of businesses wherein I have information on the type of
business, as well as, for designated employment number bands, number of
employees and business turnover information. So in this context the
employment number bands can be described as micro, small, medium and large,
i.e. size of business. Hence I would like the stratification to be business
type X business size. I note that SamplingStrata allows for multivariate
scenarios and the data frame should be straightforward to set up, but in
terms of "domains" which descriptor should be used for this? I am assuming
I can use both number of employees and business turnover information to
optimise the stratification sampling procedure.

thank you in advance

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] run r script in r-fiddle

2017-10-31 Thread Martin Maechler
> Suzen, Mehmet 
> on Mon, 30 Oct 2017 16:05:18 +0100 writes:

> We were talking about r-fiddle. It gives error there [*],

> that's why I suggested using RCurl.

>> 
source("https://raw.githubusercontent.com/msuzen/isingLenzMC/master/R/isingUtils.R";)
> ...  unsupported URL scheme Error : cannot open the
> connection
>> 

and later you note that it seems to run R-3.1.2 --- which is
ridiculously outdated.

I think R-help should not be (mis)used at all to talk about
R-Fiddle, then.
Notably as I think it's been provided by a company that no
longer exists under that name, and even if that'd be wrong,  R-Fiddle
does not seem free software (apart from the R parts, I hope !).

If another asked about his/her problems using R 3.1.2, I think
we would all tell him to go away and install a current version
of R, and not waste any more bandwidth and R-help readers' time,
wouldn't we ?


> On 30 October 2017 at 15:51, Martin Maechler
>  wrote:
>>> Suzen, Mehmet  on Mon, 30 Oct 2017
>>> 11:16:30 +0100 writes:
>> 
>> > Hi Frank, You could upload your R source file to a
>> public > URL, for example to github and read via RCurl,
>> as source > do not support https as far as I know.
>> 
>> well... but your knowledge is severely (:-) outdated.
>> Why did you not try first?
>> 
>> 
source("https://raw.githubusercontent.com/msuzen/isingLenzMC/master/R/isingUtils.R";)
>> 
>> works for me even in R 3.3.0 which is really outdated
>> itself!

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Course in Lisbon: Introduction to Linear Mixed Effects Models and GLMM with R

2017-10-31 Thread Highland Statistics Ltd

We would like to announce the following statistics course:

Course: Introduction to Linear Mixed Effects Models and GLMM with R
Where:  Lisbon, Portugal
When:   19-23 February 2018

Course website: http://highstat.com/index.php/courses
Course flyer: 
http://highstat.com/Courses/Flyers/2018/Flyer2018_02LisbonV2.pdf



Kind regards,

Alain Zuur



--

Dr. Alain F. Zuur
Highland Statistics Ltd.
9 St Clair Wynd
AB41 6DZ Newburgh, UK
Email: highs...@highstat.com
URL:   www.highstat.com

And:
NIOZ Royal Netherlands Institute for Sea Research,
Department of Coastal Systems, and Utrecht University,
P.O. Box 59, 1790 AB Den Burg,
Texel, The Netherlands



Author of:
1. Beginner's Guide to Spatial, Temporal and Spatial-Temporal Ecological Data 
Analysis with R-INLA. (2017).
2. Beginner's Guide to Zero-Inflated Models with R (2016).
3. Beginner's Guide to Data Exploration and Visualisation with R (2015).
4. Beginner's Guide to GAMM with R (2014).
5. Beginner's Guide to GLM and GLMM with R (2013).
6. Beginner's Guide to GAM with R (2012).
7. Zero Inflated Models and GLMM with R (2012).
8. A Beginner's Guide to R (2009).
9. Mixed effects models and extensions in ecology with R (2009).
10. Analysing Ecological Data (2007).

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

[R] Final models from caret's train function

2017-10-31 Thread Patrick Connolly
Using caret on the Titanic data from Kaggle, I tried various models,
including rfRules which produces a model, partly described as such:

  
> caret.rfRules.cv$finalModel
$model
  len freq err 
 [1,] "2" "0.0368" "0" 
 [2,] "2" "0.032"  "0.05"  
 [3,] "2" "0.1824" "0.0526315789473685"
 [4,] "4" "0.0656" "0.0975609756097561"
 [5,] "4" "0.0304" "0.105263157894737" 
 [6,] "3" "0.4384" "0.105839416058394" 
 [7,] "3" "0.0112" "0.142857142857143" 
 [8,] "4" "0.0256" "0.1875"
 [9,] "3" "0.1088" "0.279411764705882" 
[10,] "3" "0.056"  "0.342857142857143" 
[11,] "1" "0.0128" "0.25"  
  condition   pred
 [1,] "X[,4]<=7 & X[,11]<=4.5""1" 
 [2,] "X[,7]<=31.33125 & X[,11]>4.5"  "0" 
 [3,] "X[,2]<=0.5 & X[,3]<=0.5"   "1" 
 [4,] "X[,2]>0.5 & X[,4]<=30.5 & X[,5]>0.5 & X[,9]>0.5"   "0" 
 [5,] "X[,3]<=0.5 & X[,4]<=30.2031919426199 & X[,4]>21.5 & X[,9]<=0.5""1" 
 [6,] "X[,3]>0.5 & X[,4]>9.5 & X[,7]<=26.26875"   "0" 
 [7,] "X[,2]>0.5 & X[,7]>13.90835 & X[,7]<=15.3729"   "0" 
 [8,] "X[,4]<=40.8653667208804 & X[,4]>25 & X[,7]>26.14375 & X[,11]<=1.5" "1" 
 [9,] "X[,3]>0.5 & X[,4]>8.16718191075288 & X[,4]<=77""0" 
[10,] "X[,3]<=0.5 & X[,4]<=38.5 & X[,4]>12.5" "1" 
[11,] "X[,1]==X[,1]"  "0" 

[...]

Does that 11th row make sense?  X[,1]==X[,1] will always be true, so
is that saying anything?  Or is it a case of a model for prediction
being useless for inference?


> version
   _   
platform   x86_64-pc-linux-gnu 
arch   x86_64  
os linux-gnu   
system x86_64, linux-gnu   
status 
major  3   
minor  4.1 
year   2017
month  06  
day30  
svn rev72865   
language   R   
version.string R version 3.4.1 (2017-06-30)
nickname   Single Candle 

-- 
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.   
   ___Patrick Connolly   
 {~._.~}   Great minds discuss ideas
 _( Y )_ Average minds discuss events 
(:_~*~_:)  Small minds discuss people  
 (_)-(_)  . Eleanor Roosevelt
  
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.