Hi, I have written my own function to estimate a local linear regression. When I plot the output vector on the scatterplot of the data, the function lines does not work and I get a rescaled regression line. When I plot the output vector alone, the graph looks right, but choosing the type "line" instead of the default does not deliver a clear single line. Does somebody know why this is happening. Thank you, Chiara
cp133 wrote:> Hi, > > I have written my own function to estimate a local linear regression. > When I plot the output vector on the scatterplot of the data, the > function lines does not work and I get a rescaled regression line. > When I plot the output vector alone, the graph looks right, but choosing > the type "line" instead of the default does not deliver a clear single > line. > > Does somebody know why this is happening. >Does abline() help? If not, please be more specific in your question and tell us what you are exactly going to do. Uwe Ligges