Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VPC for log TBS data #201

Open
PerOG7 opened this issue May 23, 2022 · 2 comments
Open

VPC for log TBS data #201

PerOG7 opened this issue May 23, 2022 · 2 comments

Comments

@PerOG7
Copy link

PerOG7 commented May 23, 2022

Hi Developers,

Is there a way for doing VPCs on models with log transform-both-sides residual error models, so that the non-transformed data is plotted, i.e. consistent with the lnDV=1 flag in PsN?

Kind Regards,
Per

@bguiastr
Copy link
Collaborator

Hello,

There is currently no built-in feature to transform the data in VPCs as in PsN lnDV=x.

You could try to point xpose to the original DV (i.e., non-log transformed) rather than the log transformed one? (note: this assumes that your original DV is in your observation and simulation tables).

xpdb <- set_var_types(xpdb, dv = "ODV")

If you don't have the original DV in the output tables you could transform it using:

xpdb <- xpdb %>% mutate(ODV = exp(DV)) %>% set_var_types(dv = "ODV")

And then run the vpc on that transformed dataset.

Best of luck!

@PerOG7
Copy link
Author

PerOG7 commented May 24, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants