Re: [R] Timezone question

2023-08-17 Thread Marc Schwartz via R-help
would suggest reading the relevant help files for ?strptime and the above two functions. Regards, Marc Schwartz -Original Message- From: R-help mailto:r-help-boun...@r-project.org>> on behalf of Dennis Fisher mailto:fis...@plessthan.com>> Date: Thursday, August 17, 202

Re: [R] R Tools Security Posture

2023-05-17 Thread Marc Schwartz via R-help
Hi, An additional resource that was not listed below is the R Software Development Life Cycle (SDLC) document that is available here:   https://www.r-project.org/certification.html which addresses a subset of the issues raised. Regards, Marc Schwartz On May 17, 2023 at 4:52:27 AM, Ivan

Re: [R] PROP_TEST function from INFER package

2023-05-15 Thread Marc Schwartz via R-help
page for the prop_test() function in the infer package, where 'x' is supposed to be a data frame, not a vector, and there is no 'n' argument. Regards, Marc Schwartz On May 15, 2023 at 7:26:16 AM, alfredo.rocc...@fastwebnet.it (alfredo.rocc...@fastwebnet.it (mailto:alfredo.rocc

Re: [R] converting to date object...

2023-04-12 Thread Marc Schwartz via R-help
as dates and perform various operations on them. You can then use format() to alter the output format as you may need for other purposes, in which case, the formatted output is coerced back to a character vector, even though the internal storage is still a Date class object. Regards, Marc Schw

Re: [R] Simple Stacking of Two Columns

2023-04-03 Thread Marc Schwartz via R-help
op = FALSE]   values 1    Tom 2   Dick 3  Larry 4  Curly which returns a data frame with a single column named 'values'. Regards, Marc Schwartz On April 3, 2023 at 11:08:59 AM, Sparks, John (jspa...@uic.edu (mailto:jspa...@uic.edu)) wrote: > Hi R-Helpers, > > Sorry to bother you, but

Re: [ESS] Can't find documentation for function

2022-09-18 Thread Marc Schwartz via ESS-help
for the file there. Without the package prefix, it only looks in the current search path, and thus does not find the package there. Regards, Marc Schwartz On September 18, 2022 at 4:54:05 AM, Haris Fawad via ESS-help (ess-help@r-project.org (mailto:ess-help@r-project.org)) wrote: > Hi, &g

Re: [ESS] [External] Emacs 28.1 Released

2022-04-08 Thread Marc Schwartz via ESS-help
Hi, Vincent, you might want to connect with David Caldwell on the issues that you are facing. I noted that on this page:   https://emacsformacosx.com/about he notes that there are changes to the app launcher that may be relevant to what you are experiencing. Whether there is an intentional

Re: [R] (Off-Topic) Time for a companion mailing list for R packages?

2022-01-13 Thread Marc Schwartz via R-help
there is a bug or a reasonable suspicion of one in a third party package, the package maintainer should be the primary point of contact. Regards, Marc Schwartz Eric Berger wrote on 1/13/22 12:25 PM: Re: constructive criticism to make this list more useful to more people: Sugges

Re: [R] compiling from source on RedHat 8

2021-12-31 Thread Marc Schwartz via R-help
/Fedora R maintainers are active on that list. They can give you guidance on compiling R from source, if you really need to do that, or to suggest that you use the existing RPMs for R that they maintain and make available. Regards, Marc Schwartz kap4lin wrote on 12/31/21 12:38 PM: Hi, Before

Re: [R] Current R color chart

2021-11-12 Thread Marc Schwartz via R-help
invalid color name 'FF3030' versus: plot(1:10, col = "#FF3030") the latter which includes the '#' and works to generate the plot. Otherwise, as Avi apparently replied separately, use colors() or colours() to see the actual color text names and ?colors for more help. Regards, Marc Schwa

Re: [R] Which version of R install for mac

2021-11-05 Thread Marc Schwartz via R-help
XQuartz, which is available here: https://www.xquartz.org Regards, Marc Schwartz Mark Don Young wrote on 11/5/21 10:59 AM: I am having trouble finding a version of R install compatible with my mac. I have an older Macbook pro 2016 with the latest version of Big Slur 11.6. Intel core i5 2.9 Ghz

Re: [R] generate random numeric

2021-10-29 Thread Marc Schwartz via R-help
nt function call can enable that. Also, review the resources at https://www.random.org for additional references on the differences between PRNGs and other implementations, especially if you might need something closer to a "true" RNG for more ri

Re: [R] I'd like to request that my R CRAN package is not tested on Solaris OS

2021-10-22 Thread Marc Schwartz via R-help
N. I would suggest that you contact them using the e-mail address above, without the deadline, and afford them the opportunity to reply to you with what may be reasonable next steps given the issues you face. Regards, Marc Schwartz Eric Berger wrote on 10/22/21 9:01 AM: Hi Lampros, I can

Re: [R] Sample size Determination to Compare Three Independent Proportions

2021-08-10 Thread Marc Schwartz via R-help
25, p2=.25, p3=.35 Again thank you very much in advance. abou __ *AbouEl-Makarim Aboueissa, PhD * * * *Professor, Statistics and Data Science* *Graduate Coordinator* *Department of Mathematics and Statistics * *University of Southern Maine* On Mon, Aug 9, 2021 at 10:53 AM Marc

Re: [R] Sample size Determination to Compare Three Independent Proportions

2021-08-09 Thread Marc Schwartz via R-help
vel, given that your a priori assumptions are valid. Regards, Marc Schwartz AbouEl-Makarim Aboueissa wrote on 8/9/21 9:41 AM: Dear All: good morning *Re:* Sample Size Determination to Compare Three Independent Proportions *Situation:* Three Binary variables (Yes, No) Three independent populatio

Re: [R] Data is not properly written in csv file

2021-06-21 Thread Marc Schwartz via R-help
?write.table and take note of the default arguments that are used for write.csv(), as noted in the CSV Files section, and in the Examples. Regards, Marc Schwartz Sri Priya wrote on 6/20/21 11:03 AM: Dear R Users, I am working on extracting tables from PDF and I am writing that in a csv file. When I

Re: [R] Crashes while pasting a graphic to clipboard on Windows

2021-06-21 Thread Marc Schwartz via R-help
such as this would be. Regards, Marc Schwartz Gabriel Toro wrote on 6/21/21 4:19 PM: I am using version 3.6.3 on Windows. I recently noticed that R crashes when pasting graphics to the clipboard (both as metafiles and as images). I saw some old (~ 2 years old) references to the problem on Google

Re: [R] R grep question

2021-05-27 Thread Marc Schwartz via R-help
E or FALSE, as Rui noted, thus: CRC$MMR.gene <- ifelse(grepl("MLH1|MSH2",CRC$gene.all), "Yes", "No") should work. Regards, Marc Schwartz Kai Yang via R-help wrote on 5/27/21 11:23 AM: Hi Rui,thank you for your suggestion. but when I try the solution, I got messa

Re: [R] CentOS 8: installing R

2021-05-24 Thread Marc Schwartz via R-help
. Regards, Marc Schwartz Roger Bos wrote on 5/24/21 3:41 PM: Dear all, I seem to be having an impossible time install R on my centos 8 virtual machine (I know centos 8 is no longer maintained, but it is a work server so I have no choice in the matter.). I installed EPEL and enabled PowerTools

[R] [R-pkgs] New CRAN Package: BI - Generate James (1996) and Bang (2004) Blinding Indexes

2021-05-17 Thread Marc Schwartz via R-packages
regards, Marc Schwartz ___ R-packages mailing list r-packa...@r-project.org https://stat.ethz.ch/mailman/listinfo/r-packages __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https

Re: [R] Error loading "XLConnect" library

2021-04-14 Thread Marc Schwartz via R-help
ions first. Regards, Marc Schwartz Bernard McGarvey wrote on 4/14/21 1:42 PM: I installed the "XLConnect" package which appears to be successful and then tried to load the "XLConnect" library and got an error as shown below. Any ideas as to where to look for the source of

[ESS] New Emacs 27.2 Released for macOS. Now Includes Apple Silicon support.

2021-03-30 Thread Marc Schwartz via ESS-help
nsupported" bar forward much quickly than I wanted to. Now I have tighter control over the dependency build process at the expense of having to maintain a bunch of custom code to download, configure and make them." Regards, Marc Schwartz _

Re: [ESS] ESS M-x R failing in a Windows installation

2021-03-10 Thread Marc Schwartz via ESS-help
is not guaranteed. There may be other relevant FAQ entries as well. Regards, Marc Schwartz Sparapani, Rodney via ESS-help wrote on 3/10/21 1:28 PM: Hi Gang: Just to follow-up on my own post. I see that the Windows Registry was discussed here in June of 2012 and March of 2013 (not 2004 which was my

Re: [ESS] ESS M-x R failing in a Windows installation

2021-03-10 Thread Marc Schwartz via ESS-help
__ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help

Re: [R] Help with changing date format in R

2021-01-20 Thread Marc Schwartz via R-help
d$date <- ifelse(d$observer %in% c(vector, of, observers), as.Date(d$date, format = "%d%m%Y"), as.Date(d$date, format = "%m%d%Y")) Also, you might not want to overwrite the original values, and create a new column, in the case of

Re: [R] Readxl on Mac

2020-12-01 Thread Marc Schwartz via R-help
not in use by Excel or another application, precluding an exclusive lock on the file. If so, close out the other application. Another possibility is that the Excel file is password protected, and thus cannot be read directly, without saving it in an unprotected fashion. Regards, Marc Schw

[R] [R-pkgs] WriteXLS Version 6.1.0 - Bug Fix Release

2020-11-25 Thread Marc Schwartz via R-packages
written to the Excel worksheets as left justified text values, as opposed to right justified numeric values. Please download and install the updated version at your convenience. Thanks and regards, Marc Schwartz ___ R-packages mailing list r-packa...@r

Re: [R] How to pass a character string with a hyphen

2020-11-17 Thread Marc Schwartz via R-help
is that the API that you are passing the character vector to may be parsing/evaluating the '-' and only seeing the first part of the passed value. So, for example: > shQuote("-") [1] "'-'" See if that works. Regards, Marc Schwartz > On Nov 17, 2020,

Re: [R] Language environment

2020-11-17 Thread Marc Schwartz via R-help
m/ as they are a separate product from R itself. It sounds like there may be somewhat different session startup processes for RStudio, and they would be the best resource to assist you. Regards, Marc Schwartz __ R-help@r-project.org mailing list -- T

Re: [ESS] how to change default emacs behavior, upon running R code, from 2 side-by-by side frames to top-and-bottom frames?

2020-11-10 Thread Marc Schwartz via ESS-help
vided here on the list some time ago, and perhaps there is a more recent incantation, if things have changed since then. Regards, Marc Schwartz > On Nov 10, 2020, at 8:37 AM, Tyler Smith via ESS-help > wrote: > > Christopher W. Ryan via ESS-help writes: > >> When I execute

Re: [R] Data Table not rendering properly using R shiny

2020-11-07 Thread Marc Schwartz via R-help
Hi, Please drop R-Devel as a cc: from this thread for further replies. This topic is definitely not relevant there and cross-posting is not needed, but does require manual moderation. Thanks, Marc Schwartz > On Nov 7, 2020, at 10:23 AM, Bert Gunter wrote: > > Better to post on

Re: [R] backslash in xtable (generate latex code from R)

2020-11-06 Thread Marc Schwartz via R-help
on = identity, sanitize.text.function = identity) % latex table generated in R 4.0.3 by xtable 1.8-4 package % Fri Nov 6 07:54:51 2020 \begin{table}[ht] \centering \begin{tabular}{l} \hline $\beta_0$ \\ \hline aa \\ bb \\ cc$\alpha_1$ \\ \hline \end{tabular} \end{table} Regards,

Re: [R] colMeans function

2020-11-04 Thread Marc Schwartz via R-help
[2]) str(flights$month) dim(flights$month) you would see the difference. Regards, Marc Schwartz > On Nov 4, 2020, at 8:26 AM, Engin Yılmaz wrote: > > Dear > I use *flights* database library(nycflights13) > > The following code is working as > > colMeans(fl

Re: [R] FREDR and R 3.6

2020-10-29 Thread Marc Schwartz via R-help
> On Oct 29, 2020, at 6:35 PM, H wrote: > > On 10/29/2020 01:49 PM, Marc Schwartz wrote: >>> On Oct 29, 2020, at 1:29 PM, H wrote: >>> >>> I tried to install the fredr package yesterday to access the data series >>> hosted by the St. Louis Fed bu

Re: [R] FREDR and R 3.6

2020-10-29 Thread Marc Schwartz via R-help
.@gmail.com) to see what the current status of the package is, and if they plan to resolve the issues. If not, consider alternative approaches. You should also consider updating your R installation, as 3.6.0 is well over a year old at this point. 4.0.3 is the current stable release.

Re: [R] temporary clipping

2020-10-26 Thread Marc Schwartz via R-help
on where 'usr' is the value of: usr <- par("usr") called after the very first plot is generated. The indication is that by using the final line of code in the example, the clipping region is reset to the plot region, probably also based upon any change to par("xpd") th

[R] [R-pkgs] WriteXLS Version 6.0.0 Released

2020-10-23 Thread Marc Schwartz via R-packages
and/or trailing zeros. This option enhances prior improvements to preserving leading and/or trailing zeros on a worksheet cell specific basis. 3. Updated Perl libraries are included as apropos. Regards, Marc Schwartz ___ R-packages mailing list r-packa

Re: [R] write.csv covert Åland to land

2020-10-20 Thread Marc Schwartz via R-help
to output. Essentially, mimic the default formatting of write.csv(), on a line by line basis, and then output the resulting object to a text file, with a single call to writeLines(). Regards, Marc Schwartz > On Oct 20, 2020, at 10:28 AM, Duncan Murdoch wrote: > > You don't say

Re: [R] Installing Perl For Use in R

2020-10-06 Thread Marc Schwartz via R-help
though I have a Github account. If you are on Windows, an alternative Perl distribution is Strawberry Perl: http://strawberryperl.com Regards, Marc Schwartz > On Oct 6, 2020, at 11:21 AM, Philip wrote: > > I’m getting nowhere with this. From the website below

Re: [R] 2 KM curves on the same plot

2020-09-29 Thread Marc Schwartz via R-help
(1, at = seq(150, 300, 50), line = -1) axis(4, las = 1) ## Draw the vertical line at 150 weeks axis(2, at = seq(0, 1, 0.2), labels = FALSE, lty = "dashed") Regards, Marc Schwartz > On Sep 28, 2020, at 8:33 PM, array chip via R-help > wrote: > > Hello, > > Can anyo

[R] R Implementation of the James and/or Bang RCT Blinding Assessment Indices

2020-09-24 Thread Marc Schwartz via R-help
and came up empty handed. Thanks in advance for any leads! Regards, Marc Schwartz __ 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] CRAN R For Windows 3.6.3

2020-09-19 Thread Marc Schwartz via R-help
around April 2021. > > Duncan Murdoch Hi, Just to add on to Duncan's comments, you may want to read the Software Development Life Cycle (SDLC) document here: https://www.r-project.org/certification.html That will give you insights into R's development, release and maintenance timelines. Re

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

2020-09-14 Thread Marc Schwartz via R-help
. Regards, Marc Schwartz > On Sep 14, 2020, at 3:14 PM, Bert Gunter wrote: > > 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 > &g

Re: [R] Survival Object - is 12month survival = 365days

2020-09-04 Thread Marc Schwartz via R-help
to 36 months, since the intervals in the example colon dataset go to about 9 years or so, and does not label the x axis. Bearing in mind that the underlying x axis unit is in days, the axis() function then places labels at the irregular intervals. You could then annotate the plot fu

Re: [R] R 4.0.2 not running on macOS 10.15.6

2020-09-04 Thread Marc Schwartz via R-help
community or anything like that? Or are all posts moderated? > > Now that the weekend is upon me, I'll have some time to come up to speed on > all this. Thanks for your patience. > > Thanks again! > Mike > > On Fri, Sep 4, 2020 at 8:05 AM Marc Schwartz wrote:

Re: [R] R 4.0.2 not running on macOS 10.15.6

2020-09-04 Thread Marc Schwartz via R-help
ere: https://stat.ethz.ch/mailman/listinfo/r-sig-mac which is where macOS specific R issues should be posted. You will need to re-install XQuartz any time you upgrade/install a new version of R. Regards, Marc Schwartz __ R-help@r-project.org

Re: [R] Connection to Oracle DB failing from R

2020-08-31 Thread Marc Schwartz via R-help
related issues, I noted some other posts on multiple OSs, and some issues raised on Simon's Github repo for the package. Also, I am torn between suggesting that this be re-posted to r-sig-db, which is specific to R and database interfaces, and r-sig-mac, which is specific to R on macOS. However,

Re: [R] Reproducibility Between Local and Remote Computer with R

2020-08-08 Thread Marc Schwartz via R-help
ages), that can help to reduce the number of variables at play here. Regards, Marc Schwartz > On Aug 7, 2020, at 4:24 PM, Kevin Egan wrote: > > I posted this question: > > I am currently using R , RStudio , and a remote computer (using an R script) > to run the same c

Re: [R] levels

2020-07-15 Thread Marc Schwartz via R-help
() and read.table()." Using 4.0.2: data <- data.frame(name, values, stringsAsFactors = TRUE) > levels(data$name) [1] "a" "b" "c" If you see behavioral changes from one version of R to another, especially major version increments, check the news() fi

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

2020-07-01 Thread Marc Schwartz via R-help
> > 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: >> https://cran.r-project.org/web/views/MetaAnalysis.html >> that

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

2020-07-01 Thread Marc Schwartz via R-help
and conceptual assistance would be beyond the scope of this list. You should consider consulting a local statistician for assistance with that, if needed. Regards, Marc Schwartz > On Jul 1, 2020, at 11:27 AM, Frederik Feys wrote: > > Hello everyone > > I have some studies wi

Re: [R] chaining closure arguments on-the-fly

2020-06-20 Thread Marc Schwartz via R-help
Hi Ben, How about something like this: f <- function(x, y = NULL) { if (is.null(y)) y <- x x + y } > f(3, 4) [1] 7 > f(3) [1] 6 Regards, Marc Schwartz > On Jun 20, 2020, at 7:15 AM, Benjamin Tyner wrote: > > Greetings, > > Occasionally, I desire

Re: [R] R Software Risk Analysis

2020-06-19 Thread Marc Schwartz via R-help
e required functionality. Thus, in the absence of more detail from Kristin as to what is specifically required, it is hard to know how to respond, within the context here, of a community based support list, and within the R community at large, where we all volunteer our time. Regards, Mar

Re: [R] How to install R 4.0 on chromebook?

2020-05-22 Thread Marc Schwartz via R-help
/listinfo/r-sig-debian You should subscribe to that list and post your queries there to avail yourself of a focused audience, which may include folks that have installed a Debian based Linux distribution on a Chromebook. Regards, Marc Schwartz > On May 22, 2020, at 9:49 AM, Luigi Marongiu wr

Re: [ESS] ess-eval-region Does Not Echo Highlighted Code Into the R Buffer?

2020-05-21 Thread Marc Schwartz via ESS-help
ore appropriate when showing ESS to others, e.g. when > teaching etc. > > Very importantly in practice: Keep in mind that prefixing i.e. C-u > <...> switches to visible (momentarily) which is also handy when > demo-ing, teaching, ... > > Martin > > On We

Re: [ESS] ess-eval-region Does Not Echo Highlighted Code Into the R Buffer?

2020-05-20 Thread Marc Schwartz via ESS-help
to be a compromise of sorts, given the issues raised. Thanks, Marc > On May 19, 2020, at 6:05 PM, Alex Branham wrote: > > The default value of ess-eval-visibly recently changed. You probably want to > customize it to t or nowait. > > Alex > > On Tue, May 19, 2020, 5:08 PM Ma

Re: [ESS] ess-eval-region Does Not Echo Highlighted Code Into the R Buffer?

2020-05-19 Thread Marc Schwartz via ESS-help
put in the R buffer, as examples: >>>> or >>>>+>> after the command is run on a region of R code. Regards, Marc > On May 19, 2020, at 4:51 PM, Marc Schwartz wrote: > > Hi All, > > I just updated my ESS/Polymode installation today via melpa,

[ESS] ess-eval-region Does Not Echo Highlighted Code Into the R Buffer?

2020-05-19 Thread Marc Schwartz via ESS-help
es execute, confirmed when I check for the resultant object. Am I missing new behavior, or perhaps a setting that changed someplace, or that I introduced a conflict with the updates today? Thanks, Marc Schwartz __ ESS-help@r-project.org mailing

Re: [R] Date from text

2020-05-15 Thread Marc Schwartz via R-help
b("-", "-15-", x), format = "%m-%d-%Y") [1] "1993-11-15" Regards, Marc Schwartz > On May 15, 2020, at 5:38 AM, Poizot Emmanuel > wrote: > > Dear all, > > I've a data frame with a column "Date": > > [1] 11-1993 11-199

Re: [R] Function Hints in Mac Dark Mode

2020-05-08 Thread Marc Schwartz via R-help
aking them almost impossible to see. For Andrew, if this is correct, and you are not referring to RStudio per Jeff, you should post this to r-sig-mac: https://stat.ethz.ch/mailman/listinfo/r-sig-mac Otherwise, if it is RStudio, they have their own support here: https://suppo

Re: [R] A behaviour pattern that I find mysterious.

2020-02-26 Thread Marc Schwartz via R-help
being character, complex, numeric, integer, logical and raw." Thus: > c(0, x) [1] "0" "a" "b" "*" "d" "e" > sort(c(0, x)) [1] "*" "0" "a" "b" "d" "e" Thus, "

Re: [R] citing old(er) versions of packages

2020-01-16 Thread Marc Schwartz via R-help
ver the package is located, if not on CRAN. An alternative, if the package is stored in an online VC system (e.g. Github), is that you may be able to read the relevant file from that system for the version of the file that is tagged appropriately. Regards, Marc Schwartz

Re: [R] Converting Decimal numbers into Binary

2019-12-27 Thread Marc Schwartz via R-help
; Paul You might look at the intToBin() function in Henrik's R.utils package on CRAN: https://cran.r-project.org/web/packages/R.utils/index.html Regards, Marc Schwartz __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.e

Re: [R] Unable to load .rda file

2019-10-15 Thread Marc Schwartz via R-help
IALIZE_VERSION to 2. For maximal back-compatibility, files ‘vignette.rds’ and ‘partial.rdb’ generated by R CMD build are in serialization format version 2, and resave by default produces files in serialization format version 2 (unless the original is already in format version 3). Regards, Marc

Re: [R] Code modification for post-hoc power

2019-08-26 Thread Marc Schwartz via R-help
led (voluntarily or involuntarily), you may want to review the vignette for the longpower package which may have some insights, and/or contact the package maintainer for additional guidance on how to structure the code. See the vignette here: https://cran.r-project.org/web/packages/longpo

Re: [R] Connect to Oracle database via ODBC

2019-08-05 Thread Marc Schwartz via R-help
ran.r-project.org/web/packages/RODBC/vignettes/RODBC.pdf There is also the r-sig-db e-mail list, which is focused in this domain, and where follow up questions should be posted: https://stat.ethz.ch/mailman/listinfo/r-sig-db Regards, Marc Schwartz

Re: [R] Regarding R licensing usage guidance

2019-07-22 Thread Marc Schwartz via R-help
rights, to get appropriate legal opinions on what it is you plan to build, how it will interact with R and the packages you list below, and what all of that means for your product. Regards, Marc Schwartz > On Jul 22, 2019, at 1:28 PM, Patrick (Malone Quantitative) > wrote: >

Re: [R] Conditional Logistic Regression with Multilevel Data [using clogistic() in Epi and lmer() in lme4???]

2019-07-03 Thread Marc Schwartz via R-help
olfgang Viechtbauer > Sent: Wednesday, July 3, 2019 9:15:50 AM > To: Marc Schwartz > Cc: Heather H Kettrey; R-help > Subject: Re: [R] Conditional Logistic Regression with Multilevel Data [using > clogistic() in Epi and lmer() in lme4???] > > Ouch, that was a brain

Re: [R] Conditional Logistic Regression with Multilevel Data [using clogistic() in Epi and lmer() in lme4???]

2019-07-03 Thread Marc Schwartz via R-help
to below, I don't see an example of that type of nesting structure. The mixed effects models would generally support a nested random effects specification, if that makes sense here. Regards, Marc Schwartz > On Jul 3, 2019, at 4:41 AM, Viechtbauer, Wolfgang (SP) > wrote: > >

Re: [R] Conditional Logistic Regression with Multilevel Data [using clogistic() in Epi and lmer() in lme4???]

2019-07-02 Thread Marc Schwartz via R-help
ight be worthwhile posting to r-sig-mixed-models: https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models where experts in the domain of multi-level models reside. There may be an approach using glmer() or an alternative package, where you can define the paired observations within sites in manne

Re: [R] How to select max data according to week?

2019-06-19 Thread Marc Schwartz via R-help
0.068 22000-01-15 0.042 > aggregate(O3_Conc ~ TimeStartWks, data = DF, max) TimeStartWks O3_Conc 1 1999-12-26 0.068 2 2000-01-09 0.063 Regards, Marc Schwartz > On Jun 19, 2019, at 10:45 AM, Eric Berger wrote: > > I just realized that my method as written only work

Re: [R] R-help mailing list archives

2019-06-11 Thread Marc Schwartz via R-help
en-my/help/4091364/windows-10-fix-blurry-apps It is not clear to me if either is helpful here in the end as I do not have a 4K display, but at least shows alternative results using rseek.org. Note that rseek.org, includes other sources beyond the official R e-mail list archives, which is why the MS note

Re: [R] Pasting R code lines into labels

2019-06-07 Thread Marc Schwartz via R-help
Hi Martin, See inline below... > On Jun 7, 2019, at 9:25 AM, Martin Maechler > wrote: > >>>>>> Marc Schwartz via R-help >>>>>>on Fri, 7 Jun 2019 09:07:21 -0400 writes: > >> Hi, Ok, some additional tweaks. > >> Relative t

Re: [R] Pasting R code lines into labels

2019-06-07 Thread Marc Schwartz via R-help
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, Jun 6, 2019 at 12:19 PM Marc Schwartz wrote: >>> Hi, >>> &

Re: [R] Pasting R code lines into labels

2019-06-06 Thread Marc Schwartz via R-help
nd they don't necessarily vary in a >> regular way (like say all being powers of x where it'd be simple to just >> have a vector for the powers you want) >> So I might have >> y<-x^2 >> y<-cos(x) >> y<-exp(x+1) >> What I am after is a way of running

Re: [R] Pasting R code lines into labels

2019-06-06 Thread Marc Schwartz via R-help
; Thanks Nick Wray Hi, See ?plotmath An example: x <- 1:10 y <- x^2 plot(x, y, main = expression(paste("Plot of ", y %<-% x^2))) There are other incantations and examples on the help page above. Regards, Marc Schwartz __ R-help

Re: [R] Mysterious NOTE when checking package

2019-06-03 Thread Marc Schwartz via R-help
xact commands that you used to build and then check the package? "R CMD build" should result in a source tarball with the extension ".tar.gz", which should then be used fully in the "R CMD check" call. Perhaps the file that you named in the R CMD check call is not corr

[R] [R-pkgs] WriteXLS version 5.0.0 now available

2019-05-28 Thread Marc Schwartz via R-packages
required. Warm regards, Marc Schwartz ___ R-packages mailing list r-packa...@r-project.org https://stat.ethz.ch/mailman/listinfo/r-packages __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https

Re: [R] Help understanding the relationship between R-3.6.0 and RStudio

2019-05-17 Thread Marc Schwartz via R-help
.0 for Windows. So you probably want to visit a CRAN mirror and download the release version of 3.6.0: R version 3.6.0 (2019-04-26) -- "Planting of a Tree" If you do not want to have multiple R versions on your computer, you can use the normal Windows application uninstall process to

Re: [R] Bounding box on plotting files inserted into a LaTeX document

2019-05-16 Thread Marc Schwartz via R-help
then ps2pdf, if you want to go that way with the CLI workflow. Might depend upon whether or not you use other PS specific markup in the .tex file, like pstricks. For example: latex YourTeXFile.tex dvips YourTeXFile -o YourTexFile.ps ps2pdf YourTeXFile.ps YourTeXFile.pdf Regards, Marc Sc

Re: [R] Message produced under R 3.6.0.

2019-04-29 Thread Marc Schwartz via R-help
ase. Peter usually includes it in his release announcement e-mail: https://stat.ethz.ch/pipermail/r-help/2019-April/462510.html Regards, Marc Schwartz > On Apr 29, 2019, at 7:32 PM, Rolf Turner wrote: > > > On 30/04/19 11:08 AM, Bert Gunter wrote: > >> Offlist, as

Re: [R] Error in pglm function when performing logit regression on Panel Data

2019-04-23 Thread Marc Schwartz via R-help
;twoways", family = binomial("logit"), index = "ID") Maximum Likelihood estimation Newton-Raphson maximisation, 0 iterations Return code 100: Initial value out of range. You now have other issues to deal with, which appear to be coming from the maxLik() function used from the

Re: [R] Logistic Regression with Panel Data

2019-04-23 Thread Marc Schwartz via R-help
hat are apropos in this setting, such as GEE, mixed-effects, robust covariance matrix, etc., you might want to look at the CRAN task view that covers this domain: https://cran.r-project.org/web/views/Econometrics.html Regards, Marc Schwartz ___

Re: [R] Create a sequence

2019-04-09 Thread Marc Schwartz via R-help
88 -88 89 -89 90 -90 91 -91 [183] 92 -92 93 -93 94 -94 95 -95 96 -96 97 -97 98 [196] -98 99 -99 100 -100 Regards, Marc Schwartz __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch

Re: [R] R SIG mailing lists

2019-04-05 Thread Marc Schwartz via R-help
: 1. The MedStats group on Google https://groups.google.com/forum/#!forum/medstats 2. datamethods group https://discourse.datamethods.org Regards, Marc Schwartz > On Apr 5, 2019, at 12:39 AM, Bert Gunter wrote: > > https://www.r-project.org/mail.html > > Found immediately

Re: [R] high p values

2019-03-19 Thread Marc Schwartz via R-help
ifferences in medians. That is, the null hypothesis for the test is not that the medians are equal, and you are either accepting or rejecting that null. Javed, I would suggest spending some time with a good tutorial on non-parametric statistics. Regards, Marc Schwartz > On Mar 19, 2019, at 6

Re: [R] A general question about using Bayes' Theorem for calculating the probability of The End of Human Technological Civilisation

2019-03-19 Thread Marc Schwartz via R-help
ch of the R-Help archives suggests that Philip has posted previously, going to back at least 2011, which is likely why this particular post managed to not be moderated. Regards, Marc Schwartz __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and mor

Re: [ESS] ESS+Polymode Questions

2019-03-15 Thread Marc Schwartz via ESS-help
Note: Re-sending my reply below, as I noted that even though I did reply-all, the ESS list was not included in the reply... Apologies. Marc > On Mar 13, 2019, at 6:12 AM, Vitalie Spinu wrote: > > > >>> On Thu, Mar 07 2019 12:17, Marc Schwartz via ESS-help wrote: &g

Re: [ESS] ESS+Polymode Questions

2019-03-07 Thread Marc Schwartz via ESS-help
> On Mar 7, 2019, at 12:51 PM, Alex Branham wrote: > > > On Thu 07 Mar 2019 at 11:17, Marc Schwartz wrote: > >>> (add-to-list 'display-buffer '("*R" (display-buffer-reuse-window >>> display-buffer-at-bottom) >^ should be

Re: [ESS] ESS+Polymode Questions

2019-03-07 Thread Marc Schwartz via ESS-help
Hi Alex, Thanks for your reply. Responses inline below. Marc > On Mar 7, 2019, at 10:24 AM, Alex Branham wrote: > > > On Wed 06 Mar 2019 at 18:53, Marc Schwartz via ESS-help > wrote: > >> Three questions: >> >> 1. While the syntax highlighting seem

[ESS] ESS+Polymode Questions

2019-03-06 Thread Marc Schwartz via ESS-help
a Google search, I have the following in my .emacs: (remove-hook 'flymake-diagnostic-functions 'flymake-proc-legacy-flymake) prior to both ESS and polymode being loaded. Is this a temporary situation pending a yet to be released version of lintr, or is there something else going on here? Than

Re: [R] Obtaining values of estimates from a regression; How do I get values from a list?

2019-02-22 Thread Marc Schwartz via R-help
are independent of the underlying object structure. So, while it may be unlikely that the structure of these objects would change in the future, that is not guaranteed. Thus, using the extractor functions is more "future-proof" than directly accessing object components directly. Regards, M

Re: [R] matrix subset problem with factors

2019-02-20 Thread Marc Schwartz via R-help
with 'dim' attributes, the behavior is essentially consistent as described above. Thus, perhaps just add the second sentence above or similar wording to the section for Matrices and arrays. Regards, Marc Schwartz > On Feb 20, 2019, at 4:23 AM, ঋষি ( ऋषि / rIsHi ) > wrote: > > Hi All,

Re: [R] Finding the Mean of a Specific Set of Columns

2019-02-14 Thread Marc Schwartz via R-help
AI measurements for each leaf of plot 104, 105, etc. Any > help would be appreciated. Thanks! Hi, This is easy using base R functions. See ?aggregate, ?by and ?tapply for a starting place. For example: > aggregate(lai ~ plot, data = DF, FU

Re: [R] periodicity

2019-01-30 Thread Marc Schwartz via R-help
Hi, A quick Google search using "R periodicity" turned up the 'xts' package on CRAN: https://cran.r-project.org/web/packages/xts/index.html Regards, Marc Schwartz > On Jan 30, 2019, at 2:24 PM, Sarah Goslee wrote: > > Hi Nick, > > A quick look on rseek.or

Re: [R] Kaplan-Meier plot

2019-01-17 Thread Marc Schwartz via R-help
Hi, Just to emphasize Bert's e-mail with a hint, the 'mark.time' argument for plot.survfit() is FALSE by default. Regards, Marc Schwartz > On Jan 17, 2019, at 2:45 PM, Bert Gunter wrote: > > Have you consulted ?plot.survfit ? There are examples for KM plots there. > >

Re: [R] Question

2019-01-08 Thread Marc Schwartz via R-help
the other hand, is a third party package that would need to be installed separately, if desired. Regards, Marc Schwartz > On Jan 8, 2019, at 1:46 PM, Bert Gunter wrote: > > I think it's ?install.packages > > Bert Gunter > > "The trouble with having an open m

Re: [R] Fit CMARS with R possible (Packages) ?

2019-01-04 Thread Marc Schwartz via R-help
to consider contacting what appears to be a small-ish group of common authors that I came across in the search who have described the methodology (e.g. Taylan or Yerlikaya-Özkurt) to see if they are aware of any R implementations. Regards, Marc Schwartz > On Jan 4, 2019, at 5:16 PM, Bert Gun

Re: [R] sample (randomly select) to get a number of successive days

2018-12-10 Thread Marc Schwartz via R-help
myframe.rand <- subset(myframe, day %in% seq(start, length.out = 25, by = "day")) In your example, all rows will be returned, but from your larger dataset, you will only get the rows that have dates within the range defined. Given the above, I will leave it to you to define the t

Re: [R] sample (randomly select) to get a number of successive days

2018-12-07 Thread Marc Schwartz via R-help
full dataset. What am I missing? Regards, Marc Schwartz > On Dec 7, 2018, at 7:18 PM, Dagmar Cimiotti > wrote: > > Hi Jim and everyone else, > > Mhm, no this is not what I am looking for. I think in your way I would > randomly sample two values of day 1 and

  1   2   3   4   5   6   7   8   9   10   >