# example data set 1. Kvålseth (1985).
df1 <- data.frame(x = c(1:6),
y = c(15,37,52,59,83,92))
model_intercept <- lm(y ~ x, df1)
model_without <- lm(y ~ x - 1, df1)
model_power <- lm(log(y) ~ log(x), df1)
comp_fit(model_intercept)
comp_fit(model_without)
comp_fit(model_power)
Run the code above in your browser using DataLab