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

Error while plotting series chart. #5

Closed
13367356107 opened this issue Aug 16, 2022 · 6 comments
Closed

Error while plotting series chart. #5

13367356107 opened this issue Aug 16, 2022 · 6 comments

Comments

@13367356107
Copy link

This error occurred when I was drawing with sample data. The "series graph " made has no color and no legend of threshold.

library(mem)
data("flucyl")
full.series.graph("flucyl")
Error in sum(x, na.rm = T) : invalid 'type' (character) of argument
In addition: Warning messages:
1: In min(as.numeric(rownames(i.data)[1:3])) :
no non-missing arguments to min; returning Inf
2: In min(as.numeric(rownames(i.data)[1:(min(3, NROW(i.data)))])) :
no non-missing arguments to min; returning Inf
3: In max(as.numeric(rownames(i.data)[(max(1, NROW(i.data) - 2)):NROW(i.data)])) :
no non-missing arguments to max; returning -Inf

series graph

@13367356107
Copy link
Author

sorry! I found it should be "full.series.graph(flucyl)". ....SO! Why the threshold information is not presented on the graph?

@lozanoje
Copy link
Contributor

lozanoje commented Aug 17, 2022

full.series.graph(
  i.data,
  i.range.x = NA,
  i.range.y = NA,
  i.output = ".",
  i.graph.title = "",
  i.graph.subtitle = "",
  i.graph.file = T,
  i.graph.file.name = "",
  i.plot.timing = F,
  i.plot.intensity = F,
  i.alternative.thresholds = NA,
  i.color.pattern = c("#C0C0C0", "#606060", "#000000", "#808080", "#000000", "#001933",
    "#00C000", "#800080", "#FFB401", "#8c6bb1", "#88419d", "#810f7c", "#4d004b"),
  i.mem.info = T,
  ...
)

Set those two parameters to true:

  i.plot.timing = F,
  i.plot.intensity = F,

Concerning the first issue: "flucyl" is a char object that contains the string "flucyl", flucyl is a dataset that contains rates to draw the graph

@13367356107
Copy link
Author

oh!it worked,thank you!

@13367356107
Copy link
Author

13367356107 commented Aug 23, 2022

When I use the example sentences of "roc.analysis", I find that if I set different parameter ranges (1-5 or 2-4), I get different sensitivity, specificity, etc. This phenomenon also occurs on "memapp" when I adjust the parameters from 1-5 to 2-4.
It seems to be related to "i.detection.values".
For the "mem" program, if I want to use the "fixed criterium method" to optimize the model and set the parameters to range from 2-4, which parameter do I need to set ("i.detection.value" or "i.param") , or they need to set the same range?
微信截图_20220824051803

@13367356107
Copy link
Author

13367356107 commented Aug 23, 2022

When I set "i.detection.values" it iterates from 1 to 5 regardless of the parameter range. Using the same criteria to select optimal parameters, Youden's index, results will vary due to differences in specificity and sensitivity. Setting a different "i.param.values" parameter range does not affect the result. The results for specificity and sensitivity were consistent. When setting different "i.param.values" parameter ranges does not affect the result. The results of specificity and sensitivity were consistent.
My problem may be not understanding the difference and connection between "i.param.values" and "i.detection.values".
微信截图_20220824060811

@lozalojo
Copy link
Owner

Moved to:

#6

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

No branches or pull requests

3 participants