Displaying 2 results from an estimated 2 matches for "modelterm".
Did you mean:
modelterms
2004 Jul 06
0
Model frame manipulation
...egant solution from the LMtest package to rebuild the
first of the matrices involved (the unrestricted one) on the basis of
model spec. and data
>red.var.test<-function(formula, red.vars, data = list()) {
> mf <- model.frame(formula, data = data)
> y <- model.response(mf)
> modelterms <- terms(formula, data = data)
> X <- model.matrix(modelterms, data = data) # unrestricted model
matrix
>
> n <- nrow(X)
> k <- ncol(X)
>
...but then I had to resort to this solution of mine to select the
restricted m.m. according to the possibly redundant regres...
2001 Dec 05
2
(Meta-analysis) How to build|fake a [n]lm[e] object ?
Dear all,
I recently had to review the current litterature about some medical treatment
with two possible variants (let's call them A and B). I collected all available
prospective randomized trials about this treatment : I got four trials for the
A variant and three for the B variant, all studies comparing one variant to a
"suitably choosen" placebo.
Two classes of variables are of