Re: [R] question including crossover trials in meta-analysis

2020-09-14 Thread Bert Gunter
Did you first try a web search? -- you should always do this before posting here. "meta-analysis in R" brought up this: https://CRAN.R-project.org/view=MetaAnalysis Have you looked at this task view yet? Bert Gunter "The trouble with having an open mind is that people keep coming along and

Re: [R] Question about PERL lookahead construct in regex's

2020-08-12 Thread Bert Gunter
Thank you. That indeed dispels my brain fog! Best, 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 Wed, Aug 12, 2020 at 6:35 AM Stefan Evert wrote: >

Re: [R] Question about PERL lookahead construct in regex's

2020-08-12 Thread Stefan Evert
> On 10 Aug 2020, at 18:36, Bert Gunter wrote: > > But this appears to be imprecise (it confused me, anyway). The usual sense > of "matching" in regex's is "match the pattern somewhere in the string > going forward." But in the perl lookahead construct it apparently must > **exactly** match

Re: [R] Question about PERL lookahead construct in regex's

2020-08-11 Thread Greg Snow
I think that the current documentation is correct, but that does not mean that it cannot be improved. The key phrase for me is "from the current position" which says to me that the match needs to happen right there, not just somewhere in the rest of the string. If you used the expression " +t"

Re: [R] Question about citing R packages in an academic paper

2020-07-23 Thread Dr. Mehdi Dadkhah
Thank you very much! With best regards Dr. Mehdi Dadkhah Email: drdadk...@outlook.com Website: drdadkhah.click From: Michael Dewey Sent: Thursday, July 23, 2020 1:06 PM To: Dr. Mehdi Dadkhah ; r-help@r-project.org Subject: Re: [R] Question about citing R

Re: [R] Question about citing R packages in an academic paper

2020-07-23 Thread Michael Dewey
Dear Medhi It is good that you are going to cite the packages properly. I do not think it matters too much whether they are in the article itself or in the supplementary material, the important thing is that they are there. You do not have any legal obligation to cite them, as far as I know

Re: [R] Question about package "SentimentAnalysis"

2020-05-09 Thread Mehdi Dadkhah
Thank you! On Sat, May 9, 2020 at 11:44 AM wrote: > Or, to split the paragraph into sentences, analyse each sentence and > decide how to agregate the result... > > > > On 9 May 2020 04:33, Mehdi Dadkhah wrote: > > Thank you! > > On Fri, May 8, 2020 at 10:04 PM John Kane wrote: > > > I think

Re: [R] Question about package "SentimentAnalysis"

2020-05-08 Thread Mehdi Dadkhah
Thank you! On Fri, May 8, 2020 at 10:04 PM John Kane wrote: > I think your best bet is to ask the author/maintainer, Stefan Feuerriegel > ,about this. The reference manual > https://cran.r-project.org/web/packages/SentimentAnalysis/SentimentAnalysis.pdf > gives his email address as > > On Fri,

Re: [R] Question about package "SentimentAnalysis"

2020-05-08 Thread John Kane
I think your best bet is to ask the author/maintainer, Stefan Feuerriegel ,about this. The reference manual https://cran.r-project.org/web/packages/SentimentAnalysis/SentimentAnalysis.pdf gives his email address as On Fri, 8 May 2020 at 08:32, Mehdi Dadkhah wrote: > Hi, > I hope you are doing

Re: [R] Question about combining foodwebs and phylogenetic trees

2020-05-05 Thread Bert Gunter
I think it unlikely that you'll get such specific help here. Try posting on: R-SIG-phylo: R SIG on phylogenetic and comparative methods and analyses instead. (I also assume you are aware of: https://CRAN.R-project.org/view=Phylogenetics , but I have no idea whether it is helpful). Bert Gunter

Re: [R] Question about "sample" function and inconsistent results I am getting across machines.

2020-05-03 Thread Fomby, Tom
Thank you so much Duncan. I will pitch in. Tom From: Duncan Murdoch Sent: Sunday, May 3, 2020 2:56 PM To: Fomby, Tom; r-help@R-project.org Subject: Re: [R] Question about "sample" function and inconsistent results I am getting across machines. On

Re: [R] Question about "sample" function and inconsistent results I am getting across machines.

2020-05-03 Thread Fomby, Tom
:50 PM To: Fomby, Tom; r-help@R-project.org Subject: Re: [R] Question about "sample" function and inconsistent results I am getting across machines. I just tried both versions, and it's the ASUS that's using the buggy old algorithm. Duncan Murdoch On 03/05/2020 3:32 p.m., Duncan Mur

Re: [R] Question about "sample" function and inconsistent results I am getting across machines.

2020-05-03 Thread Fomby, Tom
ay 3, 2020 2:32 PM To: Fomby, Tom; r-help@R-project.org Subject: Re: [R] Question about "sample" function and inconsistent results I am getting across machines. On 03/05/2020 1:39 a.m., Fomby, Tom wrote: > Please consider the following code: > > set.seed(1) > > t

Re: [R] Question about "sample" function and inconsistent results I am getting across machines.

2020-05-03 Thread Duncan Murdoch
er-groups/. (I haven't checked how similar those two lists are.) Duncan Murdoch Thank you, Tom Fomby Department of Economics SMU Dallas, TX 75275 *From:* Duncan Murdoch *Sent:* Sunday, May 3, 2020 2:32 PM *To:*

Re: [R] Question about "sample" function and inconsistent results I am getting across machines.

2020-05-03 Thread Duncan Murdoch
I just tried both versions, and it's the ASUS that's using the buggy old algorithm. Duncan Murdoch On 03/05/2020 3:32 p.m., Duncan Murdoch wrote: On 03/05/2020 1:39 a.m., Fomby, Tom wrote: Please consider the following code: set.seed(1) train.index = sample(181,150) head(train.index) # [1]

Re: [R] Question about "sample" function and inconsistent results I am getting across machines.

2020-05-03 Thread Jeff Newmiller
It is a lot easier from this side of the conversation to view skeptically the claim that all of these installations of R are using the same version than that the software seed has started behaving randomly within the same version of R. On May 2, 2020 10:39:58 PM PDT, "Fomby, Tom" wrote:

Re: [R] Question about "sample" function and inconsistent results I am getting across machines.

2020-05-03 Thread Duncan Murdoch
On 03/05/2020 1:39 a.m., Fomby, Tom wrote: Please consider the following code: set.seed(1) train.index = sample(181,150) head(train.index) # [1] 49 67 103 162 36 159 Result from my ASUS computer # # [1] 68 167 129 162 43 14 Result from my wife's HP Pavilion computer In both cases,

Re: [R] question about system.file()

2020-04-11 Thread Jeff Newmiller
Only you have the power to solve your problem. Follow the instructions in the footer of any R-help email. On April 10, 2020 8:33:41 PM PDT, Anand Menon wrote: >Hello, Could you please help unsubscribe me from these emails. Thank >you. > >Kind Regards, >Anand K Menon >Cell: 1-416-939-3671 > >

Re: [R] question about system.file()

2020-04-11 Thread Rui Barradas
Hello, There are instructions to unsubscribe at the bottom of this e-mail and of every R-Help e-mail, see the all capital letters word. Hope this helps, Rui Barradas Às 04:33 de 11/04/20, Anand Menon escreveu: Hello, Could you please help unsubscribe me from these emails. Thank you. Kind

Re: [R] question about system.file()

2020-04-11 Thread Anand Menon
Hello, Could you please help unsubscribe me from these emails. Thank you. Kind Regards, Anand K Menon Cell: 1-416-939-3671 On Fri, Apr 10, 2020 at 3:46 PM Ana Marija wrote: > Hello, > > I would like to try this example in this link: > >

Re: [R] question about system.file()

2020-04-10 Thread Rasmus Liland
On Fri, Apr 10, 2020 at 2:54 PM Duncan Murdoch wrote: > On 10/04/2020 3:46 p.m., Ana Marija wrote: > > I have in current directory from > > where I would run this function a > > file named output4.bed > > Just use "output4.bed" as the > filename. The system.file() function > is for working

Re: [R] question about system.file()

2020-04-10 Thread Ana Marija
Got it, thanks! On Fri, Apr 10, 2020 at 2:54 PM Duncan Murdoch wrote: > > On 10/04/2020 3:46 p.m., Ana Marija wrote: > > Hello, > > > > I would like to try this example in this link: > > https://www.rdocumentation.org/packages/SNPRelate/versions/1.6.4/topics/snpgdsBED2GDS > > > > for example

Re: [R] question about system.file()

2020-04-10 Thread Duncan Murdoch
On 10/04/2020 3:46 p.m., Ana Marija wrote: Hello, I would like to try this example in this link: https://www.rdocumentation.org/packages/SNPRelate/versions/1.6.4/topics/snpgdsBED2GDS for example this line: bed.fn <- system.file("extdata", "plinkhapmap.bed.gz", package="SNPRelate") I have in

Re: [R] question about system.file()

2020-04-10 Thread Ana Marija
I tried to do this but I got this error: > bed.fn <- system.file("output4.bed", package="SNPRelate") > dim(bed.fn) NULL > fam.fn <- system.file("output4.fam", package="SNPRelate") > bim.fn <- system.file("output4.bim", package="SNPRelate") > snpgdsBED2GDS(bed.fn, fam.fn, bim.fn, "HapMap.gds")

Re: [R] Question about nlminb function

2020-04-07 Thread Lim, Hwanggyu
AM To: Ivan Krylov ; Lim, Hwanggyu Cc: r-help@r-project.org Subject: Re: [R] Question about nlminb function This thread points out the important and often overlooked difference between "convergence" of an algorithm and "termination" of a program. I've been pushing this butt

Re: [R] Question about nlminb function

2020-04-07 Thread Lim, Hwanggyu
Hello Ivan, Thank you so much for your valuable comments. I will definitely look at the R package of nloptr you introduced. Best, Hwanggyu -Original Message- From: Ivan Krylov Sent: Friday, April 3, 2020 5:25 AM To: Lim, Hwanggyu Cc: r-help@r-project.org Subject: Re: [R] Question

Re: [R] Question about nlminb function

2020-04-03 Thread J C Nash
This thread points out the important and often overlooked difference between "convergence" of an algorithm and "termination" of a program. I've been pushing this button for over 30 years, and I suspect that it will continue to come up from time to time. Sometimes it is helpful to put termination

Re: [R] Question about nlminb function

2020-04-03 Thread Ivan Krylov
On Thu, 2 Apr 2020 10:26:07 + "Lim, Hwanggyu" wrote: > when n-1th estimates and nth estimates have absolute differences > less than 0.001 for all three parameters, the iteration must stop > I am using nlminb optimization function nlminb function uses the PORT library. According to [1], the

Re: [R] Question about autocomplete Keyboard Shortcut in R Markdown Latex

2020-02-05 Thread Duncan Murdoch
On 05/02/2020 12:57 p.m., Jeff Newmiller wrote: The rmarkdown package is not the issue... this question is about editor customization. Rmarkdown can be edited in many text editors and IDEs, and none of them are on topic here. That said, there is a high probability that OP is using the RStudio

Re: [R] Question about autocomplete Keyboard Shortcut in R Markdown Latex

2020-02-05 Thread Jeff Newmiller
The rmarkdown package is not the issue... this question is about editor customization. Rmarkdown can be edited in many text editors and IDEs, and none of them are on topic here. That said, there is a high probability that OP is using the RStudio IDE, and indeed it would be best to ask them for

Re: [R] Question about autocomplete Keyboard Shortcut in R Markdown Latex

2020-02-05 Thread Bert Gunter
Try posting this at the RStudio Help site, as R Markdown is part of the ecosystem they have created and support. 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 )

Re: [R] Question about geometric mean

2019-10-18 Thread Rich Shepard
On Fri, 18 Oct 2019, Mehdi Dadkhah wrote: I am using Interpretive structural modeling (ISM) ... My question is: How should I calculate geometric mean of experts’ opinions ... I'm not a statistician, nor do I know anything about ISM. With that disclosure I offer a couple of thoughts.

Re: [R] Question about NRC lexicon usage

2019-07-31 Thread Mehdi Dadkhah
Thank you! With best regards, On Wed, Jul 31, 2019 at 1:24 PM peter dalgaard wrote: > It is not obvious that this is an R question, but 2 suggestions > > (a) some emotions are not clearly positive or negative (e.g. anticipation) > (b) emotions possibly not mutually exclusive > > -pd > > > On 31

Re: [R] Question about NRC lexicon usage

2019-07-31 Thread peter dalgaard
It is not obvious that this is an R question, but 2 suggestions (a) some emotions are not clearly positive or negative (e.g. anticipation) (b) emotions possibly not mutually exclusive -pd > On 31 Jul 2019, at 09:11 , Mehdi Dadkhah wrote: > > Hi, > I hope you are doing well! > I used NRC

Re: [R] Question concerning Loading large Data Sets

2019-05-07 Thread Eric Berger
I don't think I understand your question. What if you enter class(anno) Does that give anything? On Mon, May 6, 2019 at 2:29 AM David Winsemius wrote: > I wouldn’t have expected an message, but it does raise the question: why > are you making two different copies of the same text file if you

Re: [R] Question concerning Loading large Data Sets

2019-05-05 Thread David Winsemius
I wouldn’t have expected an message, but it does raise the question: why are you making two different copies of the same text file if you are concerned about size issues? — David Sent from my iPhone > On May 5, 2019, at 5:14 PM, Spencer Brackett > wrote: > > Also, > > In case there is

Re: [R] Question concerning Loading large Data Sets

2019-05-05 Thread Spencer Brackett
Also, In case there is any confusion... "~/Vakul's GBM code" was set up in the working directory (via setwd) as the folder in which the file 'mapper.txt' is contained... thereby making the "~/Vakul's GBM code/mapper.txt" as shown. Should I perhaps reset my working directory to the file I'm

Re: [R] Question about addressing a data frame

2019-04-25 Thread Nitu, Laurentiu
AM To: Nitu, Laurentiu Cc: r-help@r-project.org Subject: Re: [R] Question about addressing a data frame is.na<http://is.na>(DF) is a matrix for a data.frame DF. The semantics of '[" are different for matrices and data.frame and that can cause confusion > DF <- data.frame(X=c(101

Re: [R] Question about addressing a data frame

2019-04-25 Thread William Dunlap via R-help
is.na(DF) is a matrix for a data.frame DF. The semantics of '[" are different for matrices and data.frame and that can cause confusion > DF <- data.frame(X=c(101,NA,NA), Y=c("one","two",NA), row.names=c("i","ii","iii")) > is.na(DF) # returns a matrix when given a data.frame X Y i

Re: [R] Question regarding the dcast function

2019-03-21 Thread PIKAL Petr
Hi You shouldn't use HTML formating unless you want to surprise us with weird and messy email. function dcast is in data.table and/or in reshape2 packages. For both install.packages("data.table") install.packages("reshape2") followed by library(data.table) library(reshape2) should be enough

Re: [R] Question regarding the dcast function

2019-03-21 Thread Sarah Goslee
Hi, dcast() is a function, not a package, so R can't find it in the package archive. You need to install the package that contains it. Probably you want reshape2 install.packages("reshape2") Sarah On Thu, Mar 21, 2019 at 9:54 AM Marie-joe Kfoury wrote: > > Hi, > > > I am having a problem

Re: [R] Question about bindata

2019-02-17 Thread إيمان إسماعيل محمد
Thanks a lot Jeff I sent to authors and I hope can find these function or even alternatives On Sun, 17 Feb 2019 at 17:11, Jeff Newmiller wrote: > I would guess in an archived version of the package [1], though they may > have been moved to another package. Such an old package probably will not

Re: [R] Question about bindata

2019-02-17 Thread Jeff Newmiller
I would guess in an archived version of the package [1], though they may have been moved to another package. Such an old package probably will not work on a modern version of R... you can extract the functions and see if they still run. Note that those functions may have theoretical issues or

Re: [R] Question about bindata lib in high dimensions

2019-02-11 Thread إيمان إسماعيل محمد
even I tried to use another library mipfp to generate multivariate Bernoulli *using the following:* > p.joint <- ObtainMultBinaryDist(corr = corr_mat[1:10,1:10], marg.probs = probs[1:10]) *it Shows:* Problematic pairs: row col [1,] 10 9 [2,] 9 10 Warning messages: 1: In

Re: [R] Question about bindata lib in high dimensions

2019-02-11 Thread إيمان إسماعيل محمد
*Here Sample of Code for 10 variables:* > probs_10 = probs[1:10] > probs_10 [1] 9.795272e-01 9.331778e-01 6.764349e-01 9.884067e-02 9.52e-05 3.499417e-03 2.380556e-05 9.826457e-01 9.628633e-01 8.874949e-01 > corr_mat_10 = corr_mat[1:10,1:10] > corr_mat_10 [,1] [,2]

Re: [R] Question about bindata lib in high dimensions

2019-02-11 Thread Eric Berger
Hi Eman, It helps if you create a small example that reproduces the problem and then post the code with your question. This will help people determine what is causing the problem. Best, Eric ‪On Mon, Feb 11, 2019 at 11:52 AM ‫إيمان إسماعيل محمد‬‎ < emanismail...@gmail.com> wrote:‬ > I need to

Re: [R] Question

2019-01-08 Thread Jeff Newmiller
Er, just keep it simple, Marc... give one option: library(lattice) If you _ever_ use require() without acting upon the return value then you are setting yourself or someone else up for confusing missing objects errors someday for no good reason. This _isn't_ just personal preference... by

Re: [R] Question

2019-01-08 Thread Rich Shepard
On Tue, 8 Jan 2019, Bert Gunter wrote: I think it's ?install.packages Bert, Of course it is. My apologies to the original poster. Rich __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

Re: [R] Question

2019-01-08 Thread Rich Shepard
On Tue, 8 Jan 2019, Marc Schwartz wrote: lattice is a "recommended" package, which means that it is installed by default with any standard R installation. Marc, Thanks for the reminder. Regards, Rich __ R-help@r-project.org mailing list -- To

Re: [R] Question

2019-01-08 Thread Marc Schwartz via R-help
Guys, lattice is a "recommended" package, which means that it is installed by default with any standard R installation. Thus, all that is required, as Sarah noted in an earlier reply, is either: library(lattice) or require(lattice) depending upon preference. latticeExtra, on the other

Re: [R] Question

2019-01-08 Thread Bert Gunter
I think it's ?install.packages 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, Jan 8, 2019 at 9:50 AM Rich Shepard wrote: > On Tue, 8 Jan 2019, S.

Re: [R] Question

2019-01-08 Thread Rich Shepard
On Tue, 8 Jan 2019, S. Mahmoud Nasrollahi wrote: I have got a problem during working with some package in R and in spite of trying with R help, internet and any other resources I could not succeed. Indeed when I what to install some function like bwplot, boxplot, xyplot I receive this sort of

Re: [R] Question

2019-01-08 Thread Sarah Goslee
xyplot is not a package, it is a function within the lattice package, which should already be installed. library(lattice) # load the package from the R library ?xyplot # look at the help for the function The others are also functions, not packages. Sarah On Tue, Jan 8, 2019 at 9:15 AM S.

Re: [R] Question Mixed-Design Anova in R

2018-11-23 Thread Lisa van der Burgh
Dear John and Peter, Thank you both for your answers. I am going to try the solutions you gave me! Thanks again, Lisa From: Fox, John Sent: 23 November 2018 16:54:49 To: Lisa van der Burgh Cc: r-help@R-project.org; peter dalgaard Subject: RE: [R] Question

Re: [R] Question Mixed-Design Anova in R

2018-11-23 Thread Fox, John
Dear Lisa, > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of peter > dalgaard > Sent: Friday, November 23, 2018 10:16 AM > To: Lisa van der Burgh <40760...@student.eur.nl> > Cc: r-help@R-project.org > Subject: Re: [R] Quest

Re: [R] Question Mixed-Design Anova in R

2018-11-23 Thread peter dalgaard
You seem to be bringing in a ton of stuff without looking at features in base R... Check help(mauchly.test) help(anova.mlm) and examples therein. There are also options in the "car" package. -pd > On 23 Nov 2018, at 11:43 , Lisa van der Burgh <40760...@student.eur.nl> wrote: > > Hi

Re: [R] Question about function scope

2018-10-30 Thread Neal Fultz
e becomes something like this: > >x <- y <- z <- 0 > ># here is my scope problem >result <- list(x = x, y = y, z = z) # c == 0 case >if (c==1) result <- bar1() >if (c==2) result <- bar2() >x <- result[["x"]] >y <-

Re: [R] Question about function scope

2018-10-30 Thread Duncan Murdoch
"y"]] z <- result[["z"]] Duncan Murdoch - Original Message - From: "Duncan Murdoch" To: "Sebastien Bihorel" , r-help@r-project.org Sent: Tuesday, October 30, 2018 4:13:05 PM Subject: Re: [R] Question about function scope On 30/10/2018 3:5

Re: [R] Question about function scope

2018-10-30 Thread Sebastien Bihorel
Thanks a lot Eric, I think you are on the same page as Duncan (at least with his 2nd option). I will definitively explore this. From: "Eric Berger" To: "Duncan Murdoch" Cc: "Sebastien Bihorel" , "R mailing list" Sent: Tuesday, October 30, 20

Re: [R] Question about function scope

2018-10-30 Thread Sebastien Bihorel
That's cool! I think this solution would fit better with what my intended setup. Thanks a lot - Original Message - From: "Duncan Murdoch" To: "Sebastien Bihorel" , r-help@r-project.org Sent: Tuesday, October 30, 2018 4:18:51 PM Subject: Re: [R] Question about fu

Re: [R] Question about function scope

2018-10-30 Thread Sebastien Bihorel
. - Original Message - From: "Duncan Murdoch" To: "Sebastien Bihorel" , r-help@r-project.org Sent: Tuesday, October 30, 2018 4:13:05 PM Subject: Re: [R] Question about function scope On 30/10/2018 3:56 PM, Sebastien Bihorel wrote: > Hi, > > From the R user manual,

Re: [R] Question about function scope

2018-10-30 Thread Duncan Murdoch
Here's another modification to your code that also works. It's a lot uglier, but will allow bar1 and bar2 to be used in multiple functions, not just foo. bar1 <- function(env){ env$x <- 1 env$y <- 1 env$z <- 1 with(env, cat(sprintf('bar1: x=%d, y=%d, z=%d\n', x, y, z))) } bar2 <-

Re: [R] Question about function scope

2018-10-30 Thread Eric Berger
Hi Sebastien, I like Duncan's response. An alternative approach is to pass around environments, as in the following: bar1 <- function(e) { e$x <- e$y <- e$z <- 1 cat(sprintf('bar1: x=%d, y=%d, z=%d\n', e$x, e$y, e$z)) } bar2 <- function(e) { e$x <- e$y <- e$z <- 2 cat(sprintf('bar2: x=%d,

Re: [R] Question about function scope

2018-10-30 Thread Duncan Murdoch
On 30/10/2018 3:56 PM, Sebastien Bihorel wrote: Hi, From the R user manual, I have a basic understanding of the scope of function evaluation but have a harder time understanding how to mess with environments. My problem can be summarized by the code shown at the bottom: - the foo function

Re: [R] Question on Binom.Confint

2018-09-14 Thread Göran Broström
t the code.) Göran -Original Message- From: Jim Lemon [mailto:drjimle...@gmail.com] Sent: Thursday, September 13, 2018 11:50 PM To: Guo, Fang (Associate) ; r-help mailing list Subject: Re: [R] Question on Binom.Confint Hi Fang, Let's assume that you are using the "binom.confint" f

Re: [R] Question on Binom.Confint

2018-09-14 Thread Guo, Fang (Associate)
I did use library(binom). However, I was able to use the method "lrt" which is short for likelihood ratio test. -Original Message- From: Jim Lemon [mailto:drjimle...@gmail.com] Sent: Thursday, September 13, 2018 11:50 PM To: Guo, Fang (Associate) ; r-help mailing list Subje

Re: [R] Question on Binom.Confint

2018-09-14 Thread Guo, Fang (Associate)
I used library(binom). -Original Message- From: Bert Gunter [mailto:bgunter.4...@gmail.com] Sent: Thursday, September 13, 2018 10:04 PM To: Guo, Fang (Associate) Cc: r-help-requ...@r-project.org; R-help Subject: Re: [R] Question on Binom.Confint In what package? Binomial confidence

Re: [R] Question on Binom.Confint

2018-09-14 Thread Bert Gunter
-- > From: Bert Gunter [mailto:bgunter.4...@gmail.com] > Sent: Thursday, September 13, 2018 10:04 PM > To: Guo, Fang (Associate) > Cc: r-help-requ...@r-project.org; R-help > Subject: Re: [R] Question on Binom.Confint > > In what package? > Binomial confidence inte

Re: [R] Question on Binom.Confint

2018-09-13 Thread Jim Lemon
Hi Fang, Let's assume that you are using the "binom.confint" function in the "binom" package and you have made a spelling mistake or two. This function employs nine methods for estimating the binomial confidence interval. Sadly, none of these is "lrt". The zero condition is discussed in the help

Re: [R] Question on Binom.Confint

2018-09-13 Thread Spencer Graves
On 2018-09-13 20:58, David Winsemius wrote: On Sep 13, 2018, at 1:15 PM, Guo, Fang (Associate) wrote: Hi, I have a question with the function Binom.Confint(x,n,"method"=lrt). For likelihood ratio test, I'd like to ask how you define the upper limit when the frequency of successes is

Re: [R] Question on Binom.Confint

2018-09-13 Thread Bert Gunter
In what package? Binomial confidence interval functions are in several. 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 Thu, Sep 13, 2018 at 6:38 PM Guo, Fang

Re: [R] Question on Binom.Confint

2018-09-13 Thread David Winsemius
> On Sep 13, 2018, at 1:15 PM, Guo, Fang (Associate) > wrote: > > Hi, > > I have a question with the function Binom.Confint(x,n,"method"=lrt). For > likelihood ratio test, I'd like to ask how you define the upper limit when > the frequency of successes is zero. Thanks! First you need to

Re: [R] Question

2018-06-30 Thread Jeff Newmiller
Your question is notable for what it is missing... any trace of R code. [1][2][3] Do read the Posting Guide. I don't see "Sargan" in base R, so your analysis likely used a contributed package... there seem to be a couple, so your example code would clarify. I don't see the number of IVs listed

Re: [R] Question "breakdown point" --> robust statistics

2018-04-20 Thread Martin Maechler
> Olivier Crouzet > on Thu, 19 Apr 2018 18:13:30 +0200 writes: > Hi, > I think he's talking about how much a statistical estimator is influenced by extreme datapoints, e.g. >

Re: [R] Question

2018-04-19 Thread Olivier Crouzet
Hi, I think he's talking about how much a statistical estimator is influenced by extreme datapoints, e.g. https://en.m.wikipedia.org/wiki/Robust_statistics#Breakdown_point Olivier -- Olivier Crouzet Assistant Professor @LLING UMR6310 - Université de Nantes / CNRS Guest Scientist @UMCG -

Re: [R] Question

2018-04-19 Thread Keith Jewell
On 15/04/2018 17:26, Marc Girondot via R-help wrote: Le 15/04/2018 à 17:56, alireza daneshvar a écrit : break-down point Can you explain more what you plan to do and give an example of what you have tried to do until now to do a "break down point" in R. Perhaps a "break down point" is

Re: [R] Question

2018-04-15 Thread Marc Girondot via R-help
Le 15/04/2018 à 17:56, alireza daneshvar a écrit : break-down point Can you explain more what you plan to do and give an example of what you have tried to do until now to do a "break down point" in R. Perhaps a "break down point" is common in your field, but I have no idea about what it is

Re: [R] Question about subset

2018-04-10 Thread Sebastien Bihorel
.org Sent: Monday, April 9, 2018 12:33:41 AM Subject: Re: [R] Question about subset Sent from my iPhone > On Apr 8, 2018, at 9:06 PM, Sebastien Bihorel > <sebastien.biho...@cognigencorp.com> wrote: > > Hi, > > The help page for subset states "subset: logical expr

Re: [R] Question about subset

2018-04-10 Thread Sebastien Bihorel
Thanks. That works great! > df <- data.frame(x=c(1,1,NA,NA,2), y=c('a','a','a','b','b'), > z=c(TRUE,FALSE,TRUE,FALSE,TRUE)) > cond1 <- 'x==1' > cond2 <- 'x==1 & z' > df x y z 1 1 a TRUE 2 1 a FALSE 3 NA a TRUE 4 NA b FALSE 5 2 b TRUE > subset(df, subset =

Re: [R] Question about subset

2018-04-08 Thread David Winsemius
Sent from my iPhone > On Apr 8, 2018, at 9:06 PM, Sebastien Bihorel > wrote: > > Hi, > > The help page for subset states "subset: logical expression indicating > elements or rows to keep: missing values are taken as false." > > Before I try to re-invent

Re: [R] Question about subset

2018-04-08 Thread Bert Gunter
Please read the "Details" section of the help file -- it essentially tells you what to do by directly using indexing; e.g. for a vector, index by: [is.na(subset) | subset] . Adjust as necessary for your data structure.Or look at the code of, e.g. subset.data.frame and create your own subset

Re: [R] question regarding the AICcmodavg package

2018-02-20 Thread Cade, Brian
Do not model average the regression coefficients. This makes no sense (see Cade 2015. Model averaging and muddled multimodel inferences). And, no there is no reasonable way to model average regression coefficients ala Burnham and Anderson approach when some of your models include interactions

Re: [R] question with integrate function

2018-02-06 Thread li li
Oh ok. Thanks very much. I will have to restrict to a shorter interval. Hanna 2018-02-06 14:33 GMT-05:00 Göran Broström : > Hi Hanna, > > your function is essentially zero outside a short interval around 9. And > the help page states: "If the function is approximately

Re: [R] question with integrate function

2018-02-06 Thread Göran Broström
Hi Hanna, your function is essentially zero outside a short interval around 9. And the help page states: "If the function is approximately constant (in particular, zero) over nearly all its range it is possible that the result and error estimate may be seriously wrong." You could try to

Re: [R] question with integrate function

2018-02-06 Thread li li
Sorry. I meant in the previous email that the function h() is a monotone decreasing function. Thanks very much. 2018-02-06 13:32 GMT-05:00 li li : > Hi all, > The function h below is a function of c and it should be a monotone > increasing function since the integrand is

Re: [R] Question - TukeyHSD

2017-11-05 Thread John Kane via R-help
I may be missing the point, but if you can do the calculations by hand could you not write a function in R to do the same and apply it to a data.frame of the values? On Saturday, November 4, 2017, 11:01:59 AM EDT, Paul Kent wrote: Hi, I've been

Re: [R] Question - TukeyHSD

2017-11-04 Thread Richard M. Heiberger
Assuming you have as your model a one-way ANOVA, you can use the aovSufficient function in HH. ## install.packages("HH") ## if you don't have it yet library(HH) ?aovSufficient On Sat, Nov 4, 2017 at 9:30 AM, Paul Kent wrote: > Hi, > > > I've been performing some

Re: [R] Question - TukeyHSD

2017-11-04 Thread Bert Gunter
AFAICS, without knowing the structure of your data and what specifically you wish to do, how could one answer your question? -- which is probably yes, you can do it, but without further info, ??? Maybe someone with a better crystal ball can help -- or you could clarify. Cheers, Bert Bert

Re: [R] Question on Simultaneous Equations & Forecasting

2017-07-13 Thread Bert Gunter
gt; > Berend > >> Best, >> Bernhard >> >> -Ursprüngliche Nachricht- >> Von: Berend Hasselman [mailto:b...@xs4all.nl] >> Gesendet: Donnerstag, 13. Juli 2017 10:53 >> An: OseiBonsu, Frances >> Cc: Pfaff, Bernhard Dr.; r-help@r-project.org >

Re: [R] Question on Simultaneous Equations & Forecasting

2017-07-13 Thread Berend Hasselman
> One can indeed sometimes approximate without too much harm. But not always. Berend > Best, > Bernhard > > -Ursprüngliche Nachricht- > Von: Berend Hasselman [mailto:b...@xs4all.nl] > Gesendet: Donnerstag, 13. Juli 2017 10:53 > An: OseiBonsu, Frances > Cc

Re: [R] Question on Simultaneous Equations & Forecasting

2017-07-13 Thread Pfaff, Bernhard Dr.
type. Best, Bernhard -Ursprüngliche Nachricht- Von: Berend Hasselman [mailto:b...@xs4all.nl] Gesendet: Donnerstag, 13. Juli 2017 10:53 An: OseiBonsu, Frances Cc: Pfaff, Bernhard Dr.; r-help@r-project.org Betreff: [EXT] Re: [R] Question on Simultaneous Equations & Forecasting Frances

Re: [R] Question on Simultaneous Equations & Forecasting

2017-07-13 Thread Berend Hasselman
Frances, I would not advise Gauss-Seidel for non linear models. Can be quite tricky, slow and diverge. You can write your model as a non linear system of equations and use one of the nonlinear solvers. See the section "Root Finding" in the task view NumericalMathematics suggesting three

Re: [R] Question on Simultaneous Equations & Forecasting

2017-07-13 Thread Pfaff, Bernhard Dr.
Hi Frances, I have not touched the system.fit package for quite some time, but to solve your problem the following two pointers might be helpful: 1) Recast your model in the revised form, i.e., include your identity directly into your reaction functions, if possible. 2) For solving your model,

Re: [R] Question about correlation

2017-07-06 Thread Göran Broström
Please keep the conversation on the list: Others may be able to help you better than I can. On 2017-07-06 10:38, SEB140004 Student wrote: Ya. I had successfully got the result. Thank you very much. :) Isn't possible for me to obtain the network from the correlation matrix? I know nothing

Re: [R] Question about correlation

2017-07-05 Thread Jim Lemon
I think that Goran is right, I didn't take "cor(data)" literally. Jim On Thu, Jul 6, 2017 at 3:38 AM, Göran Broström wrote: > On 2017-07-05 11:56, Jim Lemon wrote: >> >> Hi Chin Yi, >> If you are trying to correlate "Health" with "Disease", i.e. >> >>

Re: [R] Question about correlation

2017-07-05 Thread Göran Broström
On 2017-07-05 11:56, Jim Lemon wrote: Hi Chin Yi, If you are trying to correlate "Health" with "Disease", i.e. cydf<-read.table(text="OTU ID Health Disease Bacterial 1 0.29 0.34 Bacterial 2 0.25 0.07 Bacterial 3 0.06 0.06 Bacterial 4 0.07 0.09 Bacterial 5 0.02 0.05",

Re: [R] Question about correlation

2017-07-05 Thread Jim Lemon
Hi Chin Yi, If you are trying to correlate "Health" with "Disease", i.e. cydf<-read.table(text="OTU ID Health Disease Bacterial 1 0.29 0.34 Bacterial 2 0.25 0.07 Bacterial 3 0.06 0.06 Bacterial 4 0.07 0.09 Bacterial 5 0.02 0.05", header=TRUE) print(cor(cydf$Health,cydf$Disease)) [1]

Re: [R] Question

2017-06-22 Thread Jeff Newmiller
This is not a Spark-help mailing list, either. -- Sent from my phone. Please excuse my brevity. On June 22, 2017 4:20:36 PM PDT, Amrith Deepak wrote: >This function won’t work with objects in spark as you can’t do a dfda$a >in spark as it’s not stored as a local variable. >

Re: [R] Question

2017-06-22 Thread Amrith Deepak
Sorry, I don’t think you understand my problem. dta = spark_read_csv(sc,”data_tbl”,”extension/file",delimiter = "|") dta is just a pointer to spark where the data is stored. I am using sparklyr to run this on spark. I’m not running it locally so I can’t use the $. I know how to do this locally

Re: [R] Question

2017-06-22 Thread Amrith Deepak
This function won’t work with objects in spark as you can’t do a dfda$a in spark as it’s not stored as a local variable. Thanks, Amrith > On Jun 22, 2017, at 4:15 PM, David Winsemius wrote: > > >> On Jun 22, 2017, at 11:22 AM, Amrith Deepak wrote:

<    1   2   3   4   5   6   7   8   9   10   >