Description Usage Arguments Details Value Author(s) See Also Examples
Returns the slope and intercept for x predicting y
1 | lin.coef(x, y, out = "both", nomiss = 0.8)
|
x |
A numeric vector of the same length as y |
y |
A numeric vector of the same length as x |
out |
A character vector specifying whether the result should return just the intercept ("int"), just the slope ("slope") or both ("both") which defaults to "both" |
nomiss |
A numeric between .00 and 1.00 specifying the proportion of x-y pairs required to be complete before NA is returned instead of the regression coefficients. The default of .80 means that if more than 20 percent of the x-y pairs are incomplete an NA will be returned. |
This function is largely designed to increase computation efficiency for getting regression coefficients. For instance, this function is called by the Profile.reg function (see Profile.reg).
b0 |
intercept of the regression line from y predicted from x |
b1 |
slope of the regression line frome y predicted from x |
Ryne A. Sherman
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.