dwww Home | Show directory contents | Find package

library( "miscTools" )

# Construct a simple OLS regression:
set.seed( 123 )
x1 <- runif(100)
x2 <- runif(100)
y <- 3 + 4*x1 + 5*x2 + rnorm(100)
m <- lm(y~x1+x2)  # estimate it
nObs(m)
nParam(m)

Generated by dwww version 1.15 on Wed Jun 26 01:11:14 CEST 2024.