Topic: Utilities

Topic Description:

Basic R utilities used in many packages and functions, such as date and string manipulations, statistical distributions, geometry of lines and distances. The R package date is required for the two data functions.



File: utilities/statistics.r

View File Source Download File No help file available

Function: regslope.noint

Function Description: regslope.noint

Returns slope of regression with no intercept as single scalar (for use with apply).

Function Arguments:

ArgumentDefault Value
y
x

Function Source:

regslope.noint=function(y,x)
{
fit=lm(y~x+0)
return(summary(fit)$coef[2,1])
}