Skip to content
Prev 311827 / 398503 Next

Comparing linear regression coefficients to a slope of 1

On Nov 24, 2012, at 6:05 PM, Catriona Hendry wrote:

            
It's kind of a pain that you spell these different than they are named  
below.
That looks fine. What's the problem? (Now you need to be examining the  
lm-object with the usual R tools. )
abline should be given an argument of 0 for "a" and 1 for "b" if the  
goal were to plot a line for a predicted regression result of unity  
slope. If that's not the goal then you need to be more forthcoming.
No, it's not. Somewhere (not very prominently displayed) on either the  
Posting Guide or on the information page for Rhelp is it stated that  
most attachements are thrown away. They need to be .txt, .png, .pdf,  
or .ps.  They cannot be .csv, .xls, .dat, .sas7dat or anything else.
Lean to use dput()

I needed to use these commands to read this irregularly dispaly list  
of numbers:
:

dat <- scan()
mat <- matrix(dat, ncol=3, byrow=TRUE)
datf <- as.data.frame(mat)
names(datf) <- c("index", "Contrast_log_FTL","Contrast_Log_MTL")