Re: [R] random truncation

2019-07-13 Thread Spencer Graves
PLEASE EXCUSE:  This discussion has diverged from R into discussing the precise assumptions seemingly descriptive of an application that drove the initial post to this thread.  A reply by Abby Spurdle seemed to  me to raise questions, whose answers may not be intelligible without material snipp

Re: [R] random truncation

2019-07-13 Thread Abby Spurdle
Note my last response is probably off-topic. I just wanted to highlight the need for defining problems in a way that computers (and R programmers) can understand. On Sun, Jul 14, 2019 at 1:13 PM Abby Spurdle wrote: > > Firstly, we don't really need all your working. > Just the problem you want so

Re: [R] random truncation

2019-07-13 Thread Abby Spurdle
Firstly, we don't really need all your working. Just the problem you want solve. However, I'm still having difficulty understanding this. > I'm observing Y[i] = (X[i]'b+e) given Y[i]>(z[i]'c+f) where e and > f are normally distributed with standard deviations s and t, > respectively, i = 1:n. I

Re: [R] Problem in enrichR package

2019-07-13 Thread Jeff Newmiller
The best place to make such reports is to the email address returned by the maintainer() function. If you think it might be something other users might know about our benefit from knowing about, go ahead and cc r-help... but don't expect the maintainer to monitor this list. (This advice is in th

Re: [R] random truncation

2019-07-13 Thread Abby Spurdle
> What integral? What do you mean "What integral?"... The integral on the Wikipedia page. (The same page referenced in the earlier posts). https://en.wikipedia.org/wiki/Truncated_distribution#Random_truncation https://wikimedia.org/api/rest_v1/media/math/render/svg/93717ffcd3bfa2a60d825bd71b5375a

Re: [R] encountered errors while installing additional packages

2019-07-13 Thread gvsa123
Thank for the reply Jeff! I got a notice that my post needed moderator approval, so I wasn't sure where and how I can mark it as solved. I uninstalled everything first, and realized I could get all of the additional packages I needed off the Mint repos, and everything worked well from thereon.

[R] Problem in enrichR package

2019-07-13 Thread Mohammadian
Hi all! I used to use enrichR package for gene enrichment. However the code below does not work anymore: >enrichR::listEnrichrDbs() Error in fromJSON(dbs) : unexpected character '<' > sessionInfo () R version 3.6.0 (2019-04-26) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 7

Re: [R] R Update

2019-07-13 Thread Patrick (Malone Quantitative)
Please re-send as plain text. The HTML version is unreadable. On Sat, Jul 13, 2019 at 12:25 PM shetumi--- via R-help wrote: > > I tried to update R in my Windows machine from 3.4.2 to latest one. But it is > showing error as follows. Can anyone please help me where the problem is ? > > library(i

Re: [R] encountered errors while installing additional packages

2019-07-13 Thread Jeff Newmiller
This is a mailing list, not a web forum. The only way to "mark it as solved" is to send another message that indicates that, preferably with a usable summary of how you resolved it. I am not sure what your point of comparison is for declaring incompatibilities is, but R _is_ a CLI program. An I

[R] R Update

2019-07-13 Thread shetumi--- via R-help
I tried to update R in my Windows machine from 3.4.2 to latest one. But it is showing error as follows. Can anyone please help me where the problem is ? > library(installr)> updateR()Installing the newest version of R, please wait > for the installer file to be download and executed. Be sure to c

Re: [R] hist{graphics}

2019-07-13 Thread peter dalgaard
Also checkout MASS::truehist or simply consider setting breaks so as not to coincide with data values. (hist() not doing something like this, but instead actively aiming for pretty breaks is something of a design bug in my book, but ancient history and not easy to change at this point in time.)

Re: [R] random truncation

2019-07-13 Thread Spencer Graves
On 2019-07-12 22:31, Abby Spurdle wrote: > The distribution of the randomly truncated variable has thus four > parameters: a, b, mu and sigma.  I was able to write down the likelihood > and attempted to maximise it I read the Wikipedia article more carefully. The formula is relatively simple,

Re: [R] encountered errors while installing additional packages

2019-07-13 Thread Jeff Newmiller
These are the wrong diagnostics, and it looks to me like the packages you are trying to install are unrelated. Try installing one package and show us the output that follows that request, not the warnings. Mention if you are using as any elevated privileges and give the output of sessionInfo().

Re: [R] hist{graphics}

2019-07-13 Thread Duncan Murdoch
On 12/07/2019 11:38 a.m., Steven wrote: Never mind. Thanks. I found that adding parameter right=F to the call fixes it. Drawing a histogram of discrete data often leads to bad results. Histograms are intended for continuous data, where no observations fall on bin boundaries. You often get