Skip to content

Commit

Permalink
dots arguments in estimate.default can now also be numeric vectors (r…
Browse files Browse the repository at this point in the history
…ows in contrast matrix as interpreted by parsedesign)
  • Loading branch information
Klaus Holst committed Mar 9, 2017
1 parent dfec748 commit 5f62419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/estimate.default.R
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ estimate.default <- function(x=NULL,f=NULL,...,data,id,
}
}
if (!missing(cluster)) id <- cluster
if (expr || is.character(f)) { ## || is.call(f)) {
if (expr || is.character(f) || (is.numeric(f) && !is.matrix(f))) { ## || is.call(f)) {
dots <- lapply(substitute(placeholder(...))[-1],function(x) x)
args <- c(list(coef=names(pp),x=substitute(f)),dots)
f <- do.call(parsedesign,args)
Expand Down

0 comments on commit 5f62419

Please sign in to comment.