hello
Need help w/ a JSL script that is so far created w/ the help of GPT4.0 but is not working.
Script purpose: Take a single journal of analysis and extract data from it to a csv.
In this first round I am focused on journals containing only categorical analysis.
The journal may contain 1 or multiple categorical table for a categorical variable, followed by a shared chart and a frequency chart. I am only interested in extracting data from the tables. My actual implementation deals w/ a multinomial class of 5 classes however in the sample journal and script, I have reduced that to 2 classes (binary) for simplicity.
The categorical table contains 3 rows for a given parameter value : count, percent and pvalue. I am only interested in extracting percent values if and only if pvalue<= 0.05
I need to store the outputs to a csv w/ format:
journal name, parameter name, parameter value1, percent class0, percent class1
journal name, parameter name, parameter value2, percent class0, percent class1
The script should understand number of categorical tables present in that journal and then extract all table information (only for pvalues<= 0.05)
For anyone w/ limited time to look into this;
the script runs w/o an error but does not extract data as expected.
the main problem is at the end of the script (rows 155-175) . .Two functions are built to process based on Type(journal) . I think it gets the Type correctly but is unable to connect to the functions properly
note: My phase 2 will consist of similar intent but w/ journals containing logistic regression results
I have not posted that yet. I rather see this one resolved first.
Attached you will find Aircraft Incidents journal from the JMP sample data library and a sample script adapted to try for 2 class levels.
Much appreciated
Altug Bayram