Re: [R] Smoothing by group - Panel data - exponential/loess

2018-10-07 Thread Bert Gunter
1. This doesn't make much sense: smoothdf <- data.frame( x = 1:n, y = as.vector(smooth(dat$g)), method = "smooth()" ) What do you think the "method" invocation does (data.frame has no "method" argument)? 2. Show us what you have tried -- it depends on what graphics system you use. In latti

[R] Smoothing by group - Panel data - exponential/loess

2018-10-07 Thread Miluji Sb
Dear all, I have panel data for a series (g) for three time periods. The variable is likely autocorrelated. I would like to generate a new variable using exponential/loess smoothing by group (gid). For time series, I could have done something like this; smoothdf <- data.frame( x = 1:n, y = a