R Under development (unstable) (2024-03-05 r86054 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(gmodels) > > y <- cbind(rnorm(100), rnorm(100)) > > x1 <- rnorm(100) > x2 <- rnorm(100) > > cm <- t(matrix(c(0, 1,-1))) > lm.1 <- lm(y ~ x1 + x2) > > estimable(lm.1, cm) Response Y1 : Estimate Std. Error t value DF Pr(>|t|) (0 1 -1) -0.1756287 0.1163234 -1.50983 97 0.1343374 Response Y2 : Estimate Std. Error t value DF Pr(>|t|) (0 1 -1) -0.0727021 0.1319147 -0.5511296 97 0.5828121 > > ## >> Error in coef(object) : object 'object' not found > > gmodels:::estimable.mlm(lm.1, cm) Response Y1 : Estimate Std. Error t value DF Pr(>|t|) (0 1 -1) -0.1756287 0.1163234 -1.50983 97 0.1343374 Response Y2 : Estimate Std. Error t value DF Pr(>|t|) (0 1 -1) -0.0727021 0.1319147 -0.5511296 97 0.5828121 > > proc.time() user system elapsed 0.31 0.06 0.34