[R] Sweave - How to use local objects in code chunks

2010-01-16 Thread Jan-Henrik Pötter
Hello, I wrote a function create_report that calls the function Sweave. create_report shall be used to create a pdf-report about an lm-Object which is passed as an argument to create_report. I try to use an object sel_model, that is created within the function environment of create_report and lat

Re: [R] how to get perfect fit of lm if response is constant

2010-01-08 Thread Jan-Henrik Pötter
o become numerically incorrect if I may get nearly perfect fittable y's'. Greetings Henrik -Ursprüngliche Nachricht- Von: Peter Ehlers [mailto:ehl...@ucalgary.ca] Gesendet: Freitag, 8. Januar 2010 19:44 An: Jan-Henrik Pötter Cc: r-help@r-project.org Betreff: Re: [R] how to

[R] how to get perfect fit of lm if response is constant

2010-01-08 Thread Jan-Henrik Pötter
Hello. Consider the response-variable of data.frame df is constant, so analytically perfect fit of a linear model is expected. Fitting a regression line using lm result in residuals, slope and std.errors not exactly zero, which is acceptable in some way, but errorneous. But if you use summary.lm i