[R] Test For Difference of Betas By Group in car

2025-01-18 Thread Sparks, John via R-help
Hello R-Helpers, I was looking into how to test whether the beta coefficient from a regression would be the same for two different groups contained in the dataset for the regression. When I put that question into google, AI returned a very nice looking answer (and a couple of variations on it)

Re: [R] Help Parsing String? From HTML

2025-01-05 Thread Sparks, John via R-help
__ From: Joshua Ulrich Sent: Sunday, January 5, 2025 2:55 PM To: Sparks, John Cc: r-help@r-project.org Subject: Re: [R] Help Parsing String? From HTML CAUTION: External Sender On Sun, Jan 5, 2025 at 2:03 PM Sparks, John via R-help wrote: > > Hi, > > I am scraping some data

[R] Help Parsing String? From HTML

2025-01-05 Thread Sparks, John via R-help
Hi, I am scraping some data from the internet and I got what I want but in a big long string (sort of) and can't figure out a way to parse it. What I have gotten to is > mystring {xml_nodeset (1)} [1] {\n "symbol": "ABI",\n "open": 21.04,\n "high": 21.05,\n "low": 20.06,\n "close": 20.2,\

Re: [R] Using library(TTR) Calculate ATR by Symbol

2025-01-05 Thread Sparks, John via R-help
I don't see atr_df appearing in my current directory. Also, I assume that the input data frame is named ohlc? Or am I missing something. Thanks, --JJS From: Joshua Ulrich Sent: Sunday, January 5, 2025 11:31 AM To: Sparks, John Cc: R-help@r-project.org Subjec

Re: [R] Using library(TTR) Calculate ATR by Symbol

2025-01-05 Thread Sparks, John via R-help
Thanks! Appears helpful and the quick turnaround is very much appreciated. I'll do some testing now. --JJS From: Joshua Ulrich Sent: Sunday, January 5, 2025 11:31 AM To: Sparks, John Cc: R-help@r-project.org Subject: Re: Using library(TTR) Calculate ATR by Sy

[R] Using library(TTR) Calculate ATR by Symbol

2025-01-05 Thread Sparks, John via R-help
Hi, In looking at the documentation for the TTR library and particularly the example for calculating the ATR (average true range). The example shows how to calculate ATR for a file of a single stock. If I have multiple stocks in one file, isn't there a way to get the ATR for each of them? Or