Re: [R] question about update()

2023-05-04 Thread Adelchi Azzalini via R-help
shall post the question again. Best wishes, Adelchi > On 4 May 2023, at 11:44, Berwin A Turlach wrote: > > G'day Adelchi, > > hope all is well with you. > > On Thu, 4 May 2023 10:34:00 +0200 > Adelchi Azzalini via R-help wrote: > >> Thanks, Duncan.

Re: [R] question about update()

2023-05-04 Thread Adelchi Azzalini via R-help
> On 4 May 2023, at 10:26, Duncan Murdoch wrote: > > On 04/05/2023 4:05 a.m., Adelchi Azzalini via R-help wrote: >> Hi. There must be something about the use of update() which I do not grasp, >> as the next exercise indicates. >> Suppose that obj is an object return

[R] question about update()

2023-05-04 Thread Adelchi Azzalini via R-help
Hi. There must be something about the use of update() which I do not grasp, as the next exercise indicates. Suppose that obj is an object returned by a call to lm() or glm(). Next, a new variable xf is constructed using the same dataframe used for producing obj. Then obj$data <- cbind(obj$data,