Skip to content

Commit

Permalink
Better output of mvln
Browse files Browse the repository at this point in the history
  • Loading branch information
iagomosqueira committed Oct 19, 2023
1 parent da891a5 commit 1b3438b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions R/ssmvln.R
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,14 @@ ssmvln <- function(covar, hat=NULL, mc=500, new=!FALSE, as.FLQuants=TRUE) {
setnames(rtn, c("variable", "value"), c("qname", "data"))

#
if(as.FLQuants)
if(as.FLQuants) {

rtn[, age := 'all']
rtn[qname == 'Recr', age := "0"]

rtn <- as(rtn, 'FLQuants')
}

return(rtn)
}
# }}}

0 comments on commit 1b3438b

Please sign in to comment.