Skip to content

PM_opt$new #347

@ks-liv

Description

@ks-liv

Hi there I am trying to run multiple-model optimization using PM_opt. I don't have the original run, so my poppar is:
poppar <- list(wt = 1, mean = c( 11.5000, 18.7000, 7.9800,
0.0613, 1.9000, 9.0200, 0.5440),
covar = diag(c(0.097, 0.485, 0.534,
0.399, 0.122, 0.207, 0.051)))

where mean is a list of the mean parameter values from a published model I'm using, and covar is a matrix created by log-normal transformation of the published %CV figures for each parameter from the published paper, and applying diag() as above to create a matrix.

  1. Do I even need to log-normal transform the %CV values or should I leave them in %CV form?
  2. When I try to run PM_opt$new using the above poppar, I get:

<error/rlang_error>
Error in value[[3L]]():
poppar is malformed with elements "mean" and "covar".

Backtrace:

  1. └─PM_opt$new(...)
  2. └─Pmetrics (local) initialize(...)
  3. └─base::tryCatch(...)
    
  4.   └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    
  5.     └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
    
  6.       └─value[[3L]](cond)
    
  7.         └─cli::cli_abort(c(x = e$message))
    
  8.           └─rlang::abort(...)
    

I'm not sure what the problem with the poppar is?

Many thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions