Skip to content

Commit

Permalink
further tidying up
Browse files Browse the repository at this point in the history
  • Loading branch information
David Lawrence Miller committed Jul 14, 2015
1 parent c73068b commit 5f893ed
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion R/logisticbyz.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ logisticbyz <- function (x, distance, models, beta){

# Functions used: g0, setcov

x$distance <- rep(distance,length(x$distance))
x$distance <- rep(distance, length(x$distance))
zlist <- setcov(x, models$g0model)
return(g0(beta,zlist))
}
3 changes: 0 additions & 3 deletions R/setcov.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ setcov <- function(dmat, model){
}else{
#x <- model.matrix(eval(parse(text=model)), data = dmat)
x <- model.matrix(as.formula(model), data = dmat)
#if(!is.matrix(x))
# x <- as.matrix(x)
#n <- dim(x)[2]
}
return(x)
}

0 comments on commit 5f893ed

Please sign in to comment.