Re: [R] Creating a log-transformed histogram of multiclass data

2021-08-03 Thread Tom Woolman
Apologies, I left out 3 critical lines of code after the randomized sample dataframe is created: group_a <- d[ which(d$label =='A'), ] group_b <- d[ which(d$label =='B'), ] group_c <- d[ which(d$label =='C'), ] On 2021-08-03 18:56, Tom Woolman wrote: # Resending this message since the orig

[R] Creating a log-transformed histogram of multiclass data

2021-08-03 Thread Tom Woolman
# Resending this message since the original email was held in queue by the listserv software because of a "suspicious" subject line, and/or because of attached .png histogram chart attachments. I'm guessing that the listserv software doesn't like multiple image file attachments. Hi everyon

Re: [R] What are the pros and cons of the log.p parameter in (p|q)norm and similar?

2021-08-03 Thread Bill Dunlap
In maximum likelihood problems, even when the individual density values are fairly far from zero, their product may underflow to zero. Optimizers have problems when there is a large flat area. > q <- runif(n=1000, -0.1, +0.1) > prod(dnorm(q)) [1] 0 > sum(dnorm(q, log=TRUE)) [1] -920

Re: [R] What are the pros and cons of the log.p parameter in (p|q)norm and similar?

2021-08-03 Thread Duncan Murdoch
On 03/08/2021 12:20 p.m., Michael Dewey wrote: Short version Apart from the ability to work with values of p too small to be of much practical use what are the advantages and disadvantages of setting this to TRUE? Longer version I am contemplating upgrading various functions in one of my packa

Re: [R] Help with package EasyPubmed

2021-08-03 Thread bharat rawlley via R-help
 Okay, the following search string resolved my issue  -  "Cardiology AND randomized controlled trial[Publication type] AND 2011[PDAT]" Thank you! On Tuesday, 3 August, 2021, 02:21:38 pm GMT-4, bharat rawlley via R-help wrote: Hello,  When I try to run the following code using the packa

[R] Help with package EasyPubmed

2021-08-03 Thread bharat rawlley via R-help
Hello,  When I try to run the following code using the package Easypubmed, I get a null result -  > batch_pubmed_download(query_7) NULL #query_7 <- "Cardiology AND randomizedcontrolledtrial[Filter] AND 2011[PDAT]" However, the exact same search string yields 668 results on Pubmed.  I am unable t

[R] What are the pros and cons of the log.p parameter in (p|q)norm and similar?

2021-08-03 Thread Michael Dewey
Short version Apart from the ability to work with values of p too small to be of much practical use what are the advantages and disadvantages of setting this to TRUE? Longer version I am contemplating upgrading various functions in one of my packages to use this and as far as I can see it w

Re: [R] Generate oauth token using HTTR package in R

2021-08-03 Thread Mark Fowler
Hi Lac, The status code means that you were not authorized to access the site, perhaps reflecting some problem with your syntax or your permissions. I note that attempting to simply go to the link to check on it gives status code 405, meaning the typical click on the hypertext is not an accepte

Re: [R] Long Format data

2021-08-03 Thread Jim Lemon
Hi Admire, Neither the R script nor CSV file was attached to your message. Both should be plain text files and are unlikely to be rejected by the help list mail server. Perhaps check your email client. Jim On Tue, Aug 3, 2021 at 5:09 PM Admire Tarisirayi Chirume wrote: > > Hello, i hope you are

[R] Generate oauth token using HTTR package in R

2021-08-03 Thread Lac Will
Novice attempting R, as displayed below, to obtain an oauth token using HTTR package in R and have a status code of 401. Any insight as to the cause of this error and a resolution? Thanks in advance. # Status: 401 library(httr) base64_value <- "123456789=" response16 <- httr::POST

[R] Long Format data

2021-08-03 Thread Admire Tarisirayi Chirume
Hello, i hope you are well. May you kindly help me to structure data in the folder attached herewith in file BOP_All_Countries.csv. I am doing panel data analysis. *I need it to be structured as it is on the file R_help.csv. * Please kindly see the r-script below *(r_help.R)* that i ran which did