Re: [R] Modifying a design matrix in mgcv

2013-08-14 Thread David Winsemius
On Aug 14, 2013, at 12:46 PM, Andrew Crane-Droesch wrote: > Thanks! I hadn't touched environment variables before, not knowing what they > were. The G$X matrix indeed seems to get squared, giving appropriately > nonsensical results. I can now go and code a (hopefully) sensible change to > i

Re: [R] Modifying a design matrix in mgcv

2013-08-14 Thread Andrew Crane-Droesch
Thanks! I hadn't touched environment variables before, not knowing what they were. The G$X matrix indeed seems to get squared, giving appropriately nonsensical results. I can now go and code a (hopefully) sensible change to it. On 08/14/2013 10:32 PM, David Winsemius wrote: environment(mo

Re: [R] Modifying a design matrix in mgcv

2013-08-14 Thread David Winsemius
On Aug 14, 2013, at 11:08 AM, Andrew Crane-Droesch wrote: > Hello, > > I am trying to make a slight modification to the way gam (mgcv) works. > I want to modify the G$X matrix, which is the design matrix, to > accommodate an estimator that I am trying to program. I am working with > panel d

[R] Modifying a design matrix in mgcv

2013-08-14 Thread Andrew Crane-Droesch
Hello, I am trying to make a slight modification to the way gam (mgcv) works. I want to modify the G$X matrix, which is the design matrix, to accommodate an estimator that I am trying to program. I am working with panel data, and I want to take all continuous variables, including basis funct