Re: [R] Error on using Confint function to calculate 95% CI

2023-04-26 Thread bharat rawlley via R-help
/mailman/listinfo/r-sig-mixed-models which may be able to help you better. Michael On 26/04/2023 02:37, bharat rawlley via R-help wrote: > Hello, > > I am trying to estimate 95% CI using the confint function for a generalized > liner model. While I am able to estimate Odds ratio us

[R] Error on using Confint function to calculate 95% CI

2023-04-25 Thread bharat rawlley via R-help
Hello,  I am trying to estimate 95% CI using the confint function for a generalized liner model. While I am able to estimate Odds ratio using the coef function but on using the confint function, I get the message " Error in approx(sp$y, sp$x, xout = cutoff) : need at least two non-NA values to

Re: [R] Help needed with data visualization in R

2021-11-01 Thread bharat rawlley via R-help
experience with this but I did a search and found the following which looks close to what you are looking for https://stackoverflow.com/questions/69755844/is-it-possible-to-draw-the-following-diagram-in-r On Mon, Nov 1, 2021 at 5:06 PM bharat rawlley via R-help < r-help@r-project.org>

[R] Help needed with data visualization in R

2021-11-01 Thread bharat rawlley via R-help
Hello,  I wanted to ask if it is possible to have a data visualization of the following kind in R?  It is not exactly a graph; a series of bubbles that have an area corresponding to the percentage inside it arranged in a row.  Thank you!  __ R-help@r-p

Re: [R] Help with clinical trials.gov AACT database

2021-08-26 Thread bharat rawlley via R-help
I am completely stuck here, any help would be greatly appreciated! On Thursday, 26 August, 2021, 04:18:31 pm GMT-4, bharat rawlley via R-help wrote:  Hello, I am trying to use R to access the clinicaltrials.gov AACT database to create a list of facility_investigators for a specific

[R] Help with clinical trials.gov AACT database

2021-08-26 Thread bharat rawlley via R-help
 Hello, I am trying to use R to access the clinicaltrials.gov AACT database to create a list of facility_investigators for a specific topic. The following code is an example of how to get a list of all clinical trials on the topic TP53 library(dplyr) library(RPostgreSQL) aact = src_postgres(d

Re: [R] Help needed with getting a decent image of ggplot2 graph

2021-08-24 Thread bharat rawlley via R-help
to get 300 dpi > resolution for the whole plot. > > tiff("test.tiff", units = "px", width = 2200, height = 1250, res = 300) > > would probably do it for you. How come you can't change the width and > height in pixels? > > Jim > > On Wed, Aug 25, 2021 a

Re: [R] Help needed with getting a decent image of ggplot2 graph

2021-08-24 Thread bharat rawlley via R-help
t in pixels? Jim On Wed, Aug 25, 2021 at 8:22 AM bharat rawlley via R-help wrote: > > Hello, I made the following graph in R with the following code. > ggplot(aes(x=factor(year), y=percentage, color = Gender, fill=Gender), data = > graph_text)+  geom_bar(position = 'd

[R] Help needed with getting a decent image of ggplot2 graph

2021-08-24 Thread bharat rawlley via R-help
Hello, I made the following graph in R with the following code. ggplot(aes(x=factor(year), y=percentage, color = Gender, fill=Gender), data = graph_text)+  geom_bar(position = 'dodge', stat='identity')+  theme_classic()+  scale_y_continuous(limits=c(0, 1.4*ymax))+  labs(x= 'Year', y = 'Percentage

Re: [R] Help needed with ggplot2

2021-08-21 Thread bharat rawlley via R-help
getting a helpful and quick response. Cheers, 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 Sat, Aug 21, 2021 at 2:47 PM bharat rawlley

[R] Help needed with ggplot2

2021-08-21 Thread bharat rawlley via R-help
Hello, on using the following code for the following data, the graph I get has an x axis where years are mentioned as 2012.5, 2017.5 etc.  I have the following questions -  Q1 How can I make the years on x axis as 2011, 2012, 2013, 2014 and so on..  Q2 Is there any way to create a small gap betw

Re: [R] Help needed in double bar plot made using ggplot2

2021-08-19 Thread bharat rawlley via R-help
>    theme_classic() > > > The following geom_text will change the text labels color to red. > > >    geom_text( >      aes(label = scales::percent(percentage, accuracy = 0.1)), >      position = position_dodge(width = 0.9), >      # >      color = "re

Re: [R] Help needed in double bar plot made using ggplot2

2021-08-19 Thread bharat rawlley via R-help
ls = scales::percent   )+   theme_classic() The following geom_text will change the text labels color to red.   geom_text(     aes(label = scales::percent(percentage, accuracy = 0.1)),     position = position_dodge(width = 0.9),     #     color = "red",     #     size = 5,     vjust = 0

[R] Help needed in double bar plot made using ggplot2

2021-08-19 Thread bharat rawlley via R-help
Hello I have tried to create the following graph using ggplot2 using the following code -  ggplot(aes(x=year, y=percentage, group=gender, fill=gender), data = graph_text)+  geom_bar(position = 'dodge', stat='identity')+  scale_y_continuous(expand = c(0,0))+  theme_classic()+  geom_text(aes(label

Re: [R] Problem in Notrend_test()

2021-08-19 Thread bharat rawlley via R-help
On 19.08.2021, at 05:57, bharat rawlley via R-help > wrote: > > Hello, I have the following vector in R, > print(column_Data)[1] 42 33 34 28 > But I get the following error on using notrend_test on this data as follows - > > notrend_test(column_Data)Error in notrend_test(col

[R] Problem in Notrend_test()

2021-08-18 Thread bharat rawlley via R-help
Hello, I have the following vector in R,  print(column_Data)[1] 42 33 34 28 But I get the following error on using notrend_test on this data as follows -  notrend_test(column_Data)Error in notrend_test(column_Data) : set a proper window. I am unable to find any information on Stackoverflow etc. 

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

[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

Re: [R] Help needed with gender_df

2021-08-01 Thread bharat rawlley via R-help
include first names, only names in a form similar to Last First_name_initial. This function/package is not appropriate for your problem. Hope this helps, Rui Barradas Às 17:59 de 01/08/21, bharat rawlley via R-help escreveu: > Hello, > when using the following code - > gender

[R] Help needed with gender_df

2021-08-01 Thread bharat rawlley via R-help
Hello,  when using the following code -  gender_df(Test1, name_col = "First", year_col = "Year") for the file attached below, I get the following result -  # A tibble: 0 x 6# ... with 6 variables: name , proportion_male , proportion_female , gender ,#   year_min , year_max | First | | Yea

Re: [R] Different results on running Wilcoxon Rank Sum test in R and SPSS

2021-01-20 Thread bharat rawlley via R-help
Thank you for your time, Professor John! Much appreciated!  Yours sincerely Bharat Rawlley  Sent from Yahoo Mail on Android On Thu, 21 Jan 2021 at 4:40 AM, John Fox wrote: Dear Bharat Rawlley, On 2021-01-20 1:45 p.m., bharat rawlley via R-help wrote: >  Dear Professor John, > Tha

Re: [R] Different results on running Wilcoxon Rank Sum test in R and SPSS

2021-01-20 Thread bharat rawlley via R-help
ng the same value of the test statistic and different p-values, or is the test statistic different as well? I hope this helps,   John John Fox, Professor Emeritus McMaster University Hamilton, Ontario, Canada web: https://socialsciences.mcmaster.ca/jfox/ On 2021-01-19 5:46 a.m., bharat rawlley

Re: [R] Different results on running Wilcoxon Rank Sum test in R and SPSS

2021-01-19 Thread bharat rawlley via R-help
wrote: Unfortunately your data did not come through. Try using dput() and then pasting that into the body of your e-mail message. On 18/01/2021 17:26, bharat rawlley via R-help wrote: > Hello, > On running the Wilcoxon Rank Sum test in R and SPSS, I am getting the > following dis

[R] Different results on running Wilcoxon Rank Sum test in R and SPSS

2021-01-18 Thread bharat rawlley via R-help
Hello,  On running the Wilcoxon Rank Sum test in R and SPSS, I am getting the following discrepancies which I am unable to explain. Q1 In the attached data set, I was trying to compare freq4w_n in those with drug_code 0 vs 1. SPSS gives a P value 0.031 vs R gives a P value 0.001779.  The code I u