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

2025-01-19 Thread David Winsemius via R-help
Sent from my iPhone > On Jan 19, 2025, at 2:48 PM, David Winsemius wrote: > >  > Sent from my iPhone > >> On Jan 19, 2025, at 1:57 PM, David Winsemius wrote: >> >> I don’t understand why you don’t include the full text of the error. >> >> — >> David >> Sent from my iPhone >> On Jan

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

2025-01-18 Thread David Winsemius via R-help
Sent from my iPhone > On Jan 19, 2025, at 1:57 PM, David Winsemius wrote: > > I don’t understand why you don’t include the full text of the error. > > — > David > Sent from my iPhone > >> On Jan 19, 2025, at 10:00 AM, Sparks, John via R-help >> wrote: >> >> Hello R-Helpers, >> >> I was

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

2025-01-18 Thread David Winsemius via R-help
I don’t understand why you don’t include the full text of the error. — David Sent from my iPhone > On Jan 19, 2025, at 10:00 AM, Sparks, John via R-help > wrote: > > Hello R-Helpers, > > I was looking into how to test whether the beta coefficient from a regression > would be the same for

Re: [R] R Processing dataframe by group - equivalent to SAS by group processing with a first. and retain statments

2024-11-27 Thread David Winsemius via R-help
On 11/27/24 09:44, David Winsemius via R-help wrote: On 11/27/24 08:30, Sorkin, John wrote: I am an old, long time SAS programmer. I need to produce R code that processes a dataframe in a manner that is equivalent to that produced by using a by statement in SAS and an if first.day statement

Re: [R] R Processing dataframe by group - equivalent to SAS by group processing with a first. and retain statments

2024-11-27 Thread David Winsemius via R-help
On 11/27/24 08:30, Sorkin, John wrote: > I am an old, long time SAS programmer. I need to produce R code that > processes a dataframe in a manner that is equivalent to that produced by > using a by statement in SAS and an if first.day statement and a retain > statement: > > I want to take data

Re: [R] R Processing dataframe by group - equivalent to SAS by group processing with a first. and retain statments

2024-11-27 Thread David Winsemius via R-help
On 11/27/24 08:30, Sorkin, John wrote: > I am an old, long time SAS programmer. I need to produce R code that > processes a dataframe in a manner that is equivalent to that produced by > using a by statement in SAS and an if first.day statement and a retain > statement: > > I want to take data

Re: [R] Convert string to date time

2024-11-26 Thread David Winsemius via R-help
On 11/26/24 16:53, Sorkin, John wrote: I am reading a string that has the following form: "2020-08-26_05:15:01" I want to convert the string to a date-time variable. I tired: x <- "2007-02-01_10:10:30" That underscore is what's causing your problems. If it needs to stay in there because y

Re: [R] Using multiple dat files

2024-11-06 Thread David Winsemius via R-help
On 11/5/24 22:29, Sibylle Stöckli via R-help wrote: Dear community To import multiple .dat weather files I am using list.files(). I intend to use the R package “ClimInd” to calculate different agroclimatic indicators. Question: Is there another solution to import multiple .dat files so that

Re: [R] How to install this package

2024-10-03 Thread David Winsemius via R-help
I’m Sent from my iPhone > On Oct 2, 2024, at 7:43 AM, roslinazairimah zakaria > wrote: > > Hi Enrico, yes it works. I can also plot the graph. > Next question, how do I delete the date from 16 December until 31 December > 2014? > > > Thank you very much. > >> dt$time <- as.POSIXct(dt$time)

Re: [R] Prediction from Arima model

2024-08-31 Thread David Winsemius via R-help
Sent from my iPhone > On Aug 31, 2024, at 10:55 AM, Christofer Bogaso > wrote: > > Hi, > > I have run following code to obtain one step ahead confidence interval > from am arima model > > library(forecast) > > set.seed(100) > > forecast(Arima(rnorm(100), order = c(1,0,1), xreg = rt(100,

Re: [R] checking for unstated dependencies in examples ... ERROR

2024-08-25 Thread DAVID WINSEMIUS via R-help
> On 08/25/2024 1:32 PM PDT Søren Højsgaard via R-help > wrote: > > > Dear all, > When checking a package (ubuntu) I get > > checking for unstated dependencies in examples ... ERROR > Warning: parse error in file 'lines': > 77:20) > > Can anyone help on this? I doubt anyone can help w