OHDSI / PheValuator

An R package for evaluating phenotype algorithms.
https://ohdsi.github.io/PheValuator/
17 stars 6 forks source link

R code Execution error and NULL file as output instead of csv #25

Closed SSMK-wq closed 4 years ago

SSMK-wq commented 4 years ago

Hi,

I had this error while executing the testPhenotypeAlgorithm function. This is how my code looks like for this function

phenoResult <- PheValuator::testPhenotypeAlgorithm(connectionDetails = connectionDetails,
                                                   cutPoints = c("EV"),
                                                   evaluationOutputFileName = "C:/Users/test1/Desktop/DQD/Phevaluator/eval_output.rds",
                                                   phenotypeCohortId = 74,
                                                   phenotypeText = "T2DM",
                                                   modelText = ">= condes",
                                                   xSpecCohort = 104,
                                                   xSensCohort = 104,
                                                   prevalenceCohort = 104,
                                                   cdmShortName = "cdm",  # i have just given the cdm schema name here
                                                   cohortDatabaseSchema = "results",
                                                   cohortTable = "cohort",
                                                   washoutPeriod = 0)

This is how the error message looks like

image

and produces a "NULL" file like below but no csv.

image

Is it due to the dataset again? can't be because I had around 985 cases in XSpec and Noisy Negatives. Hence model was built and everything. There was no warning message which would happen when we have low number cases. So I guess count shouldn't be the problem.

Can help me know what's causing this issue?

SSMK-wq commented 4 years ago

looks like this was an intermittent issue and can be closed.