Re: [R] R-help Digest, Vol 255, Issue 17

2024-05-21 Thread Michael L Friendly
You might be interested in the `Rdatasets` package, https://vincentarelbundock.github.io/Rdatasets/ which lists over 2200 datasets from various packages. What is the context of the `lottery` dataset. I seem to recall smth to do with the NJ Lottery -Michael 1. Availability of Sdatasets

Re: [R] Strange variable names in factor regression

2024-05-09 Thread Michael Dewey
day^5 17.406593 -12.036715 -4.968654 -1.852819 3.291477 4.263642 wday^6 2.591317 Yes, that is what ordered is supposed to do, fit polynomial contrasts. When you remove the intercept that breaks it so you get a different fit, in fact the same as you got when it was not ordered. Michael

Re: [R] Double buffering plots on Windows

2024-03-25 Thread Michael L Friendly
: [R] Double buffering plots on Windows Message-ID: mailto:b74c68da-a0b2-47dd-b54f-6b318488c...@stat.auckland.ac.nz>> Content-Type: text/plain; charset="utf-8"; Format="flowed" Hi Take a look at dev.hold() and dev.flush() Paul --- Michael Friendly Email: friendly AT

Re: [ESS] FW: [GNU ELPA] ESS version 24.1.1

2024-02-22 Thread Dr. Michael L. Dowling via ESS-help
"make" and "make install". Should I overwrite the one with the other? Cheers, Mike -- Dr. Michael L. Dowling Gaußstr. 27 38106 Braunschweig Germany __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help

Re: [ESS] FW: [GNU ELPA] ESS version 24.1.1

2024-02-21 Thread Dr. Michael L. Dowling via ESS-help
e source directory, /usr/src/ESS-24.01.1/etc/ESSR/R Can anybody suggest the cause? Cheers, M. Dowling -- Dr. Michael L. Dowling Gaußstr. 27 38106 Braunschweig Germany __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help

[R] DescTools::Quantile

2024-01-26 Thread Michael Meyer via R-help
oth quantiles are equal to 100! Is this function working or am I not using it correctly? Michael Meyer __ 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

[R] Quantiles of sums of independent discrete random variables

2024-01-25 Thread Michael Meyer via R-help
/10, FUN.VALUE=0 ))) g <- function(s) dnorm(s,mean=0,sd=0.01) cat("\n\n") for(i in 1:5){       cat("Doing convolution ",i,"\n")   g <- convolve(g,f)$density } cat("\nConvolutions finished, plotting density.") s <- seq(0,100,length.out=1024) matplot(s,g(s)

[R] Use of geometric mean .. in good data analysis

2024-01-25 Thread Michael Meyer via R-help
an all asymptotic results no longer apply. Michael Meyer [[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:/

[R] Quantiles of sums of independent discrete random variables

2024-01-23 Thread Michael Meyer via R-help
how I could approach this problem with the tools of R? Thanks in advance for all replies, Michael Meyer [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman

Re: [R] Function with large nested list

2023-12-18 Thread Michael Dewey
f the final parenthesis or given it an incomplete line. Michael As I said, i have checked the structure multiple times, but cant find an error. I have tried rebuilding it and testing each time i add a part. Each part functions isolated, but not together in the same function. I can't find any

Re: [R] [External] Re: Error in setwd(dir) when initializing R

2023-11-21 Thread Michael Dewey
are free of problems. Have you asked around? Michael On 21/11/2023 12:41, Ana de las Heras Molina wrote: Hello, I am sorry for my ignorance, but what is Rgui.exe? El mar, 21 nov 2023 a las 12:06, Ivan Krylov () escribió: В Tue, 21 Nov 2023 10:51:59 +0100 Ana de las Heras Molina пишет: I

Re: [R] car::deltaMethod() fails when a particular combination of categorical variables is not present

2023-10-07 Thread Michael Cohn
Thank you very much, John. This has allowed us to move forward on several fronts and better understand our data. - Michael Cohn On Tue, Sep 26, 2023 at 8:39 AM John Fox wrote: > Dear Michael, > > My previous response was inaccurate: First, linearHypothesis() *is* able > to accommo

Re: [R] Question about R software and output

2023-10-03 Thread Michael Dewey
Dear Charity Since your organisation is a member of King's Health Partners you might like to ask colleagues in KCL for local support. Michael On 02/10/2023 08:48, Ferguson Charity (CEMINFERGUSON) wrote: To whom it may concern, My understanding is that the R software is downloaded from

[R] car::deltaMethod() fails when a particular combination of categorical variables is not present

2023-09-26 Thread Michael Cohn
know of any theoretical reason that missing one interaction parameter estimate should prevent getting a confidence interval for a different combination of predictors. Is there a way to use deltaMethod() or some other function to do this without changing my data? Thank you, - Michael Cohn Vote Rev

Re: [R] How to fix this problem

2023-09-25 Thread Michael Dewey
It looks here as though the E coli column has commas in it so will be treated as character. Michael On 25/09/2023 15:45, avi.e.gr...@gmail.com wrote: David, This may just be the same as your earlier problem. When the type of a column is guessed by looking at the early entries, any non

Re: [R] Odd result

2023-09-24 Thread Michael Dewey
Dear David To get the first 46 rows just do KurtzData[1:43,] However really you want to find out why it happened. It looks as though the .csv file you read has lots of blank lines at the end. I would open it in an editor to check that. Michael On 23/09/2023 23:55, Parkhurst, David wrote

Re: [R] prop.trend.test

2023-09-07 Thread Michael Dewey
Dear Thomas Are you looking for more than smokers / patients Michael On 07/09/2023 14:23, Thomas Subia via R-help wrote: Colleagues  Consider smokers  <- c( 83, 90, 129, 70 ) patients <- c( 86, 93, 136, 82 )  prop.trend.test(smokers, patients)  Output: Chi-square

Re: [R] To UNSUBSCRIBE

2023-06-25 Thread Michael Dewey
You can find instructions on how to do this on the bottom of e-mailas from the list. On 25/06/2023 15:34, Siddharth Arun wrote: Please unsubscribe me from your mailing list. -- Michael http://www.dewey.myzen.co.uk/home.html __ R-help@r

[R] post tweets with media attachment - and with retirement of rtweet

2023-06-24 Thread Michael Ashton
All - I run an automated script that pulls in some market data, makes some charts, and posts them to twitter. A couple of them per day, and then once per month there's a little flurry around the CPI report. For a while rtweet() worked great. Then v2 happened and Oauth2.0. The package broke,

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

2023-04-26 Thread Michael Dewey
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 using the coef function but on using the confint function, I get

Re: [R] nlme varFixed

2023-03-04 Thread Michael Dewey
Dear Franz Only attachments of specific types are allowed on the R lists and yours did not come through. It might be necessary to show your code as well. Have you thought of trying the mailing list dedicated to mixed models? https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models Michael

Re: [R] dyn.load(now = FALSE) not actually lazy?

2023-02-01 Thread Michael Milton
halted On Wed, Feb 1, 2023 at 9:05 PM Ivan Krylov wrote: > В Wed, 1 Feb 2023 14:16:54 +1100 > Michael Milton пишет: > > > Is this a bug in the `dyn.load` implementation for R? If not, why is > > it behaving like this? What should I do about it? > > On Unix-like syste

[R] dyn.load(now = FALSE) not actually lazy?

2023-01-31 Thread Michael Milton
On Linux, if I have a .so file that has a dependency on another .so, and I `dyn.load(now=FALSE)` the first one, R seems to try to resolve the symbols immediately, causing the load to fail. For example, I have `libtorch` installed on my HPC. Note that it links to various libs such as

Re: [R] My forest plot is not fit to windows in R software

2023-01-11 Thread Michael Dewey
Dear Fahimeh Try preceding your call of forest.meta with pdf("myplot.pdf") forest.meta(..) dev.off() Why did you set xlim to c(0, 1) Michael On 10/01/2023 19:37, Fahimeh Alizadeh wrote: Dear Prof. Thank you for your kind response. I have only used: install.packages(

Re: [R] My forest plot is not fit to windows in R software

2023-01-10 Thread Michael Dewey
a different graphics format like pdf? Then we may be able to see where the issue lies. Michael On 10/01/2023 12:30, Fahimeh Alizadeh via R-help wrote: Dear Prof. My forest plot is not fit to windows in R software, I have 49 studies but forest plot only show from 9 to 42. forest.meta(hidemeta

Re: [R] Functional Programming Problem Using purr and R's data.table shift function

2023-01-02 Thread Michael Lachanski
Dénes, thank you for the guidance - which is well-taken. Your side note raises an interesting question: I find the piping %>% operator readable. Is there any downside to it? Or is the side note meant to tell me to drop the last: "%>% `[`"? Thank you, == Michael Lacha

[R] Functional Programming Problem Using purr and R's data.table shift function

2022-12-31 Thread Michael Lachanski
. Thank you for any help you can provide or general guidance. == Michael Lachanski PhD Student in Demography and Sociology MA Candidate in Statistics University of Pennsylvania mikel...@sas.upenn.edu [[alternative HTML version deleted]] __ R-he

[R] piecewiseSEM two errors: arguments imply different numbers of rows / object 'ret' not found

2022-12-17 Thread Michael Eisenring
Dear Rlist members, We are trying to run a SEM with your package. Unfortunaley while running our code two error messages popped up. For the life of us we could not figure out how to solve these errors . We are hoping very much that somebody can help us: Why do we get these error messages? We

Re: [R] Select dataframe row containing a digit

2022-11-30 Thread Michael Dewey
I suspect [[:digit:]] might have done what you want. Michael On 30/11/2022 13:04, Luigi Marongiu wrote: Thank you, I have been trying with [:digit:] but did not work. It worked with `df$val[grepl('[0-9]', df$val)] = "NUM"` On Wed, Nov 30, 2022 at 2:02 PM Ivan Krylov wrote: В W

[R] picewiseSEM undefined columns selected

2022-11-15 Thread Michael Eisenring
Dear r-help list members, I would like to run a pathway analysis using the R-package piecewiseSEM (v.2.12). I used a very simple model structure that is similar to the example in the piecewiseSEM description. Unfortunatley, once I execute the "as.psem" function I get the error "Error in

Re: [R] Sensitivity and Specificity

2022-10-24 Thread Michael Dewey
So predict is a one-dimensional vector of predictions but you are treating it as a two-dimensional matrix (presumably you think those are the totals). Michael On 24/10/2022 16:50, greg holly wrote: Hi Michael, I appreciate your writing. Here are what I have after; > predict_test

Re: [R] Sensitivity and Specificity

2022-10-24 Thread Michael Dewey
Rather hard to know without seeing what output you expected and what error message you got if any but did you mean to summarise your variable predict before doing anything with it? Michael On 24/10/2022 16:17, greg holly wrote: Hi all R-Help , After partitioning my data to testing

Re: [R] Forestplot, grid graphics Viewplot grid.arange

2022-10-14 Thread Michael Dewey
There are several other CRAN packages which provide forest plots (see CRAN Task View for details) and they do not all use grip graphics which I think the forestplot package does. It might be worth swapping to one of them. Michael On 14/10/2022 04:34, Jim Lemon wrote: Hi Mary, I didn't see

Re: [R] High concurvity/ collinearity between time and temperature in GAM predicting deaths but low ACF. Does this matter?

2022-06-10 Thread Michael Dewey
on clearly, but it seems to me that, as usual, we have a mix of statistical and scientific questions here and you may need to rethink your sceientific model in the light of the issue with your data. Michael On 10/06/2022 10:30, jade.sho...@googlemail.com wrote: Hi Michael, I don't think my reply to your

Re: [R] High concurvity/ collinearity between time and temperature in GAM predicting deaths but low ACF. Does this matter?

2022-06-09 Thread Michael Dewey
a try. Michael On 08/06/2022 18:15, jade.shodan--- via R-help wrote: Hi Simon, Thanks so much for this!! I have two follow up questions, if you don't mind. 1. Does including an autoregressive term not adjust away part of the effect of the response in a distributed lag model (where the outcome

Re: [R] Shiny app Deployment not Working

2022-05-27 Thread Michael Dewey
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. -- Michael http://www.dewey.myzen.co.uk/home.html __ R-help@r

Re: [R] Restoration of "rite" package of R as R-script editor or the like

2022-05-23 Thread Michael Dewey
Notepad++ is fine as a light weight editor with syntax highlighting but the plug-in for R does not seem to have been updated for years. Michael On 23/05/2022 17:37, Rui Barradas wrote: Hello, I was also thinking about Notepad++. And about an editor no one mentinoed, vim. I've learned vi

Re: [R] How to create density ellipses with R

2022-01-15 Thread Michael L Friendly
ellipse draws mathematical ellipses, I believe For proper bivariate normal density ellipses (not simply contours), check out: car::dataEllipse heplots::covEllipses -Michael Message: 1 Date: Fri, 14 Jan 2022 10:12:50 -0500 From: Paul Bernal To: R Subject: [R] How to create density ellipses

Re: [ESS] ESS process on Docker containers and enabing Flymake

2022-01-05 Thread Gilchrist, Michael Aaron via ESS-help
To be clear, Alex is referring to the R package 'lintr', not an emacs package. I made that mistake and spent some time looking for an elpa package. Mike __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help

Re: [R] how to run r biotools boxM terst on multiple groups?

2022-01-05 Thread Michael L Friendly
s (such as, death, fever, symptoms etc). > I would like to run a box matrix test and I am using biotools' boxM, > but it Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. & Former Chair, ASA Statistical Graphics Section York University Vo

Re: [R] Issue about eRM package

2021-09-28 Thread Michael Dewey
I do not know that package so cannot help with that but the dataset did not come through. This mailing list is quite restrictive in what sorts of attachment it allows so I suggest trying something like a .csv file or a .txt file. Michael On 28/09/2021 10:37, 宋启发 wrote: I am using your

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

2021-08-06 Thread Michael Dewey
Sent off-list Thanks Bill and Duncan. I only asked for advice but I got an education too. Michael On 03/08/2021 21:24, Bill Dunlap wrote: In maximum likelihood problems, even when the individual density values are fairly far from zero, their product may underflow to zero. Optimizers have

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

2021-08-03 Thread Michael Dewey
and expanding the documentation. -- Michael http://www.dewey.myzen.co.uk/home.html __ 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

Re: [R] if statement and for loop question

2021-06-01 Thread Michael Dewey
to us then using dput() will ensure that we have exactly the same as you have. Do not forget to tell us what libraries, if any, you have loaded too. Michael On 31/05/2021 17:26, Kai Yang via R-help wrote: Hi Jim, Sorry to post "same" question, because 1. I was asking to use plain t

Re: [R] calculating area of ellipse

2021-05-11 Thread Michael Dewey
Dear Stephen In that application the axes would be sensitivity and specificity (or their inverses) or some transformation of them like logits so the units would be the same. Whether the area has any scientific meaning I am not sure. Michael On 11/05/2021 15:20, Stephen Ellison wrote

[R] mgcv: bam warning messages and non-convergence

2021-04-20 Thread Williamson, Michael via R-help
d negative binomial would better but I’m not sure how to undertake that. I know there’s a lot here but any help would be appreciated. Many thanks, Mike Michael Williamson London NERC DTP Candidate Email: michael.william...@kcl.ac.uk<mailto:michael.william...@kcl.ac.uk> Phone: +4477648365

Re: [R] readline in function call with space in prompt.

2021-02-09 Thread Michael Dewey
t the UI may be important for a function like readline() which does UI .. Martin __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] make new collumns with conditions

2021-01-25 Thread Michael Dewey
Dear Krissie I think you misunderstood Rui's response. He was generating some fake data to test the code not suggesting you rebuild your data frame. Michael On 25/01/2021 16:01, krissievdh wrote: Hi, Thanks for your response. I do get what you're doing. However, the table I sent is just

Re: [R] make new collumns with conditions

2021-01-25 Thread Michael Dewey
Dear Krissie I think you may be looking for the aggregate command. Note that this is a plain text list so if you post in HTML we do not see what you see. In this case we did not see any red numbers. Michael On 25/01/2021 13:57, krissievdh wrote: Hi, I have a dataset (d_vigi)with this kind

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

2021-01-19 Thread Michael Dewey
See comments inline On 19/01/2021 10:46, bharat rawlley wrote: Thank you for the reply and suggestion, Michael! I used dput() and this is the output I can share with you. Simply explained, I have 3 columns namely, drug_code, freq4w_n and PFD_n. Each column has 132 values (including NA

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

2021-01-19 Thread Michael Dewey
posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Michael http://www.dewey.myzen.co.uk/home.html __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https:/

Re: [R] Help with connection issue for R (just joined, leading R for our agency)

2020-12-14 Thread Michael Dewey
Just to add to Petr's comment there are other basic editors with syntax highlighting like Notepad++ which are also OK if you want a fairly minimalist approach. Michael On 14/12/2020 08:16, PIKAL Petr wrote: Hallo Alejandra Although RStudio and ESS could help with some automation (each

Re: [R] Find the ideal cluster

2020-12-12 Thread Michael Dewey
Dear Jovani If you cross-post on CrossValidated as well as here it is polite to give a link so people do not answer here when someone has already answered there, or vice versa. Michael On 12/12/2020 15:27, Jovani T. de Souza wrote: So, I and some other colleagues developed a hierarchical

Re: [R] scott-knot ESD effect size test

2020-12-02 Thread Michael Dewey
There seems to be a package on CRAN dedicated exclusively to this test. It is called ScottKnotESD rather unoriginally. Michael. On 02/12/2020 10:32, Neha gupta wrote: I have the following data from resample svm= svm$resample$RMSE nn= nn$resample$RMSE we perform the statistical tests like

Re: [R] WG: Packegs for mathematics

2020-11-17 Thread Michael Dewey
be relevant. Note that the task views tell you what exists but they do not offer best buy information. For that you may need to come back here and ask about a specific subset of packages. Michael On 16/11/2020 10:02, ELLENBERGER Mihaela via R-help wrote

Re: [R] Error message when using "revtools" package

2020-11-05 Thread Michael Dewey
. Hopefully that will be a single entry which you can then include in your post. It also increases the chances of someone looking at it as a large .bib file is going to deter people. Michael On 05/11/2020 02:38, John wrote: Hi, I tried to read a bib file by "read_bibliography"

Re: [R] build a literature database

2020-11-04 Thread Michael Dewey
Dear John If you are doing a systematic review have you thought of investigating some of the packages in the CRAN Task View on MetaAnalysis like metagear or revtools? I have not used any of them but they claim to support that part of the process. Michael On 04/11/2020 09:22, John wrote

Re: [R] Error: variable not found

2020-10-30 Thread Michael Dewey
Dear Hannah I think the problem is that attach() is not doing what you think it is. It does seem to make it easy to make mistakes. I would suggest switching to using with() instead or using the data = parameter to functions which support it. Michael On 30/10/2020 08:15, Hannah Van Impe

Re: [R] Need help in programming R on functional data

2020-10-29 Thread Michael Dewey
You have already asked this and people gave you a variety of answers. Just asking again without clarifying why those answers did not help you is not going to solve your problem. Tell us what you tried and why it failed might help. Michael On 29/10/2020 07:50, Ablaye Ngalaba wrote: Hello, I

Re: [R] Dear R experts, I have a question about meta-analysis

2020-10-28 Thread Michael Dewey
to the archive and for instructions on registering for the list. Michael On 27/10/2020 13:32, 21803...@zju.edu.cn wrote: Dear R experts, Greetings from China! I'm Zhang in the College of Education, Zhejiang University, and I am recently running a meta-analysis. Since research using the randomized

[R] vanilla session in R Gui or RStudio

2020-10-22 Thread Michael L Friendly
1.2-18 reprex_0.3.0 assertthat_0.2.1 [55] minqa_1.2.4 rmarkdown_2.4rstudioapi_0.11 R6_2.4.1 boot_1.3-25 nnet_7.3-14 [61] nlme_3.1-149 compiler_3.6.3 > Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. & Former

Re: [R] R for mac

2020-09-25 Thread Michael Johnston
installing R on mac and one student is struggling to install R on Chromebook. Is there someone who would be willing to provide some pointers? Thank you for considering this request, Michael On Thu, Sep 24, 2020 at 9:10 AM Dirk Eddelbuettel wrote: > > On 23 September 2020 at 15:32, Michael Jo

Re: [R] Stats help for dissertation project

2020-09-19 Thread Michael Dewey
be the first port of call. If they fail to meet their obligations then there is a site Cross Validated where you may have better luck. Michael On 18/09/2020 18:19, Raija Hallam wrote: Hello, I am a conservation Masters student who is new to R and in need of some confirmation of my methods/ stats help

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

2020-09-15 Thread Michael Dewey
are also likely to get more immediate help if you frame your question in terms of either meta or metafor the two packages which dmetar uses. The authors of meta and metafor all frequent the list Michael On 14/09/2020 20:41, Marc Schwartz via R-help wrote: Hi, Bert has pointed you to some R

Re: [R] truth[(truth[, 1]=="G3" & truth[, 2]=="G2") | (truth[, 1]=="G2" & truth[, 2]=="G3"), 3]<-1

2020-09-06 Thread Michael Dewey
I am afraid this is completely unreadable because you posted in HTML ad this is a plain text list. Best to resend it having set your mailer to send plain text as HTML gets mangled here. Michael On 06/09/2020 10:58, Hesham A. AL-bukhaiti via R-help wrote: helloout<-read.csv("outbr.cs

[R] R 4.0.2 not running on macOS 10.15.6

2020-09-04 Thread Michael Feher
Greetings, I am a brand-new user to R and want to install and run this on my iMac running macOS 10.15.6. I successfully downloaded the correct package, installed it with no problems (I was not given any options for Tcl/Tk or Texinfo), and started it up as any other normal app. Some

Re: [R] hist from a list

2020-07-31 Thread Michael Dewey
ecause you are posting in HTML and that makes the post unreadable as this is a plain text list. Michael Or barplot(bwchist) Error in barplot.default(bwchist) : 'height' must be a vector or a matrix library(PerformanceAnalytics) library(dplyr) library(tibble) library(lubridate) library

Re: [R] Fortune nomination .... Re: Looping through a dataframe

2020-07-25 Thread Michael Dewey
Dear Chris Just send it to the maintainer Achim Zeileis to whom I have cc'ed this in case he is not reading the list at the moment. Michael On 25/07/2020 06:21, Chris Evans wrote: I really don't want to put too many Emails to the list but I had the same reaction to that lovely line ... so

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

2020-07-23 Thread Michael Dewey
although I am not a lawyer, but it is a kindness to the authors. Michael On 22/07/2020 06:26, Dr. Mehdi Dadkhah wrote: Hi, I hope you are doing well! I have a question. I and my colleagues wrote a paper by using R language and its packages. We also used some tutorials. We have words count

Re: [R] Reading help functions

2020-07-23 Thread Michael Dewey
name. Of course ultimately you may prefer to read the documents in English because the program help and vignettes are usually in English and familiarity with the English terminology may help. Michael On 22/07/2020 18:20, Pedro páramo wrote: Hi all, I am trying all time to use ?? help

Re: [R] output from R to simple html

2020-07-08 Thread Michael Hannon
I can't tell what kind of structure you want to output, but one simple thing that I've done along these lines is to use knitr::kable to output a dataframe in either HTML or LaTeX format (for direct inclusion on a web page or to convert to PDF for other uses). -- Mike On Wed, Jul 8, 2020 at 12:02

Re: [R] how to calculate odd ratios with R?

2020-07-06 Thread Michael Dewey
Dear Luigi You could try the epitools package which gives a large number of ways of doing this. I would have thought that using Wald intervals for the log odds ration was not optimal with small frequencies. Michael On 06/07/2020 14:01, Luigi Marongiu wrote: Hello, Is it possible

Re: [R] how to summarize results from studies?

2020-07-01 Thread Michael Dewey
Dear Frederik There is also a mailing list dedicated to meta-analysis in R https://stat.ethz.ch/mailman/listinfo/r-sig-meta-analysis// Michael On 01/07/2020 16:40, Marc Schwartz via R-help wrote: Hi, It sounds like you will want to engage in a meta-analysis. There is a CRAN task view here

Re: [R] Using OpenBLAS on Ubuntu

2020-06-28 Thread Michael Hannon
Or maybe R-devel. On Sun, Jun 28, 2020 at 8:51 PM Jeff Newmiller wrote: > > Wouldn't this question make more sense in r-sig-debian? > > On June 28, 2020 7:54:49 PM PDT, Erin Hodgess wrote: > >Hello! > > > >Hope everyone is doing well. > > > >I'm not sure if this is the correct place to post,

Re: [R] Error message in meta-analysis package Metafor-weights =""

2020-06-23 Thread Michael Dewey
in this case as the message told you. Michael On 23/06/2020 16:29, K Amoatwi wrote: Dear Wolfgang, Yes! The "metafor::forest(result.md)" works Thank you very much. Any reason why "forest(result.md)" was not working? Kobby On Tue, Jun 23, 2020 at 11:18 AM Viech

Re: [R] comparing variances/distributions

2020-06-18 Thread Michael Dewey
Dear Ana This really depends on your scientific question. The two techniques you have shown do different things and there must be many more which could be applied. Michael On 17/06/2020 20:57, Ana Marija wrote: Hello, I have p values from two distributions, Pold and Pnew head(m) CHR

Re: [R] Convergence in Monte Carlo Simulation

2020-06-14 Thread Michael Dewey
Dear Edward Every time you call your function powercrosssw() it resets the seed so you must be calling it multiple times in some way. Michael On 14/06/2020 13:57, Phat Chau wrote: Thank you Michael. I will clarify some more. The function in the first part of the code that I posted

Re: [R] Convergence in Monte Carlo Simulation

2020-06-14 Thread Michael Dewey
as the failure to converge must be meaningful about the scientific question whatever that is. At the moment your count appears to be in the correct place to count successes. Michael On 14/06/2020 02:50, Phat Chau wrote: Hello, I put together the following code and am curious about its correctness. My

Re: [R] Error in ordinal mixed effects

2020-06-09 Thread Michael Dewey
where you define na unless it is really NA and you did not copy it correctly. Michael On 09/06/2020 12:33, SUSANA ALBERICH MESA wrote: Hi, I'm trying to run an ordinal mixed effects model with Mixor command. I have 65 cases and repeated visits in 0, 6, 9, 12 and 18 months. My code

Re: [R] a question of etiquette

2020-06-01 Thread Michael Dewey
://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Michael http://www.dewey.myzen.co.uk/home.html __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman

Re: [R] struggling with apply

2020-05-27 Thread Michael Ashton
pply/seq_along. sapply(seq_along(UB), function(i) pmin(UB[i], somematrix[,i])) # [,1] [,2] [,3] [,4] #[1,] 1.0 5.5 8.5 7.0 #[2,] 2.5 3.0 8.0 10.5 #[3,] 2.5 5.5 5.0 10.5 Hope this helps, Rui Barradas Às 18:46 de 27/05/20, Michael Ashton escreveu: Hi - I have a matrix of n rows and

Re: [R] struggling with apply

2020-05-27 Thread Michael Ashton
Always amazes me how many ways there are to do these things, none of which I was able to find myself. Thanks! I think the key here was ‘pmin,’ which I didn’t know before. Michael Ashton, CFA Managing Principal Enduring Investments LLC W: 973.457.4602 C: 551.655.8006 Schedule a Call: https

Re: [R] struggling with apply

2020-05-27 Thread Michael Ashton
That's it! Thanks. Learn something new every day! Michael Ashton, CFA Managing Principal Enduring Investments LLC W: 973.457.4602 C: 551.655.8006 Schedule a Call: https://calendly.com/m-ashton -Original Message- From: Rui Barradas [mailto:ruipbarra...@sapo.pt] Sent: Wednesday, May 27

[R] struggling with apply

2020-05-27 Thread Michael Ashton
[,2] [,3] [,4] [1,] 1.0 2.5 2.5 2.5 [2,] 2.5 2.5 2.5 2.5 [3,] 2.5 2.5 2.5 2.5 I'm sure there's a simple and elegant solution but I don't know what it is! Thanks in advance, Mike Michael Ashton, CFA Managing Principal Enduring Investments LLC W: 973.457.4602 C: 551.655.8006 Schedu

Re: [R] text annotation on Manhattn plot in qqman

2020-05-20 Thread Michael Dewey
Dear Ana That looks like something is hard coded in manhattan(). The simplest thing might be to contact the maintainer of the package and ask. You can make a copy of manhattan or textxy and modify them but I think the maintainer is the simplest course of action. Michael On 20/05/2020 16:10

Re: [R] text annotation on Manhattn plot in qqman

2020-05-20 Thread Michael Dewey
ing parameters. You may also need to play with the sep =, and collapse = parameters to paste() to get the precise layout you want. Michael On 19/05/2020 17:21, Ana Marija wrote: Hi Michael, can you please send me code how that would be done? Thanks Ana On Tue, May 19, 2020 at 11:18 AM Michael Dewey

Re: [R] text annotation on Manhattn plot in qqman

2020-05-19 Thread Michael Dewey
Dear Ana Perhaps paste together SNP and GENE using paste() and then supply that as the snp parameter. Michael On 19/05/2020 17:12, Ana Marija wrote: Hello, I am making manhattan plot with: library(qqman) manhattan(a, chr="CHR", bp="BP", snp="SNP", p="P&q

[R] the volcano orientation

2020-05-09 Thread Michael Sumner
])'. If you are interested in a roughly georeferenced version I have code here: https://gist.github.com/mdsumner/20fe3ffa04421bf8e0517c19085e5fd8 (Also see fortunes::fortune("conventions") ) Best, Mike -- Michael Sumner Software and Database Engineer Australian Antarctic Divis

Re: [R] NA command in a 'for' loop

2020-04-20 Thread Michael Dewey
Just a thought Helen but is x being treated as a real and what you think are zero and are printed as zero are in fact some very small number? If so you need to alter your test appropriately. Michael On 20/04/2020 17:25, Helen Sawaya wrote: Thank you for your reply. I tried d[] <- lappl

Re: [R] how to get all strings in a data frame that start with a particular string

2020-04-10 Thread Michael Dewey
Dear Ana Would it not be possible to use grep instead of grepl and get the values using the value = TRUE parameter? Michael On 10/04/2020 17:15, Ana Marija wrote: Hello, Hello, I have a data frame (tot) with about 2000 columns. How can I extract from it all strings that start with E14? I

Re: [R] Same results but different functions ?

2020-03-23 Thread Michael Dewey
The documentation suggests that the rlm method for a formula does not have psi as a parameter. Perhaps try using the method for a matrix x and a vector y. Michael On 23/03/2020 12:39, varin sacha via R-help wrote: Dear R-experts, The rlm command in the MASS package command implements

Re: [R] how do I add text lables on QQ plot

2020-03-12 Thread Michael Dewey
Dear Ana You can specify the first three parameters to text() as vectors so it is all done in one call. That may or may not answer your question. Michael On 12/03/2020 14:08, Ana Marija wrote: HI David, thank you for getting back to me. Is there is a way for qq() to pick up text label

[R] Announcement: Summer Statistics Institute at UT Austin

2020-03-10 Thread Mahometa, Michael J
Academic Center (FAC) and Robert A. Welch Hall (WEL). For more information and to register: https://stat.utexas.edu/training/ssi - MICHAEL J. MAHOMETA Director of Statistical Consulting and Professional Education Department of Statistics and Data Sciences | The University of Texas at Austin

Re: [R] R CMD check report error not finding function

2020-03-05 Thread Michael Dewey
Dear Ruben I do not think your export pattern matches .foo so that may be the problem. Michael On 05/03/2020 09:10, Ruben wrote: Dear R-help listers, I am creating a package for a friend using his scripts and I run into a problem when doing the check. Inside a macro created with gtools

Re: [R] testing my package : unstated dependency to self in package tests

2020-02-16 Thread Michael Dewey
When something similar happened to me I found it went away when I added Suggests: to the DESCRIPTION file. Whether this will work for you I have no idea. Michael On 16/02/2020 11:03, Servet Ahmet Çizmeli wrote: I am updating my CRAN package geoSpectral. I get the following Warning during R

Re: [R] Information about pairwise Wilcoxon Sum Rank Tests

2020-02-06 Thread Michael Dewey
into wilcox.test which pairwise.wilcox.test uses. If that does not help come back and tell us more about how far you have got so people know what else you need. Michael On 06/02/2020 10:04, Gabriela Hoff wrote: Dear Sir or Madam My name is Gabriela Hoff and I and an R user. I am facing problems

Re: [R] R package for meta-analysis from z scores

2020-01-20 Thread Michael Dewey
Dear James Your question really boil down to whether you can estimate tau^2, the between study variance of the effect sizes, if you only have p-values. As far as I can see the answer has to be no. Michael On 16/01/2020 13:10, james poweraid wrote: Hello, I have a set of Z scores from an N

Re: [R] "In sqrt(VS) : NaNs produced"

2020-01-20 Thread Michael Dewey
Your script and data were stripped so we are none the wiser I am afraid. You need to embed the script in your post and give a minimal data-set which exhibits the problem using dput() and embed that in the post too. Michael On 19/01/2020 08:25, Atul Saini wrote: Hello R, I am

Re: [R] all the MAE metric values are missing (Error message)

2019-12-23 Thread Michael Dewey
What Jim is alluding to is that sometimes in the process of reading in data a small typo can mean that what was intended to be a numeric variable is read in as a factor. So he was suggesting that you double check that this has not happened to you. Michael On 23/12/2019 11:45, Neha gupta

Re: [R] Orthogonal polynomials used by R

2019-11-28 Thread Michael Dewey
Dear Ashim As John said your two examples give the same model to within rounding error so it is not clear what you see the problem as being. You can always remove some of the correlation by subtracting out a large constant from x before you use poly() on it. Michael On 28/11/2019 16:02

  1   2   3   4   5   6   7   8   9   10   >