Re: [R] are R packages safe?

2016-12-08 Thread Spencer Graves
a package if that line of code was not exercised in any of the standard tests. Even of they could catch that, I don't know if they'd catch "do.call(q, list())" Best Wishes, Spencer Graves Thank you! Dimitri On Thu, Dec 8, 2016 at 1:04 PM, Marc Schwartz <marc_schwa...@m

Re: [R] Log plus one transformation in R

2016-12-12 Thread Spencer Graves
"?log" includes documentation for "log1p" in the base package Will that work? Spencer Graves On 12/12/2016 10:23 AM, Faradj Koliev wrote: Hi all, How do I perform log(x+1) in R? log1p_trans() from the package ”scales" doesn’t seem to w

Re: [R] Export R output in Excel

2016-12-29 Thread Spencer Graves
his writes an Excel workbook with 3 sheets. That may not be what you want, but it might provide other options. Spencer Graves On 2016-12-29 3:19 AM, Jim Lemon wrote: Hi Bryan, What functions like "htmlize" (prettyR) do is format the basic R output into HTML tables with the option of i

Re: [R] 3D Elliptic Fourier

2016-12-31 Thread Spencer Graves
in R. Hope this helps. Spencer Graves On 2016-12-30 8:40 PM, Liza van Eijk wrote: Dear Yingqi, Have you had any luck finding a way to run an Elliptic Fourier Analysis on 3D coordinates in R? If so, could you let me know which package you used? Thank you. Kind regards, Liza

Re: [R] The R-help community list was started on this day 20 years ago

2017-04-02 Thread Spencer Graves
Martin Maechler so the actual start may have been a few days before. So R was 11 when we celebrated its tenth birthday in Ames, Iowa, August 8-10, 2007? Best Wishes, Spencer Graves ... Incidentally, looking at the last posts of r-testers, it seems that CRAN turned 20 las

Re: [R] The R-help community list was started on this day 20 years ago

2017-04-02 Thread Spencer Graves
On 2017-04-02 8:42 AM, peter dalgaard wrote: On 02 Apr 2017, at 14:53 , Spencer Graves <spencer.gra...@effectivedefense.org> wrote: On 2017-04-02 4:10 AM, peter dalgaard wrote: Not fooling, no. However, r-help/r-announce/r-devel was a restructuring of the r-testers list. This goe

Re: [R] qqplot for binomial distribution

2017-04-17 Thread Spencer Graves
: set.seed(123) qqplot(jitter(rbinom(n=100,size=100,p=.05)), jitter(rbinom(n=100,size=100,p=.05) )) Spencer Graves Best Regards, Ashim [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE

Re: [R] Looking for a package to replace xtable

2017-04-22 Thread Spencer Graves
packageSum" and "writeFindFn2xls" can provide more information. * a vignette, also available at "https://journal.r-project.org/archive/2009/RJ-2009-017/RJ-2009-017.pdf;. hope this helps Spencer Graves On 2017-04-22 6:47 AM, BR_email wrote: David:

Re: [R] Fwd: Error: memory exhausted (limit reached?)

2017-03-14 Thread Spencer Graves
under Ubuntu 16.10's R version 3.3.1 (2016-06-21) -- "Bug in Your Hair" Did you try R 3.3.3? Spencer Graves Forwarded Message Subject: Error: memory exhausted (limit reached?) Date: Mon, 13 Mar 2017 16:51:15 +0100 From: Guillaume MULLER <g...@presans.

Re: [R] Kalman filter for a time series

2017-07-30 Thread Spencer Graves
M function has been removed from KFAS library or it never was part of KFAS. I don't know. so it won't run. Does anyone know how to fix the code so that it runs? Have you tried the vignette with KFAS? Hope this helps. Spencer Graves library(KFAS) library(tserie

Re: [R] weight in lm

2017-08-14 Thread Spencer Graves
citation for that formula. I you know one, please add it -- or post it here, to make it easier for someone else to add it.) Thanks, Peter. Spencer Graves -pd Best wishes Troels Ring Aalborg, Denmark __ R-help@r-project.org mailing list -- T

Re: [R] Nash equilibrium and other game theory tools implemented in networks using igraph or similar

2017-06-28 Thread Spencer Graves
On 2017-06-28 5:40 AM, Jeff Newmiller wrote: Showing your work so that someone else can either see something you missed or share in the joy when a rare answer comes through is what elevates such a posting from spam to shared research. A "fortune"? sg

Re: [R] Nash equilibrium and other game theory tools implemented in networks using igraph or similar

2017-06-28 Thread Spencer Graves
Improving search capabilities. If you can make it to useR!2017, we hope to see you in this session, Wed. July 5, from 17:00 - 18:30 in the main meeting room. If you might like to help with this but can't make Brussels, please stay tuned for further announcements or contact me after the conferen

Re: [R] Rounding of problem with sum command in R

2017-08-22 Thread Spencer Graves
On 2017-08-22 9:26 AM, niharika singhal wrote: Hello I have a vector v=c(0.0886,0.1744455,0.1379778,0.1209769,0.1573065,0.1134463,0.2074027) when i do sum(v) or 0.0886+0.1744455+0.1379778+0.1209769+0.1573065+0.1134463+0.2074027 i am getting output as 1 No:  That's only the display:

Re: [R] Convert Factor to Date

2017-08-22 Thread Spencer Graves
On 2017-08-22 1:30 PM, Patrick Casimir wrote: Dear R Fellows, I Have a dataset( data1) with 2 columns of date showing a class of factor. How to convert them to date? Then compare them, keep the greater date only in a new column. Using as.Date to change the class to Date but the data

Re: [R] Convert Factor to Date

2017-08-22 Thread Spencer Graves
gt; > > > > > > ---- > *From:* R-help <r-help-boun...@r-project.org> on behalf of Spencer > Graves <spencer.gra...@effectivedefense.org> > *Sent:* Tuesday, August 22, 2017 2:49 PM > *To:* r-help@

Re: [R] finding components of an API

2017-05-28 Thread Spencer Graves
rent web sites. If spotcrime.com says it's OK to access their web site as you have AND you'd like to add a function to do this to the "Ecfun" package, please go to R-Forge, find the "Ecdat" project, and "request to join" I will approve. Spencer Grave

Re: [R] Getting all possible combinations

2017-08-23 Thread Spencer Graves
On 2017-08-23 11:35 AM, Bert Gunter wrote: ummm, Ista, it's 2^n.   or (2^n-1) if the empty set is not considered as a "combination" ;-)  spencer Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus

Re: [R] Systemfit Question

2018-05-17 Thread Spencer Graves
  I got an error when I tried to source the "structure" below beginning with "Empdata <- structure(list(country = structure(c(1L, 1L, 1L, 1L, 1L, 1L,":  The source ended with " "98", "983", "991", "995", "997"), + + + + + +  )) +"   I supplied ")"

Re: [R] Fwd: Quadratic programming, for loop

2018-06-26 Thread Spencer Graves
formation to help me decide which package(s) and function(s) to try.   Hope this helps.   Spencer Graves, lead author of "sos" On 2018-06-26 07:01, Berwin A Turlach wrote: G'day all, On Tue, 26 Jun 2018 11:16:55 +0300 Maija Sirkjärvi wrote: It seems that my Amat and dve

Re: [R] Package for Molecular Properties

2018-05-03 Thread Spencer Graves
library(sos) (mp <- findFn('{molecular properties}'))   ** found 7 matches in 4 packages and opened two web pages in my default browser with (a) the 7 matches and (b) the 4 packages. The first function was something for amino acids, like you suggested.  Two others returned compound

[R] Searching R Packages

2018-01-27 Thread Spencer Graves
might be interested.   Best Wishes,   Spencer Graves, PhD   Founder   EffectiveDefense.org   7300 W. 107th St. # 506   Overland Park, KS 66212 __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mai

[R] Scraping info from a web site?

2018-01-31 Thread Spencer Graves
t;)= chr "xml_node"  $ :List of 2   ..$ node:   ..$ doc :   ..- attr(*, "class")= chr "xml_node"  - attr(*, "class")= chr "xml_nodeset"   This seems like it may be progress, but I'm still confused on what to do next.  Or maybe I should be usi

[R] Draft proposal for Searching R Packages

2018-02-17 Thread Spencer Graves
deadline is April 1.  This sounds like lots of time, except that the key thing that is missing in this draft proposal is principal investigator(s).  Without PI(s), it won't fly.   Thanks,   Spencer Graves, PhD   Founder   EffectivedDefense.org   7300 W. 107th St. # 506   Ove

Re: [R] deparseDots to get names of all arguments?

2018-02-20 Thread Spencer Graves
On 2018-02-20 20:52, William Dunlap wrote: > Does substitute(...()) do what you want?   That's the key.  Thanks very much.       Spencer Graves > > > myFunc <- function(x, ...) substitute(...()) > > myFunc(y=1/(1:10), x=sin(3:1), z=stop("Oops"), "u

[R] deparseDots to get names of all arguments?

2018-02-20 Thread Spencer Graves
ke to get c('a', 'b').   Thanks,   Spencer Graves > sessionInfo() R version 3.4.3 (2017-11-30) Platform: x86_64-apple-darwin15.6.0 (64-bit) Running under: macOS High Sierra 10.13.3 Matrix products: default BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vec

Re: [R] Converting chr to num

2018-08-20 Thread Spencer Graves
e documentation including the examples, you will see that many of these issues and others are handled automatically in the way that I thought was the most sensible.  If you disagree, we can discuss other examples and perhaps modify the code for those functions.   Spencer Graves On 2018-08-20 0

[R] real time monitoring of streaming audio with R?

2018-09-10 Thread Spencer Graves
, part of ffmpeg, but again I don't know how.   Thanks,   Spencer Graves __ 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] Learning advanced R

2018-03-14 Thread Spencer Graves
ove that article, an audience that size might be worth talking to.    Spencer Graves Best regards, Rich __ 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

[R] RMarkdown vignettes v. Jupyter notebooks?

2018-10-11 Thread Spencer Graves
rom within Anaconda Navigator, or is one better off using RStudio as a separate, stand alone application -- or should one even abandon RStudio and run R instead from within a Jupyter Notebook? [I'm new to this topic, so it's possible that this question doesn't even make sense.]   Thanks

Re: [R] Summarizing R script

2018-09-26 Thread Spencer Graves
  It depends on what you want, but I've found it very useful to create packages and submitting them to CRAN.  See "Creating R Packages" for how to do that.[1]  Part of this involves creating vignettes using Rmarkdown within RStudio.  Creating R packages and routinely running "R CMD

[R] using S4 objects in "with"?

2018-09-26 Thread Spencer Graves
i, length = 6) all.equal(x, rev(x)) channel <- round(32000 * sin(440 * x)) Wobj <- Wave(left = channel, right=rev(channel)) with(Wobj, quantile(left-right))   ** This last statement throws "Error ... object 'left' not found".   Is there something comparable to &q

Re: [R] using S4 objects in "with"?

2018-09-26 Thread Spencer Graves
On 2018-09-26 15:34, Duncan Murdoch wrote: On 26/09/2018 4:16 PM, Spencer Graves wrote:     Is there anything comparable to "with" for S4 objects? EXAMPLE:     A "Wave" object in the tuneR package has slots "left" and "right", plus othe

Re: [R] [FORGED] Question on Binom.Confint

2018-09-14 Thread Spencer Graves
On 2018-09-14 08:52, Guo, Fang (Associate) wrote: It's method="lrt" and I used the "binom" package.   The ultimate answer can be obtained as follows: > debug(binom.confint) > binom.confint(x = 0, n = 100, tol = 1e-8, method='lrt')   Then walk through the code line by line.    

Re: [R] Question on Binom.Confint

2018-09-13 Thread Spencer Graves
On 2018-09-13 20:58, David Winsemius wrote: On Sep 13, 2018, at 1:15 PM, Guo, Fang (Associate) wrote: Hi, I have a question with the function Binom.Confint(x,n,"method"=lrt). For likelihood ratio test, I'd like to ask how you define the upper limit when the frequency of successes is

Re: [R] density vs. mass for discrete probability functions

2019-03-15 Thread Spencer Graves
ons, the "reference measure" is routinely taken to be the "improper prior" that assigns measure 1 to any unit interval on the real line.   Does that make it clear as mud?   Spencer Graves https://en.wikipedia.org/wiki/Probability_density_function Furthermore t

Re: [R] 3.5.3

2019-03-15 Thread Spencer Graves
On 2019-03-15 08:54, Jeff Newmiller wrote: You really need to get into better touch with your feelings, man... how are we supposed to know what you want? ;-) In general you should be using the main release unless you know there is a bug in it that affects you and has specifically been

Re: [R] density vs. mass for discrete probability functions

2019-03-15 Thread Spencer Graves
On 2019-03-15 08:37, peter dalgaard wrote: Mathematically, you can bring discrete and continuous distributions on a common footing by defining probability functions as densities wrt. counting measure. You don't really need Radon-Nikodym derivatives to understand the idea, just the fact

[R] random truncation

2019-07-12 Thread Spencer Graves
tively easy to model the truncation as a function of "d" and / or publication that described someone doing it in R.  (I also have a couple of other variables that influence the distribution of Y.)   Thanks,   Spencer Graves [1] https://en.wikipedia.org/wiki/Truncated_

Re: [R] random truncation

2019-07-13 Thread Spencer Graves
".  I can get starting values for "b" and "s" from "lm", ignoring the truncation.  And I can first fit the model assuming t = s, then test whether it's different using likelihood ratio.  And I can try to estimate "c", but I should probably use values

Re: [R] random truncation

2019-07-13 Thread Spencer Graves
with corrections that attempt to respond to Spurdle's most recent concerns.  Thanks, 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 like

Re: [R] R 3.6.1

2019-07-17 Thread Spencer Graves
  What might be the likely outcomes of an attempt to reinstall 3.6.1?   And might that depend on whether the current 3.6.1 was uninstalled first?   Spencer On 2019-07-17 07:17, Jeff Newmiller wrote: It would never make sense for such messages to reflect normal and expected

Re: [R] transforming dates

2019-11-03 Thread Spencer Graves
.    Binary, octal or hex is superior to decimal, except for the fact that most humans have 10 digits on hands and feet.  And decimal is vastly superior to arithmetic in mixed bases, e.g., adding miles, rods, yards, feet, inches, and 64ths.   Spencer Graves

Re: [R] transforming dates

2019-11-03 Thread Spencer Graves
.   Spencer Graves __ 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/posting-guide.html and provide commented, minimal, self-contained

Re: [R] R 3.6.2 is released

2019-12-12 Thread Spencer Graves
Ditto.  Spencer Graves On 2019-12-12 07:54, Rich Shepard wrote: On Thu, 12 Dec 2019, Peter Dalgaard via R-help wrote: The build system rolled up R-3.6.2.tar.gz (codename "Dark and Stormy Night") this morning. Peter, My thanks to all of you on the R core team. Rega

Re: [R] Rtools required

2020-04-29 Thread Spencer Graves
s for some packages are not (yet) available for R 4.0.0.   Hope this helps.       Spencer Graves On 2020-04-29 21:02, Bert Gunter wrote: Wouldn't packages that have to be built from source on installation require Rtools? Bert Gunter "The trouble with having an open mind is that peo

Re: [R] CRAN R For Windows 3.6.3

2020-09-19 Thread Spencer Graves
If you have production code written in R that make it expensive to even consider upgrading to the latest R, it may be worth paying the support fees of an organization like RStudio. Otherwise, I think it make sense to upgrade to the latest version and hope for the best. If you

Re: [R] R 4.0.2 is released

2020-06-22 Thread Spencer Graves
Thank you and all the core R team.  Spencer Graves On 2020-06-22 03:21, Peter Dalgaard via R-help wrote: The build system rolled up R-4.0.2.tar.gz (codename "Taking Off Again") this morning. The list below details the changes in this release. You can get the source code from htt

Re: [R] help with web scraping

2020-07-24 Thread Spencer Graves
.  The columns of the former are all character;  that's not true for the latter.   Sadly, it's not quite what I want:  It's one table for each office-party combination, but it's lost the office designation. However, I'm confident I can figure out how to hack that.   Thanks,   Spencer Graves

Re: [R] [External] Re: help with web scraping

2020-07-24 Thread Spencer Graves
e to get what I want from the single character string using, e.g., gregexpr and other functions.   Thanks again,   Spencer Graves Best, luke On Fri, 24 Jul 2020, Spencer Graves wrote: Hi Bill et al.:   That broke the dam:  It gave me a character vector of length 1 consisting o

Re: [R] [External] Re: help with web scraping

2020-07-24 Thread Spencer Graves
Dear Rasmus: On 2020-07-24 09:16, Rasmus Liland wrote: > On 2020-07-24 08:20 -0500, luke-tier...@uiowa.edu wrote: >> On Fri, 24 Jul 2020, Spencer Graves wrote: >>> On 2020-07-23 17:46, William Michels wrote: >>>> On Thu, Jul 23, 2020 at 2:55 PM Spencer Graves

[R] prevent XML::readHTMLTable from suppressing

2020-07-24 Thread Spencer Graves
ml(sosChars) MOcan2 <- rvest::html_table(sosPointers) MOcan2[[2]][1, 2] [1] "4476 FIVE MILE RDSENECA MO 64865"   MOcan2 does not have names, and some of the fields are automatically converted to integers, which I think is not smart in this application.   Thanks,

Re: [R] [External] Re: help with web scraping

2020-07-25 Thread Spencer Graves
Dear Rasmus et al.: On 2020-07-25 04:10, Rasmus Liland wrote: > On 2020-07-24 10:28 -0500, Spencer Graves wrote: >> Dear Rasmus: >> >>> Dear Spencer, >>> >>> I unified the party tables after the >>> first summary table like this: >>>

Re: [R] [External] Re: help with web scraping

2020-07-25 Thread Spencer Graves
Dear Rasmus Liland et al.: On 2020-07-25 11:30, Rasmus Liland wrote: On 2020-07-25 09:56 -0500, Spencer Graves wrote: Dear Rasmus et al.: It is LILAND et al., is it not? ... else it's customary to put a comma in there, isn't it? ... The APA Style recommends "Sharp et al., 2007"

[R] help with web scraping

2020-07-23 Thread Spencer Graves
::read_html, and XML::readHTMLTable; see summary below.   Suggestions?   Thanks,   Spencer Graves sosURL <- "https://s1.sos.mo.gov/CandidatesOnWeb/DisplayCandidatesPlacement.aspx?ElectionCode=750004975; str(baseURL <- base::url(sosURL)) # this might give me something, but I

Re: [R] Google Summer of Code 2021

2020-12-08 Thread Spencer Graves
t proposal was not funded, but documentation of the basic idea is still available: https://en.wikiversity.org/wiki/Draft_Proposal_for_improving_the_ability_of_R_users_to_search_R_packages See also: https://en.wikiversity.org/wiki/Searching_R_Packages Hope this helps. Spen

Re: [R] How to save Results in svg format

2020-12-04 Thread Spencer Graves
els/in, and I think that worked, though I'm not 100% certain. hope this helps. Spencer Graves On 2020-12-03 23:21, David Carlson wrote: If you look at the examples on the manual pages for the upgma() and NJ() functions you will see that the results are generally sent to the plot() f

Re: [R] merging multiple .csv files

2020-12-15 Thread Spencer Graves
Did you work the examples in help("merge")? Also, have you looked at the "dplyr" package? It has 9 different vignettes. The lead author is Hadley Wickham, who won the 2019 COPSS Presidents' Award for work like this. Alternatively, you could manually read all 10 files, then figure

Re: [R] analyzing results from Tuesday's US elections

2020-11-08 Thread Spencer Graves
for asking. Spencer Graves [1] https://github.com/sbgraves237 [2] https://en.wikiversity.org/wiki/Electoral_integrity_in_the_United_States __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman

Re: [R] Inappropriate color name

2020-11-17 Thread Spencer Graves
lar topics. If the name of that article were changed, then it should be a lot easier to pursue a similar name change elsewhere. Spencer Graves On 2020-11-17 15:25, Mitchell Maltenfort wrote: What about just amputating the final "n?" "Indian" might mean one of two

Re: [R] WG: Packages for mathematics

2020-11-16 Thread Spencer Graves
on.org; to be most useful. Many functions are included in base R. Many more are provided in contributed packages. Spencer Graves On 2020-11-16 04:02, ELLENBERGER Mihaela via R-help wrote: Von: ELLENBERGER Mihaela Gesendet: Montag, 16. Nov

[R] analyzing results from Tuesday's US elections

2020-11-01 Thread Spencer Graves
from NC-09 to the US House in 2018 was detected by a college prof, who accessed the data two weeks after the election.[2] Spencer Graves [1] https://github.com/sbgraves237 [2] https://en.wikiversity.org/wiki/Local_Journalism_Sustainability_Act

Re: [R] Is there anyone who uses both R and Python here? How do you debug? Perhaps in RStudio?

2021-01-27 Thread Spencer Graves
thon since. However, this is described in the book Xie, Allaire, and Grolemund (2020) R Markdown: The Definitive Guide (Chapman & Hall and available for free at the above link). Spencer Graves On 2021-01-27 10:31, Robert Knight wrote: An iterative process works well. Python

Re: [R] MAC version 10

2021-07-08 Thread Spencer Graves
What web site did you go to? Have you tried: https://cran.r-project.org/bin/macosx/ Then click on "R-4.1.0.pkg". That should download as normal. Then double click on that, etc. Spencer Graves On 7/6/21 3:52 PM, Farrah T wrote: Hello, I have Mac

Re: [R] Very slow optim()

2021-03-13 Thread Spencer Graves
Hi, Deepayan: On 2021-03-13 01:27, Deepayan Sarkar wrote: On Sat, Mar 13, 2021 at 10:08 AM Spencer Graves wrote: TWO COMMENTS: 1. DID YOU ASSIGN THE OUTPUT OF "optim" to an object, like "est <- optim(...)"? If yes and if "optim" terminated norma

Re: [R] Very slow optim()

2021-03-12 Thread Spencer Graves
TWO COMMENTS: 1. DID YOU ASSIGN THE OUTPUT OF "optim" to an object, like "est <- optim(...)"? If yes and if "optim" terminated normally, the 60,000+ paramters should be there as est$par. See the documentation on "optim". 2. WHAT PROBLEM ARE YOU TRYING TO SOLVE? I hope you will

Re: [R] about a p-value < 2.2e-16

2021-03-18 Thread Spencer Graves
hey are asking makes sense:  There is is no such thing as an "exact p value" except to the extent that certain assumptions hold, and all models are wrong (but some are useful), as George Box famously said years ago.[1]  Truth only exists in mathematics, and that's because it's a fiction to start with ;-)

Re: [R] about a p-value < 2.2e-16

2021-03-19 Thread Spencer Graves
t;> >>>> I thinnk the answer is much simpler. The print method for hypothesis >>>> tests (class htest) truncates the p-values. In the above example, >>>> instead of using >>>> >>>> wilcox.test(rnorm(100), rnorm(100, 2), exact=TRUE) >>

Re: [R] about a p-value < 2.2e-16

2021-03-19 Thread Spencer Graves
eanings. It can mean the numerically accurate p-value as Bogdan asked in his first email, or it could mean the p-value calculated from the exact distribution of the statistic(In this case, U stat). These two are actually not related, even though they all called "exact". Best, Jiefei On Fri, Mar 19,

Re: [R] forecast accuracy

2021-02-17 Thread Spencer Graves
You can get his email from help("fda"). Hope this helps. Spencer Graves On 2021-02-17 06:02, Faheem Jan via R-help wrote: I am new in the functional time series,  my question may be stupid as  I am new, I am  functional forecasting one year a head, Know I want to ch

[R] input string ... cannot be translated to UTF-8, is it valid in 'ANSI_X3.4-1968'?

2021-04-22 Thread Spencer Graves
tailed instructions below on the precise file I dowloaded from the web and tried to read. I may be able to get what I want just ignoring this. However, I'd like to know how to fix this. Thanks, Spencer Graves sessionInfo() R version 4.0.5 (2021-03-31) Platform: x86_64

Re: [R] about L-BFGS-B

2021-08-15 Thread Spencer Graves
y giving a more informative error message. Hope this helps, Spencer Graves On 8/15/21 7:26 AM, J C Nash wrote: You have the answer in the error message: the objective function has been calculated as +/-Inf somehow. You are going to have to figure out where the function is

Re: [R] SOS package: findFn does not work

2021-08-07 Thread Spencer Graves
However, it would help me if I understood your configuration and if the GitHub version fixes the problem for you. Thanks for the report. I apologize for the inconvenience. Spencer Graves On 8/7/21 2:57 AM, hp wan wrote: Dear All, Recently, I found that the SOS pa

Re: [R] nlme::lme sigma parameter standard deviation or variance?

2021-12-18 Thread Spencer Graves
iation, as indicated in help('lmeObject'). Hope this helps. Spencer Graves On 12/18/21 4:00 AM, Eric Berger wrote: You can run a test. Multiply all your data by a scalar, say 2. If this changes the result lme_mod$sigma by a factor of 2, then it is a std deviation. If it c

Re: [R] Date read correctly from CSV, then reformatted incorrectly by R

2021-11-22 Thread Spencer Graves
be improved. It's on GitHub in case anyone would like to take the time to suggest improvements: https://github.com/sbgraves237/Ecfun Hope this helps. Spencer Graves On 11/20/21 4:13 PM, Avi Gross via R-help wrote: This seems to be a topic that comes up periodically

Re: [R] Date

2021-11-04 Thread Spencer Graves
it were "09/06/2019", we would not know if it were September 6 or 9 June of 2019. If it were "09/06/08", we would have the added possibility with the year first, followed by month and day: June 8, 2009. This ambiguity is resolved most forcefully by ISO 8601. Hope

Re: [R] Sin curve question

2021-07-24 Thread Spencer Graves
plot(sin, to=pi) # also works but with x labeled in radians. # With x axis labeled in degrees plot(sin, to=pi, axes=FALSE) axis(2) lbls <- seq(0, 180, 30) axis(1, pi*lbls/180, lbls) This can probably be done in ggplot2, but I don't know how off the top of my head. Hope this

Re: [R] Exact 95% CI around the mean for LogNormal distribution

2022-03-16 Thread Spencer Graves
plausibly like a straight line, you are fine with a log-normal assumption. If not, my favorite reference is Titterington, Smith and Makov (1985) Statistical Analysis of Finite Mixture Distributions (Wiley). Hope this helps. Spencer Graves On 3/16/22 5:44 PM, Bert Gunter

Re: [R] Is there a Truth Table Generator in R?

2022-03-12 Thread Spencer Graves
t matches. The second is a summary by package. Hope this helps. Spencer Graves On 3/12/22 10:42 AM, Paul Bernal wrote: Dear friends, Hope you are doing great. I have been searching for a truth table generator in R, but everything I find has a Python impleme

Re: [R] Searching for packages

2022-02-28 Thread Spencer Graves
There is also sos::findFn, discussed in a vignette included in that package. When I created that package, I felt it was the fastest literature search for anything statistical: It will identify all help pages that match a search string and sort them by package. It creates an object so

[R] simulating future observations from heteroscedastic fits

2023-08-31 Thread Spencer Graves
n I do the same with either fit12 and fit22 # or fit12r and fit22r? Thanks, Spencer Graves __ 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 gui

[R] logLIk(lme(...))?

2023-08-29 Thread Spencer Graves
llGp1+llGp2)? (ll22 - llGp1-llGp2) # And secondarily, how can I get the residual standard deviations # within each gp from fit22? Thanks, Spencer Graves __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https:/

Re: [R] logLIk(lme(...))?

2023-08-29 Thread Spencer Graves
What I thought should have been a linear operation wasn't. Please excuse the waste of your time. Thanks, Spencer Graves On 8/29/23 11:15 AM, Spencer Graves wrote: Hello, all:   I have a dataset with 2 groups.  I want to estimate 2 means and 2 standard deviations. 

Re: [R] simulating future observations from heteroscedastic fits

2023-08-31 Thread Spencer Graves
On 8/31/23 1:27 AM, Spencer Graves wrote: Hello, All:   I want to simulate future observations from fits to heteroscedastic data. A simple example is as follows: (DF3_2 <- data.frame(y=c(1:3, 10*(1:3)), gp=factor(rep(1:2, e=3 # I want to fit 4 mod

Re: [R] understanding predict.lm

2023-11-06 Thread Spencer Graves
Doh! Thanks very much. sg On 11/6/23 5:17 PM, John Fox wrote: Dear Spencer, You need the t distribution with correct df, not the standard-normal distribution: > pt(-z.confInt/2, df=13)     1 2 3 4 5 6 7 8 9    10    11 0.025 0.025 0.025 0.025 0.025 0.025

[R] understanding predict.lm

2023-11-06 Thread Spencer Graves
fit[,3]-fit[,2])/s.pred)) pnorm(-z.predInt/2) ** This gives me 0.01537207. I do not understand why it's not 0.025 with level = 0.95. Can someone help me understand this? Thanks, Spencer Graves __ R-help@r-project.org mailin

Re: [R] Questions about R

2023-08-17 Thread Spencer Graves
e, with good reason. Hope this helps. Spencer Graves On 8/17/23 11:48 AM, Bert Gunter wrote: Incidentally, you might be interested in the banner shown when R starts up: "R is free software and comes with ABSOLUTELY NO WARRANTY." I believe this is standard for op

Re: [R] Book Recommendation

2023-08-28 Thread Spencer Graves
using findFn with SQL and applications of greatest interest to your target audience. Spencer Graves p.s. DISCLAIMER: I'm the lead author and maintainer of the sos package. On 8/28/23 1:48 PM, Hadley Wickham wrote: You might find this chapter of R for Data Science helpful:

Re: [R] Book Recommendation

2023-08-28 Thread Spencer Graves
On 8/28/23 12:47 PM, Bert Gunter wrote: I presume you are familiar with the RSQL and RSQLite packages and their vignettes. Can't offer any help, but a point of clarification: When you say, "teach accomplishing SQL in R," do you explicitly mean using SQL syntax in R to manipulate data or do

Re: [R] A humble request

2022-07-02 Thread Spencer Graves
, Muhammad can use "debug", as I earlier suggested. Spencer Graves You might find as I did that the wmtsa package has some dependencies that are also archived, namely pkg:splus2R (provided generously by Insightful for many years but apparently no longer) and pkg:ifultools. They

Re: [R] A humble request

2022-07-03 Thread Spencer Graves
between you,   ASK a more informative question. On Mon, 4 Jul 2022 at 00:38, John Kane <mailto:jrkrid...@gmail.com>> wrote: Spenser, the idea to source the fonction makes sense but since tho OP is a very new beginner perhaps you could point him towards code showing him how

Re: [R] A humble request

2022-07-02 Thread Spencer Graves
ou to walk through the function line by line. You can look at what it does, and change it as you like. Doing so should help you learn R while also making it easier for you to figure out how to make the function do what you want. Hope this helps. Spencer Graves On 7/2/2

Re: [R] Is it possible to set a default working directory for all R consoles?

2022-06-17 Thread Spencer Graves
ing Directory". Then when I want to work on an existing project, I can do File > "Recent Projects" in RStudio. Or I can double click on the appropriate *.Rproj file in Finder or Windows Explorer. Hope this helps. Spencer Graves On 6/17/22 10:4

Re: [R] Parsing XML?

2022-07-28 Thread Spencer Graves
unknown. My contact at the Library of Congress then suggested I parse the XML version. Thanks, Spencer What of this information do you actually want? The elements of the list should be what? On Thu, 28 Jul 2022 at 08:52, Spencer Graves <mailto:spencer.gra...@effectivedefense.o

Re: [R] cannot print a list with cat

2022-10-24 Thread Spencer Graves
12 I don't know what you mean by "main program" vs. "the command t(mycontrol)". ??? Spencer Graves > sessionInfo() R version 4.2.1 (2022-06-23) Platform: x86_64-apple-darwin17.0 (64-bit) Running under: macOS Big Sur 11.7 Matrix products:

Re: [R] ggplot2 install.package

2022-10-11 Thread Spencer Graves
From long and unhappy experience, I routinely reboot before reporting problems like this, then upgrade all software where feasible ... including "update.packages". Some problems magically disappear after doing this. If they persist, then, as it says at the end of each email on this

Re: [R] R Certification

2023-01-02 Thread Spencer Graves
the signature: pkgutil --check-signature R-4.2.2.pkg". Beyond that, RStudio and other companies will happily sell you a maintenance contract, which will get you more polite answers than from a list serve like this ;-) Spencer Graves On 1/2/23 11:24 AM, John Kane wrote: H

Re: [R] [External] Amazing AI

2022-12-21 Thread Spencer Graves
echniques. Let's use the best understandable model, and apply AI to the residuals from that. Then identify the variables that make the largest contributions to a useful AI model, and see if they can be added to the other model. Spencer Graves On Sun, Dec 18, 2022 at 7:01 PM Boris Steipe

Re: [R] Plotmath isn't working for special characters

2023-01-24 Thread Spencer Graves
or. plot(1,1,main=parse(text="x >= y")) Has anyone else seen this? What's your "sessionInfo()"? I got the symbol, not problem. Spencer Graves sessionInfo() R version 4.2.2 (2022-10-31) Platform: x86_64-apple-darwin17.0 (64-bit) Running under: macOS

Re: [R] identify the distribution of the data

2023-02-08 Thread Spencer Graves
roduct. This application to products is less well known and occasionally controversial. https://en.wikipedia.org/wiki/Gibrat%27s_law Spencer Graves 1) Try a simulation. Draw 5 values from a normal distribution, make a histogram. Then do it again. Is it easy to see tha

<    1   2   3   4   5   6   >