inst/samples/formula.R

x =  rnorm(100)
y = 3 + 7 * x + rnorm(length(x))

plot(x, y)
summary(x)
summary(y)

fit = lm(y ~ x)

d = data.frame(a = y, b = x)
fit1 = lm(a ~ b, d)

Try the CodeDepends package in your browser

Any scripts or data that you put into this service are public.

CodeDepends documentation built on May 2, 2019, 4:19 a.m.