Re: [R] How to obtain the graph of fitted values against one variable after estimation?

2010-08-26 Thread Le Wang
Thanks, David. I did try to use predict() to obtain the graph, but it somehow looks different from the one generated by plot command. So, I was wondering if there is any way that I can get the one generated by plot so that I can compare. Thank you. Le On Wed, Aug 25, 2010 at 11:15 PM, David

Re: [R] How to obtain the graph of fitted values against one variable after estimation?

2010-08-26 Thread David Winsemius
On Aug 26, 2010, at 2:35 PM, Le Wang wrote: Thanks, David. I did try to use predict() to obtain the graph, Try? How? Code? ( predict() is used to obtain numbers, not to do graphing. ) but it somehow looks different from the one generated by plot command. I have no idea what you

[R] How to obtain the graph of fitted values against one variable after estimation?

2010-08-25 Thread Le Wang
Hi there, I have a question regarding the plot command after estimation. Specifically, I estimate a model, say regressing y on x and z. And after estimation, I would like to plot the fitted values against x, but I don't need that for z. The following command always gives two graphs, for both

Re: [R] How to obtain the graph of fitted values against one variable after estimation?

2010-08-25 Thread David Winsemius
On Aug 25, 2010, at 10:46 PM, Le Wang wrote: Hi there, I have a question regarding the plot command after estimation. Specifically, I estimate a model, say regressing y on x and z. And after estimation, I would like to plot the fitted values against x, but I don't need that for z. The