# Fit a linear model on the built-in mtcars dataset
fit <- lm(mpg ~ wt + hp, data = mtcars)
# Convert the standard lm object to an anytime-valid avlm object
av_fit <- av(fit, g = 1)
# Print the summary of the anytime-valid model
summary(av_fit)
Run the code above in your browser using DataLab