Re: [R] Strange variable names in factor regression

2024-05-09 Thread Michael Dewey
Comment in in-line below On 09/05/2024 13:09, Naresh Gurbuxani wrote: On converting character variables to ordered factors, regression result has strange names. Is it possible to obtain same variable names with and without intercept? Thanks, Naresh mydf <- data.frame(date = seq.Date(as.Date("

Re: [R] Strange variable names in factor regression

2024-05-09 Thread Duncan Murdoch
On 09/05/2024 8:09 a.m., Naresh Gurbuxani wrote: On converting character variables to ordered factors, regression result has strange names. Is it possible to obtain same variable names with and without intercept? You are getting polynomial contrasts with the ordered factor, because you have t

[R] Strange variable names in factor regression

2024-05-09 Thread Naresh Gurbuxani
On converting character variables to ordered factors, regression result has strange names. Is it possible to obtain same variable names with and without intercept? Thanks, Naresh mydf <- data.frame(date = seq.Date(as.Date("2024-01-01"), as.Date("2024-03-31"), by = 1)) mydf[, "wday"] <- weekday