cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
%3CLINGO-SUB%20id%3D%22lingo-sub-798728%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%5BJSL%5D%20%EB%AA%A9%EB%A1%9D%20%EC%83%81%EC%9E%90%EC%9D%98%20%EC%97%B4%EC%97%90%20%EB%8D%94%20%EB%A7%8E%EC%9D%80%20%EC%A0%95%EB%B3%B4%20%EC%B6%94%EA%B0%80()%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-798728%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%EC%95%88%EB%85%95%ED%95%98%EC%84%B8%EC%9A%94%2C%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3EList%20Box()%EC%97%90%EC%84%9C%20%EB%8D%B0%EC%9D%B4%ED%84%B0%20%ED%85%8C%EC%9D%B4%EB%B8%94%EC%9D%98%20%EC%9D%BC%EB%B6%80%20%EB%B2%94%EC%A3%BC%ED%98%95%20%EC%9A%94%EC%86%8C%EB%A5%BC%20%EC%84%A0%ED%83%9D%ED%95%98%EB%8F%84%EB%A1%9D%20%EC%82%AC%EC%9A%A9%EC%9E%90%EC%97%90%EA%B2%8C%20%EC%9A%94%EC%B2%AD%ED%95%98%EA%B8%B0%20%EC%9C%84%ED%95%B4%20New%20Window()%EB%A5%BC%20%ED%91%9C%EC%8B%9C%ED%95%98%EB%A0%A4%EA%B3%A0%20%ED%95%A9%EB%8B%88%EB%8B%A4.%3C%2FP%3E%3CP%3E%EC%9D%B4%20%EC%84%A0%ED%83%9D%EC%97%90%20%EB%8C%80%ED%95%B4%20%EB%8D%94%20%EB%A7%8E%EC%9D%80%20%ED%86%B5%EC%B0%B0%EB%A0%A5%EC%9D%84%20%EC%B6%94%EA%B0%80%ED%95%98%EA%B8%B0%20%EC%9C%84%ED%95%B4%20%EB%8B%A4%EC%9D%8C%20%EC%82%AC%ED%95%AD%EC%9D%84%20%EA%B0%95%EC%A1%B0%ED%95%98%EA%B3%A0%20%EC%8B%B6%EC%8A%B5%EB%8B%88%EB%8B%A4.%3C%2FP%3E%3CP%3E-%20%EA%B0%81%20%EC%9A%94%EC%9D%B8%EB%B3%84%20%EB%A0%88%EB%B2%A8%20%EC%88%98%3C%2FP%3E%3CP%3E-%20%EA%B0%81%20%EC%9A%94%EC%9D%B8%20%EC%97%B4%20%EB%82%B4%20%EB%B9%88%20%EC%85%80%EC%9D%98%20%EB%B9%84%EC%9C%A8%EC%9D%84%20%ED%91%9C%EC%8B%9C%ED%95%98%EB%8A%94%20%EC%83%89%EC%83%81%3C%2FP%3E%3CP%3E%EC%A0%9C%EA%B0%80%20%EC%84%B1%EC%B7%A8%ED%95%98%EA%B3%A0%20%EC%8B%B6%EC%9D%80%20%EA%B2%83%EC%9D%98%20%EC%98%88%EB%A5%BC%20%EC%B2%A8%EB%B6%80%EB%90%9C%20%EA%B2%83%EC%9D%84%20%EC%B0%B8%EC%A1%B0%ED%95%98%EC%84%B8%EC%9A%94.%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%EB%8B%A4%EC%9D%8C%20%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8%EC%97%90%EC%84%9C%EB%8A%94%20%EA%B0%81%20%EC%9A%94%EC%86%8C%EC%97%90%20%EB%8C%80%ED%95%9C%20%EC%A0%95%EB%B3%B4%EB%A5%BC%20%EA%B3%84%EC%82%B0%ED%95%98%EA%B3%A0%20%3CSPAN%3E%22Value%22%3C%2FSPAN%3E%20%EB%AA%A9%EB%A1%9D%EC%9D%84%20%EC%B1%84%EC%9B%81%EB%8B%88%EB%8B%A4.%3C%2FP%3E%3CP%3E%ED%95%98%EC%A7%80%EB%A7%8C%20%EC%9D%B4%20%EC%A0%95%EB%B3%B4%EB%A5%BC%20%EC%82%AC%EC%9A%A9%ED%95%98%EC%97%AC%20List%20Box()%EC%9D%98%20%EB%94%94%EC%9E%90%EC%9D%B8%EC%97%90%20%EC%A0%91%EA%B7%BC%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%84%20%EB%AA%A8%EB%A5%B4%EA%B2%A0%EC%8A%B5%EB%8B%88%EB%8B%A4.%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%EB%8F%84%EC%9B%80%EC%9D%84%20%EC%A3%BC%EC%85%94%EC%84%9C%20%EA%B0%90%EC%82%AC%ED%95%A9%EB%8B%88%EB%8B%A4%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E-%20%EC%84%A4%EA%B5%90%EC%9E%90%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F68286iED2C03AA12D41113%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(%201%20)%3B%0Aclear%20symbols()%3B%0ADeletesymbols()%3B%0A%0Adt%20%3D%20New%20Table(%20%22RawData%22%2C%0A%09Add%20Rows(%2020%20)%2C%0A%09New%20Column(%22factor1%22%2C%20Character%2C%20set%20values(%20%7B%22A%22%2C%22A%22%2C%22A%22%2C%22A%22%2C%22A%22%2C%22A%22%2C%22A%22%2C%22B%22%2C%22B%22%2C%22B%22%2C%22B%22%2C%22B%22%2C%22B%22%2C%22C%22%2C%22C%22%2C%22C%22%2C%22C%22%2C%22C%22%2C%22C%22%2C%22C%22%7D))%2C%0A%09New%20Column(%22factor2%22%2C%20Character%2C%20set%20values(%20%7B%22T0%22%2C%22DROP1%22%2C%22DROP2%22%2C%22DROP3%22%2C%22DROP4%22%2C%22DROP5%22%2C%22DROP6%22%2C%22T0%22%2C%22DROP1%22%2C%22DROP2%22%2C%22DROP3%22%2C%22DROP4%22%2C%22DROP5%22%2C%22T0%22%2C%22DROP1%22%2C%22DROP2%22%2C%22DROP3%22%2C%22DROP4%22%2C%22DROP5%22%2C%20%22DROP6%22%7D))%2C%0A%09New%20Column(%22factor3%22%2C%20Character%2C%20set%20values(%7B%221%22%2C%221%22%2C%221%22%2C%222%22%2C%222%22%2C%22%22%2C%20%2C%22%22%2C%22%22%2C%22%22%20%2C%22%22%20%2C%22%22%2C%20%22%22%2C%223%22%2C%223%22%2C%223%22%2C%223%22%7D)%20)%2C%0A%09New%20Column(%22factor4%22%2C%20Character%2C%20set%20values(%7B%22a%22%2C%22a%22%2C%22a%22%2C%20%22%22%2C%20%22%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%20%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%7D)%20)%3B%0A%09)%3B%0A%0ARawDataCol%20%3D%20dt%20%26lt%3B%26lt%3B%20get%20column%20names%20(%22character%22)%3B%0Ashow%20(RawDataCol)%3B%0A%0Afor(i%3D1%2C%20i%26lt%3B%3D%20N%20items%20(RawDataCol)%2C%20i%2B%2B%2C%0A%09FactorSummary%20%3D%20%7B%7D%3B%0A%09Eval(Eval%20Expr(FactorSummary%20%3D%20Column(dt%2C%20Expr(char(RawDataCol%5Bi%5D)))%20%26lt%3B%26lt%3B%20get%20values))%3B%0A%09%2F%2Fshow%20(FactorSummary)%3B%0A%09%0A%09%2F%2Ffind%20cell%20count%20(non%20empty)%0A%09Eval(Eval%20Expr(For(%20j%20%3D%20N%20Items(FactorSummary)%2C%20j%20%26gt%3B%200%2C%20j--%2C%0A%09%09If(%20FactorSummary%5Bj%5D%20%3D%3D%20%22%22%2C%0A%09%09%09Remove%20From(%20FactorSummary%2C%20j%2C%201%20)%0A%09%09)%0A%09)))%3B%0A%09%0A%09%2F%2FFind%20number%20of%20level%20within%20a%20factor%20(non%20empty)%0A%09Eval(Eval%20Expr(Summarize(%20LevelSummary%20%3D%20by(Column(dt%2C%20Expr(char(RawDataCol%5Bi%5D))))%20)))%3B%0A%09%09Eval(Eval%20Expr(For(%20j%20%3D%20N%20Items(LevelSummary)%2C%20j%20%26gt%3B%200%2C%20j--%2C%0A%09%09If(%20LevelSummary%5Bj%5D%20%3D%3D%20%22%22%2C%0A%09%09%09Remove%20From(%20LevelSummary%2C%20j%2C%201%20)%0A%09%09)%0A%09)))%3B%0A%09%2F%2Fshow%20(LevelSummary)%3B%0A%09%0A%09Eval(Eval%20Expr(Value%20%3D%20%7BExpr(RawDataCol%5Bi%5D)%2C%20Expr(N%20items(LevelSummary))%2C%20Expr(N%20items%20(FactorSummary)%20%2F%20N%20row(dt))%7D))%3B%0A%09show%20(Value)%3B%0A)%3B%0A%0AMainWindow%20%3D%20New%20Window(%20%22Select%20Factors%22%2C%0A%09%26lt%3B%3CMODAL%3E%3C%2FMODAL%3E%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%3CLINGO-LABS%20id%3D%22lingo-labs-798728%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3E%EC%9E%90%EB%8F%99%ED%99%94%20%EB%B0%8F%20%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8C%85%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3C%2FCODE%3E%3CLINGO-SUB%20id%3D%22lingo-sub-798880%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3ERe%3A%20%5BJSL%5D%20%EB%AA%A9%EB%A1%9D%20%EC%83%81%EC%9E%90%EC%9D%98%20%EC%97%B4%EC%97%90%20%EB%8D%94%20%EB%A7%8E%EC%9D%80%20%EC%A0%95%EB%B3%B4%20%EC%B6%94%EA%B0%80()%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-798880%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CP%3E%EB%AA%A9%EB%A1%9D%20%EC%83%81%EC%9E%90%20%EC%82%AC%EC%9A%A9%EC%97%90%EC%84%9C%20%EC%97%AC%EB%9F%AC%20%EC%97%B4%EC%9D%84%20%ED%91%9C%EC%8B%9C%ED%95%A0%20%EC%88%98%20%EC%9E%88%EB%8A%94%20%ED%85%8C%EC%9D%B4%EB%B8%94%20%EC%83%81%EC%9E%90%20%EC%82%AC%EC%9A%A9%EC%9C%BC%EB%A1%9C%20%EB%B3%80%EA%B2%BD%ED%95%98%EA%B2%A0%EC%8A%B5%EB%8B%88%EB%8B%A4.%3C%2FP%3E%0A%3CP%3E%EA%B0%81%20%ED%96%89%EC%97%90%20%EB%8B%A4%EB%A5%B8%20%EC%83%89%EC%83%81%EC%9D%84%20%EC%82%AC%EC%9A%A9%ED%95%98%EB%8A%94%20%EA%B2%83%EC%9D%80%20%EC%97%AC%EC%A0%84%ED%9E%88%20%E2%80%8B%E2%80%8B%EB%AC%B8%EC%A0%9C%EA%B0%80%20%EB%90%A0%20%EC%88%98%20%EC%9E%88%EC%A7%80%EB%A7%8C%2C%201%2C%202%20%EB%93%B1%EC%9D%98%20%22*%22%EB%A5%BC%20%EC%82%AC%EC%9A%A9%ED%95%98%EC%97%AC%20%EB%8B%A4%EB%A5%B8%20%EC%88%98%EC%A4%80%EC%9D%84%20%EB%82%98%ED%83%80%EB%82%B4%EB%8A%94%20%EC%97%B4%EC%9D%84%20%EC%89%BD%EA%B2%8C%20%EC%B6%94%EA%B0%80%ED%95%A0%20%EC%88%98%20%EC%9E%88%EC%8A%B5%EB%8B%88%EB%8B%A4.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-798894%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20%5BJSL%5D%20%EB%AA%A9%EB%A1%9D%20%EC%83%81%EC%9E%90%EC%9D%98%20%EC%97%B4%EC%97%90%20%EB%8D%94%20%EB%A7%8E%EC%9D%80%20%EC%A0%95%EB%B3%B4%20%EC%B6%94%EA%B0%80()%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-798894%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EList%20Box%EB%8A%94%20%EA%B0%80%EC%9E%A5%20%EC%9C%A0%EC%97%B0%ED%95%9C%20%EB%94%94%EC%8A%A4%ED%94%8C%EB%A0%88%EC%9D%B4%20%EC%83%81%EC%9E%90%EA%B0%80%20%EC%95%84%EB%8B%88%EB%A9%B0%20txnelson%EC%9D%B4%20Table%20Box%EB%A5%BC%20%EC%82%AC%EC%9A%A9%ED%95%A0%20%EC%88%98%20%EC%9E%88%EB%8B%A4%EB%8A%94%20%EB%8D%B0%20%EB%8F%99%EC%9D%98%ED%95%A9%EB%8B%88%EB%8B%A4.%20%EC%95%84%EB%9E%98%EB%8A%94%20%ED%95%9C%20%EA%B0%80%EC%A7%80%20%EC%98%88%EC%9E%85%EB%8B%88%EB%8B%A4.%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(1)%3B%0A%0Adt%20%3D%20New%20Table(%22RawData%22%2C%0A%09Add%20Rows(20)%2C%0A%09New%20Column(%22factor1%22%2C%0A%09%09Character%2C%0A%09%09set%20values(%7B%22A%22%2C%20%22A%22%2C%20%22A%22%2C%20%22A%22%2C%20%22A%22%2C%20%22A%22%2C%20%22A%22%2C%20%22B%22%2C%20%22B%22%2C%20%22B%22%2C%20%22B%22%2C%20%22B%22%2C%20%22B%22%2C%20%22C%22%2C%20%22C%22%2C%20%22C%22%2C%20%22C%22%2C%20%22C%22%2C%20%22C%22%2C%20%22C%22%7D)%0A%09)%2C%0A%09New%20Column(%22factor2%22%2C%0A%09%09Character%2C%0A%09%09set%20values(%0A%09%09%09%7B%22T0%22%2C%20%22DROP1%22%2C%20%22DROP2%22%2C%20%22DROP3%22%2C%20%22DROP4%22%2C%20%22DROP5%22%2C%20%22DROP6%22%2C%20%22T0%22%2C%20%22DROP1%22%2C%20%22DROP2%22%2C%20%22DROP3%22%2C%20%22DROP4%22%2C%20%22DROP5%22%2C%20%22T0%22%2C%20%22DROP1%22%2C%20%22DROP2%22%2C%0A%09%09%09%22DROP3%22%2C%20%22DROP4%22%2C%20%22DROP5%22%2C%20%22DROP6%22%7D%0A%09%09)%0A%09)%2C%0A%09New%20Column(%22factor3%22%2C%20Character%2C%20set%20values(%7B%221%22%2C%20%221%22%2C%20%221%22%2C%20%222%22%2C%20%222%22%2C%20%22%22%2C%20%2C%20%22%22%2C%20%22%22%2C%20%22%22%2C%20%22%22%2C%20%22%22%2C%20%22%22%2C%20%223%22%2C%20%223%22%2C%20%223%22%2C%20%223%22%7D))%2C%0A%09New%20Column(%22factor4%22%2C%20Character%2C%20set%20values(%7B%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22%22%2C%20%22%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%7D))%0A)%3B%0A%0Acols%20%3D%20dt%20%26lt%3B%26lt%3B%20get%20column%20names(%22character%22%2C%20%22string%22)%3B%0Afactors%20%3D%20%7B%7D%3B%0Afactor_counts%20%3D%20%7B%7D%3B%0Amissing_perc%20%3D%20%7B%7D%3B%0A%0AFor%20Each(%7Bcolname%7D%2C%20cols%2C%0A%09Summarize(dt%2C%20uniq%20%3D%20by(Eval(colname)))%3B%0A%09Remove%20From(uniq%2C%20Contains(uniq%2C%20%22%22))%3B%0A%09nvalues%20%3D%20Col%20Number(Column(dt%2C%20colname))%3B%0A%09Insert%20Into(factors%2C%20colname)%3B%0A%09Insert%20Into(factor_counts%2C%20N%20Items(uniq))%3B%0A%09Insert%20Into(missing_perc%2C%20(nvalues)%2F%20N%20Rows(dt))%3B%0A)%3B%0A%0Adt_factors%20%3D%20New%20Table(%22Demo%22%2C%0A%09Add%20Rows(N%20Items(factors))%2C%0A%09New%20Column(%22Factor%22%2C%20Character%2C%20Nominal%2C%20Values(factors))%2C%0A%09New%20Column(%22Count%22%2C%20Numeric%2C%20Continuous%2C%20Values(factor_counts))%2C%0A%09New%20Column(%22%25%20Non-missing%22%2C%20Numeric%2C%20Continuous%2C%20Format(%22Percent%22%2C%2012%2C%203)%2C%20Values(missing_perc))%2C%0A%09Invisible%0A)%3B%0A%0Aorange_rows%20%3D%20dt_factors%20%26lt%3B%26lt%3B%20Get%20Rows%20Where(%3A%22%25%20Non-missing%22n%20%26lt%3B%200.5)%3B%0Ayellow_rows%20%3D%20dt_factors%20%26lt%3B%26lt%3B%20Get%20Rows%20Where(0.5%20%26lt%3B%20%3A%22%25%20Non-missing%22n%20%26lt%3B%200.9)%3B%0A%0AFor%20Each(%7Bcolname%7D%2C%20dt_factors%20%26lt%3B%26lt%3B%20Get%20Column%20Names(%22String%22)%2C%0A%09Column(dt_factors%2C%20colname)%20%26lt%3B%26lt%3B%20Color%20Cells(%22Green%22)%3B%0A%09Column(dt_factors%2C%20colname)%20%26lt%3B%26lt%3B%20Color%20Cells(%22Orange%22%2C%20orange_rows)%3B%0A%09Column(dt_factors%2C%20colname)%20%26lt%3B%26lt%3B%20Color%20Cells(%22Yellow%22%2C%20yellow_rows)%3B%0A)%3B%0A%0Anw%20%3D%20New%20Window(%22Select%22%2C%0A%09H%20List%20Box(%0A%09%09Panel%20Box(%22Select%20factors%20to%20run%20the%20analysis%22%2C%0A%09%09%09bb%20%3D%20dt_factors%20%26lt%3B%26lt%3B%20get%20as%20report%0A%09%09)%2C%0A%09%09Panel%20Box(%22Actions%22%2C%0A%09%09%09Lineup%20Box(N%20Col(1)%2C%0A%09%09%09%09Button%20Box(%22OK%22%2C%0A%09%09%09%09%09tb%20%3D%20bb%20%26lt%3B%26lt%3B%20child%3B%0A%09%09%09%09%09sel_rows%20%3D%20tb%20%26lt%3B%26lt%3B%20get%20selected%20rows%3B%0A%09%09%09%09%09show(sel_rows%2C%20tb%5B1%5D%5Bsel_rows%5D)%3B%0A%09%09%09%09)%2C%0A%09%09%09%09Button%20Box(%22Cancel%22%2C%20%26lt%3B%26lt%3B%20Set%20Function(function(%7Bthis%7D%2C%20this%20%26lt%3B%26lt%3B%20close%20window)))%2C%0A%09%09%09)%0A%09%09)%0A%09)%0A)%3B%0A%0A%0AClose(dt_factors%2C%20no%20save)%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jthi_1-1726335238797.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_1-1726335238797.png%22%20style%3D%22width%3A%20368px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_1-1726335238797.png%22%20style%3D%22width%3A%20368px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_1-1726335238797.png%22%20style%3D%22width%3A%20368px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_1-1726335238797.png%22%20style%3D%22width%3A%20368px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F68307i8F3AD2C7378A693A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22jthi_1-1726335238797.png%22%20alt%3D%22jthi_1-1726335238797.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-798898%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20%5BJSL%5D%20%EB%AA%A9%EB%A1%9D%20%EC%83%81%EC%9E%90%EC%9D%98%20%EC%97%B4%EC%97%90%20%EB%8D%94%20%EB%A7%8E%EC%9D%80%20%EC%A0%95%EB%B3%B4%20%EC%B6%94%EA%B0%80()%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-798898%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%EC%95%88%EB%85%95%ED%95%98%EC%84%B8%EC%9A%94%20Jarmo%EB%8B%98%2C%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%EC%A0%80%EB%8A%94%20%EC%9D%B4%20%EC%86%94%EB%A3%A8%EC%85%98%EC%9D%B4%20%EC%A0%95%EB%A7%90%20%EB%A7%88%EC%9D%8C%EC%97%90%20%EB%93%AD%EB%8B%88%EB%8B%A4.(%EC%A0%9C%EC%95%88%ED%95%B4%20%EC%A3%BC%EC%8B%A0%20%EC%A7%90%EC%97%90%EA%B2%8C%EB%8F%84%20%EA%B0%90%EC%82%AC%EB%93%9C%EB%A6%BD%EB%8B%88%EB%8B%A4.)%3C%2FP%3E%3CP%3E%EC%A0%9C%EA%B0%80%20%EA%B3%A0%EB%A0%A4%ED%95%B4%EC%95%BC%20%ED%95%A0%20%ED%95%9C%20%EA%B0%80%EC%A7%80%EB%8A%94%20%EC%88%98%EC%8B%AD%20%EA%B0%80%EC%A7%80%EC%9D%98%20%EC%9A%94%EC%86%8C%EA%B0%80%20%EC%9E%88%EC%9D%84%20%EC%88%98%20%EC%9E%88%EB%8B%A4%EB%8A%94%20%EC%82%AC%EC%8B%A4%EC%9E%85%EB%8B%88%EB%8B%A4.%3CBR%20%2F%3E%20Table%20Box()%EC%97%90%20%EA%B3%A0%EC%A0%95%20%EB%86%92%EC%9D%B4%EB%A5%BC%20%EA%B0%95%EC%A0%9C%EB%A1%9C%20%EC%A0%81%EC%9A%A9%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%B4%20%EC%9E%88%EB%82%98%EC%9A%94%3F%3C%2FP%3E%3CP%3E%EC%98%88%EB%A5%BC%20%EB%93%A4%EC%96%B4%2C%20%EB%B3%B4%EC%9D%B4%EB%8A%94%20%ED%96%89%EC%9D%84%205%EA%B0%9C%EB%A7%8C%20%EB%A7%8C%EB%93%A4%EA%B3%A0%2C%20%EB%8D%94%20%EB%A7%8E%EC%9D%80%20%EC%82%AC%EC%9A%A9%EC%9E%90%20%EC%9E%85%EB%A0%A5(%EB%9D%BC%EB%94%94%EC%98%A4%20%EC%83%81%EC%9E%90%2C%20%EC%B2%B4%ED%81%AC%20%EC%83%81%EC%9E%90%20%EB%93%B1)%EC%9D%84%20%EC%B6%94%EA%B0%80%ED%95%98%EA%B8%B0%20%EC%9C%84%ED%95%B4%20%EA%B3%A0%EC%A0%95%EB%90%9C%20%EB%86%92%EC%9D%B4%EB%A1%9C%20%EC%8A%A4%ED%81%AC%EB%A1%A4%ED%95%A0%20%EC%88%98%20%EC%9E%88%EB%8A%94%20%EA%B8%B0%EB%8A%A5%EC%9D%B4%20%EC%9E%88%EC%8A%B5%EB%8B%88%EB%8B%A4.%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%EC%95%84%EB%9E%98%EB%8A%94%20%EB%8D%94%20%EB%A7%8E%EC%9D%80%20%ED%96%89%EC%9D%B4%20%EC%9E%88%EA%B3%A0%20%EB%AA%A8%EB%93%A0%20%ED%96%89%EC%9D%B4%20%ED%91%9C%EC%8B%9C%EB%90%98%EB%8A%94%20Table%20Box()%EC%9D%98%20%EC%98%88%EC%9E%85%EB%8B%88%EB%8B%A4(%ED%9B%A8%EC%94%AC%20%EB%8D%94%20%EB%A7%8E%EC%9D%80%20%EC%9A%94%EC%86%8C%EA%B0%80%20%EC%9E%88%EB%8A%94%20%EA%B2%BD%EC%9A%B0%20%EB%AC%B8%EC%A0%9C%EA%B0%80%20%EB%90%A9%EB%8B%88%EB%8B%A4)%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%EC%A0%95%EB%A7%90%20%EA%B0%90%EC%82%AC%ED%95%A9%EB%8B%88%EB%8B%A4%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20822px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20822px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20822px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20822px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F68309i215B5BDA35B30FA4%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(1)%3B%0A%0Adt%20%3D%20New%20Table(%22RawData%22%2C%0A%09Add%20Rows(20)%2C%0A%09New%20Column(%22factor1%22%2C%0A%09%09Character%2C%0A%09%09set%20values(%7B%22A%22%2C%20%22A%22%2C%20%22A%22%2C%20%22A%22%2C%20%22A%22%2C%20%22A%22%2C%20%22A%22%2C%20%22B%22%2C%20%22B%22%2C%20%22B%22%2C%20%22B%22%2C%20%22B%22%2C%20%22B%22%2C%20%22C%22%2C%20%22C%22%2C%20%22C%22%2C%20%22C%22%2C%20%22C%22%2C%20%22C%22%2C%20%22C%22%7D)%0A%09)%2C%0A%09New%20Column(%22factor2%22%2C%0A%09%09Character%2C%0A%09%09set%20values(%0A%09%09%09%7B%22T0%22%2C%20%22DROP1%22%2C%20%22DROP2%22%2C%20%22DROP3%22%2C%20%22DROP4%22%2C%20%22DROP5%22%2C%20%22DROP6%22%2C%20%22T0%22%2C%20%22DROP1%22%2C%20%22DROP2%22%2C%20%22DROP3%22%2C%20%22DROP4%22%2C%20%22DROP5%22%2C%20%22T0%22%2C%20%22DROP1%22%2C%20%22DROP2%22%2C%0A%09%09%09%22DROP3%22%2C%20%22DROP4%22%2C%20%22DROP5%22%2C%20%22DROP6%22%7D%0A%09%09)%0A%09)%2C%0A%09New%20Column(%22factor3%22%2C%20Character%2C%20set%20values(%7B%221%22%2C%20%221%22%2C%20%221%22%2C%20%222%22%2C%20%222%22%2C%20%22%22%2C%20%2C%20%22%22%2C%20%22%22%2C%20%22%22%2C%20%22%22%2C%20%22%22%2C%20%22%22%2C%20%223%22%2C%20%223%22%2C%20%223%22%2C%20%223%22%7D))%2C%0A%09New%20Column(%22factor4%22%2C%20Character%2C%20set%20values(%7B%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22%22%2C%20%22%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%7D))%2C%0A%09New%20Column(%22factor5%22%2C%20Character%2C%20set%20values(%7B%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22%22%2C%20%22%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%7D))%2C%0A%09New%20Column(%22factor6%22%2C%20Character%2C%20set%20values(%7B%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22%22%2C%20%22%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%7D))%2C%0A%09New%20Column(%22factor7%22%2C%20Character%2C%20set%20values(%7B%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22%22%2C%20%22%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%7D))%2C%0A%09New%20Column(%22factor8%22%2C%20Character%2C%20set%20values(%7B%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22%22%2C%20%22%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%7D))%2C%0A%09New%20Column(%22factor9%22%2C%20Character%2C%20set%20values(%7B%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22%22%2C%20%22%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%7D))%2C%0A%09New%20Column(%22factor10%22%2C%20Character%2C%20set%20values(%7B%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22%22%2C%20%22%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%7D))%2C%0A%09New%20Column(%22factor12%22%2C%20Character%2C%20set%20values(%7B%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22%22%2C%20%22%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%7D))%2C%0A%09New%20Column(%22factor13%22%2C%20Character%2C%20set%20values(%7B%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22%22%2C%20%22%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%7D))%2C%0A%09New%20Column(%22factorA%22%2C%20Character%2C%20set%20values(%7B%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22%22%2C%20%22%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%7D))%2C%0A%09New%20Column(%22factorB%22%2C%20Character%2C%20set%20values(%7B%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22%22%2C%20%22%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%7D))%2C%0A%09New%20Column(%22factorB1%22%2C%20Character%2C%20set%20values(%7B%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22%22%2C%20%22%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%7D))%2C%0A%09New%20Column(%22factorC%22%2C%20Character%2C%20set%20values(%7B%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22%22%2C%20%22%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%7D))%2C%0A%09New%20Column(%22factorD%22%2C%20Character%2C%20set%20values(%7B%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22%22%2C%20%22%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%7D))%2C%0A%09New%20Column(%22factor69%22%2C%20Character%2C%20set%20values(%7B%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22%22%2C%20%22%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%7D))%2C%0A%09New%20Column(%22factor67%22%2C%20Character%2C%20set%20values(%7B%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22%22%2C%20%22%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%7D))%2C%0A%09New%20Column(%22factor47%22%2C%20Character%2C%20set%20values(%7B%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22%22%2C%20%22%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%7D))%2C%0A%09New%20Column(%22factor56%22%2C%20Character%2C%20set%20values(%7B%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22%22%2C%20%22%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22a%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%2C%20%22b%22%7D))%0A)%3B%0A%0Acols%20%3D%20dt%20%26lt%3B%26lt%3B%20get%20column%20names(%22character%22%2C%20%22string%22)%3B%0Afactors%20%3D%20%7B%7D%3B%0Afactor_counts%20%3D%20%7B%7D%3B%0Amissing_perc%20%3D%20%7B%7D%3B%0A%0AFor%20Each(%7Bcolname%7D%2C%20cols%2C%0A%09Summarize(dt%2C%20uniq%20%3D%20by(Eval(colname)))%3B%0A%09Remove%20From(uniq%2C%20Contains(uniq%2C%20%22%22))%3B%0A%09nvalues%20%3D%20Col%20Number(Column(dt%2C%20colname))%3B%0A%09Insert%20Into(factors%2C%20colname)%3B%0A%09Insert%20Into(factor_counts%2C%20N%20Items(uniq))%3B%0A%09Insert%20Into(missing_perc%2C%20(nvalues)%2F%20N%20Rows(dt))%3B%0A)%3B%0A%0Adt_factors%20%3D%20New%20Table(%22Demo%22%2C%0A%09Add%20Rows(N%20Items(factors))%2C%0A%09New%20Column(%22Factor%22%2C%20Character%2C%20Nominal%2C%20Values(factors))%2C%0A%09New%20Column(%22Count%22%2C%20Numeric%2C%20Continuous%2C%20Values(factor_counts))%2C%0A%09New%20Column(%22%25%20Non-missing%22%2C%20Numeric%2C%20Continuous%2C%20Format(%22Percent%22%2C%2012%2C%203)%2C%20Values(missing_perc))%2C%0A%09Invisible%0A)%3B%0A%0Aorange_rows%20%3D%20dt_factors%20%26lt%3B%26lt%3B%20Get%20Rows%20Where(%3A%22%25%20Non-missing%22n%20%26lt%3B%200.5)%3B%0Ayellow_rows%20%3D%20dt_factors%20%26lt%3B%26lt%3B%20Get%20Rows%20Where(0.5%20%26lt%3B%20%3A%22%25%20Non-missing%22n%20%26lt%3B%200.9)%3B%0A%0AFor%20Each(%7Bcolname%7D%2C%20dt_factors%20%26lt%3B%26lt%3B%20Get%20Column%20Names(%22String%22)%2C%0A%09Column(dt_factors%2C%20colname)%20%26lt%3B%26lt%3B%20Color%20Cells(%22Green%22)%3B%0A%09Column(dt_factors%2C%20colname)%20%26lt%3B%26lt%3B%20Color%20Cells(%22Orange%22%2C%20orange_rows)%3B%0A%09Column(dt_factors%2C%20colname)%20%26lt%3B%26lt%3B%20Color%20Cells(%22Yellow%22%2C%20yellow_rows)%3B%0A)%3B%0A%0Anw%20%3D%20New%20Window(%22Select%22%2C%0A%09H%20List%20Box(%0A%09%09Panel%20Box(%22Select%20factors%20to%20run%20the%20analysis%22%2C%0A%09%09%09bb%20%3D%20dt_factors%20%26lt%3B%26lt%3B%20get%20as%20report%0A%09%09)%2C%0A%09%09Panel%20Box(%22Actions%22%2C%0A%09%09%09Lineup%20Box(N%20Col(1)%2C%0A%09%09%09%09Button%20Box(%22OK%22%2C%0A%09%09%09%09%09tb%20%3D%20bb%20%26lt%3B%26lt%3B%20child%3B%0A%09%09%09%09%09sel_rows%20%3D%20tb%20%26lt%3B%26lt%3B%20get%20selected%20rows%3B%0A%09%09%09%09%09show(sel_rows%2C%20tb%5B1%5D%5Bsel_rows%5D)%3B%0A%09%09%09%09)%2C%0A%09%09%09%09Button%20Box(%22Cancel%22%2C%20%26lt%3B%26lt%3B%20Set%20Function(function(%7Bthis%7D%2C%20this%20%26lt%3B%26lt%3B%20close%20window)))%2C%0A%09%09%09)%0A%09%09)%0A%09)%0A)%3B%0A%0A%0AClose(dt_factors%2C%20no%20save)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-798935%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20%5BJSL%5D%20%EB%AA%A9%EB%A1%9D%20%EC%83%81%EC%9E%90%EC%9D%98%20%EC%97%B4%EC%97%90%20%EB%8D%94%20%EB%A7%8E%EC%9D%80%20%EC%A0%95%EB%B3%B4%20%EC%B6%94%EA%B0%80()%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-798935%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8C%85%20%EC%9D%B8%EB%8D%B1%EC%8A%A4%EB%A5%BC%20%EC%82%B4%ED%8E%B4%EB%B3%B4%EA%B3%A0%20%ED%85%8C%EC%9D%B4%EB%B8%94%20%EC%83%81%EC%9E%90%EB%A5%BC%20%EA%B2%80%EC%83%89%ED%95%98%EB%A9%B4%20%ED%91%9C%EC%8B%9C%20%EC%A4%84%20%EC%88%98%EB%A5%BC%20%EC%84%A4%EC%A0%95%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%97%90%20%EB%8C%80%ED%95%9C%20%EC%98%88%EB%A5%BC%20%EB%B3%BC%20%EC%88%98%20%EC%9E%88%EC%8A%B5%EB%8B%88%EB%8B%A4.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-798936%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20%5BJSL%5D%20%EB%AA%A9%EB%A1%9D%20%EC%83%81%EC%9E%90%EC%9D%98%20%EC%97%B4%EC%97%90%20%EB%8D%94%20%EB%A7%8E%EC%9D%80%20%EC%A0%95%EB%B3%B4%20%EC%B6%94%EA%B0%80()%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-798936%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%EC%95%88%EB%85%95%ED%95%98%EC%84%B8%EC%9A%94%20%EC%A7%90%2C%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%EB%84%A4!%20%EB%AA%85%EB%A0%B9%20%3CSPAN%3E%26lt%3B%26lt%3B%3C%2FSPAN%3E%20set%20scrollable%20%3CSPAN%3E(%3C%2FSPAN%3E%20%3CSPAN%3E5%3C%2FSPAN%3E%20%3CSPAN%3E%2C%3C%2FSPAN%3E%20%3CSPAN%3E0%3C%2FSPAN%3E%20%3CSPAN%3E)%3B%20%EB%A1%9C%20%EB%AC%B8%EC%A0%9C%EA%B0%80%20%ED%95%B4%EA%B2%B0%EB%90%98%EC%97%88%EC%8A%B5%EB%8B%88%EB%8B%A4.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%EC%A0%95%EB%A7%90%20%EA%B3%A0%EB%A7%99%EC%8A%B5%EB%8B%88%EB%8B%A4!!%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%3CSPAN%3E%EC%A4%84%EB%A6%AC%EC%95%99%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
Voizingu
Level III

[JSL] Add more info to Columns in a List Box ()

Hello,

 

I am trying to display a New Window() to request the user to select some categorical factors from a data table in a List Box().

I would like to add more insight to this choice, by highlighting:

- the number of level for each factors

- a color to show the ratio of empty cells within each factors columns

see attached an example of what I would like to achieve.

 

In the following script, I calculate the info for each factor and populate a list "Value".

But then I don't know how to aproach the design of the List Box () with these infos

 

Thanks for your help

 

- voiz

image.png

 

Names Default To Here( 1 );
clear symbols();
Deletesymbols();

dt = New Table( "RawData",
	Add Rows( 20 ),
	New Column("factor1", Character, set values( {"A","A","A","A","A","A","A","B","B","B","B","B","B","C","C","C","C","C","C","C"})),
	New Column("factor2", Character, set values( {"T0","DROP1","DROP2","DROP3","DROP4","DROP5","DROP6","T0","DROP1","DROP2","DROP3","DROP4","DROP5","T0","DROP1","DROP2","DROP3","DROP4","DROP5", "DROP6"})),
	New Column("factor3", Character, set values({"1","1","1","2","2","", ,"","","" ,"" ,"", "","3","3","3","3"}) ),
	New Column("factor4", Character, set values({"a","a","a", "", "", "a", "a", "a", "a", "a", "a", "b", "b", "b", "b" , "b", "b", "b", "b"}) );
	);

RawDataCol = dt << get column names ("character");
show (RawDataCol);

for(i=1, i<= N items (RawDataCol), i++,
	FactorSummary = {};
	Eval(Eval Expr(FactorSummary = Column(dt, Expr(char(RawDataCol[i]))) << get values));
	//show (FactorSummary);
	
	//find cell count (non empty)
	Eval(Eval Expr(For( j = N Items(FactorSummary), j > 0, j--,
		If( FactorSummary[j] == "",
			Remove From( FactorSummary, j, 1 )
		)
	)));
	
	//Find number of level within a factor (non empty)
	Eval(Eval Expr(Summarize( LevelSummary = by(Column(dt, Expr(char(RawDataCol[i])))) )));
		Eval(Eval Expr(For( j = N Items(LevelSummary), j > 0, j--,
		If( LevelSummary[j] == "",
			Remove From( LevelSummary, j, 1 )
		)
	)));
	//show (LevelSummary);
	
	Eval(Eval Expr(Value = {Expr(RawDataCol[i]), Expr(N items(LevelSummary)), Expr(N items (FactorSummary) / N row(dt))}));
	show (Value);
);

MainWindow = New Window( "Select Factors",
	<<Modal,
	<<ReturnResult,
		V List Box(Align(center),
			Panel Box( "Select factors to run the analysis", 
				Lineup Box( N Col( 2 ), Spacing( 5 ), 
				PickData = List Box( RawDataCol ) ) )
));
1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: [JSL] Add more info to Columns in a List Box ()

List Box isn't the most flexible display box and I agree with txnelson that that you could use Table Box. Below is one example

Names Default To Here(1);

dt = New Table("RawData",
	Add Rows(20),
	New Column("factor1",
		Character,
		set values({"A", "A", "A", "A", "A", "A", "A", "B", "B", "B", "B", "B", "B", "C", "C", "C", "C", "C", "C", "C"})
	),
	New Column("factor2",
		Character,
		set values(
			{"T0", "DROP1", "DROP2", "DROP3", "DROP4", "DROP5", "DROP6", "T0", "DROP1", "DROP2", "DROP3", "DROP4", "DROP5", "T0", "DROP1", "DROP2",
			"DROP3", "DROP4", "DROP5", "DROP6"}
		)
	),
	New Column("factor3", Character, set values({"1", "1", "1", "2", "2", "", , "", "", "", "", "", "", "3", "3", "3", "3"})),
	New Column("factor4", Character, set values({"a", "a", "a", "", "", "a", "a", "a", "a", "a", "a", "b", "b", "b", "b", "b", "b", "b", "b"}))
);

cols = dt << get column names("character", "string");
factors = {};
factor_counts = {};
missing_perc = {};

For Each({colname}, cols,
	Summarize(dt, uniq = by(Eval(colname)));
	Remove From(uniq, Contains(uniq, ""));
	nvalues = Col Number(Column(dt, colname));
	Insert Into(factors, colname);
	Insert Into(factor_counts, N Items(uniq));
	Insert Into(missing_perc, (nvalues)/ N Rows(dt));
);

dt_factors = New Table("Demo",
	Add Rows(N Items(factors)),
	New Column("Factor", Character, Nominal, Values(factors)),
	New Column("Count", Numeric, Continuous, Values(factor_counts)),
	New Column("% Non-missing", Numeric, Continuous, Format("Percent", 12, 3), Values(missing_perc)),
	Invisible
);

orange_rows = dt_factors << Get Rows Where(:"% Non-missing"n < 0.5);
yellow_rows = dt_factors << Get Rows Where(0.5 < :"% Non-missing"n < 0.9);

For Each({colname}, dt_factors << Get Column Names("String"),
	Column(dt_factors, colname) << Color Cells("Green");
	Column(dt_factors, colname) << Color Cells("Orange", orange_rows);
	Column(dt_factors, colname) << Color Cells("Yellow", yellow_rows);
);

nw = New Window("Select",
	H List Box(
		Panel Box("Select factors to run the analysis",
			bb = dt_factors << get as report
		),
		Panel Box("Actions",
			Lineup Box(N Col(1),
				Button Box("OK",
					tb = bb << child;
					sel_rows = tb << get selected rows;
					show(sel_rows, tb[1][sel_rows]);
				),
				Button Box("Cancel", << Set Function(function({this}, this << close window))),
			)
		)
	)
);


Close(dt_factors, no save);

jthi_1-1726335238797.png

 

-Jarmo

View solution in original post

5 REPLIES 5
txnelson
Super User

Re: [JSL] Add more info to Columns in a List Box ()

I would change from using a list box to using a Table Box which will allow you to have multiple columns displayed

Using different colors for different rows will remain an issue, however you can easily add in a column that you can have that has 1, 2, etc "*" to indicate different levels.

Jim
jthi
Super User

Re: [JSL] Add more info to Columns in a List Box ()

List Box isn't the most flexible display box and I agree with txnelson that that you could use Table Box. Below is one example

Names Default To Here(1);

dt = New Table("RawData",
	Add Rows(20),
	New Column("factor1",
		Character,
		set values({"A", "A", "A", "A", "A", "A", "A", "B", "B", "B", "B", "B", "B", "C", "C", "C", "C", "C", "C", "C"})
	),
	New Column("factor2",
		Character,
		set values(
			{"T0", "DROP1", "DROP2", "DROP3", "DROP4", "DROP5", "DROP6", "T0", "DROP1", "DROP2", "DROP3", "DROP4", "DROP5", "T0", "DROP1", "DROP2",
			"DROP3", "DROP4", "DROP5", "DROP6"}
		)
	),
	New Column("factor3", Character, set values({"1", "1", "1", "2", "2", "", , "", "", "", "", "", "", "3", "3", "3", "3"})),
	New Column("factor4", Character, set values({"a", "a", "a", "", "", "a", "a", "a", "a", "a", "a", "b", "b", "b", "b", "b", "b", "b", "b"}))
);

cols = dt << get column names("character", "string");
factors = {};
factor_counts = {};
missing_perc = {};

For Each({colname}, cols,
	Summarize(dt, uniq = by(Eval(colname)));
	Remove From(uniq, Contains(uniq, ""));
	nvalues = Col Number(Column(dt, colname));
	Insert Into(factors, colname);
	Insert Into(factor_counts, N Items(uniq));
	Insert Into(missing_perc, (nvalues)/ N Rows(dt));
);

dt_factors = New Table("Demo",
	Add Rows(N Items(factors)),
	New Column("Factor", Character, Nominal, Values(factors)),
	New Column("Count", Numeric, Continuous, Values(factor_counts)),
	New Column("% Non-missing", Numeric, Continuous, Format("Percent", 12, 3), Values(missing_perc)),
	Invisible
);

orange_rows = dt_factors << Get Rows Where(:"% Non-missing"n < 0.5);
yellow_rows = dt_factors << Get Rows Where(0.5 < :"% Non-missing"n < 0.9);

For Each({colname}, dt_factors << Get Column Names("String"),
	Column(dt_factors, colname) << Color Cells("Green");
	Column(dt_factors, colname) << Color Cells("Orange", orange_rows);
	Column(dt_factors, colname) << Color Cells("Yellow", yellow_rows);
);

nw = New Window("Select",
	H List Box(
		Panel Box("Select factors to run the analysis",
			bb = dt_factors << get as report
		),
		Panel Box("Actions",
			Lineup Box(N Col(1),
				Button Box("OK",
					tb = bb << child;
					sel_rows = tb << get selected rows;
					show(sel_rows, tb[1][sel_rows]);
				),
				Button Box("Cancel", << Set Function(function({this}, this << close window))),
			)
		)
	)
);


Close(dt_factors, no save);

jthi_1-1726335238797.png

 

-Jarmo
Voizingu
Level III

Re: [JSL] Add more info to Columns in a List Box ()

Hi Jarmo, 

 

I like this solution a lot (Thanks also Jim for the suggestion).

One thing I need to take in account is the fact that I might have multiple dozen of factors.
Is there a way to force a fixed height for Table Box() ?

For instance, only 5 visible row and the ability to scroll down to have a fixed height in order to add more user inputs (radio box, check box, etc...).

 

Below an example of Table Box () with more rows and all of them are visible (it will become an issue with much more factors)

 

Thanks a lot

 

image.png 

 

Names Default To Here(1);

dt = New Table("RawData",
	Add Rows(20),
	New Column("factor1",
		Character,
		set values({"A", "A", "A", "A", "A", "A", "A", "B", "B", "B", "B", "B", "B", "C", "C", "C", "C", "C", "C", "C"})
	),
	New Column("factor2",
		Character,
		set values(
			{"T0", "DROP1", "DROP2", "DROP3", "DROP4", "DROP5", "DROP6", "T0", "DROP1", "DROP2", "DROP3", "DROP4", "DROP5", "T0", "DROP1", "DROP2",
			"DROP3", "DROP4", "DROP5", "DROP6"}
		)
	),
	New Column("factor3", Character, set values({"1", "1", "1", "2", "2", "", , "", "", "", "", "", "", "3", "3", "3", "3"})),
	New Column("factor4", Character, set values({"a", "a", "a", "", "", "a", "a", "a", "a", "a", "a", "b", "b", "b", "b", "b", "b", "b", "b"})),
	New Column("factor5", Character, set values({"a", "a", "a", "", "", "a", "a", "a", "a", "a", "a", "b", "b", "b", "b", "b", "b", "b", "b"})),
	New Column("factor6", Character, set values({"a", "a", "a", "", "", "a", "a", "a", "a", "a", "a", "b", "b", "b", "b", "b", "b", "b", "b"})),
	New Column("factor7", Character, set values({"a", "a", "a", "", "", "a", "a", "a", "a", "a", "a", "b", "b", "b", "b", "b", "b", "b", "b"})),
	New Column("factor8", Character, set values({"a", "a", "a", "", "", "a", "a", "a", "a", "a", "a", "b", "b", "b", "b", "b", "b", "b", "b"})),
	New Column("factor9", Character, set values({"a", "a", "a", "", "", "a", "a", "a", "a", "a", "a", "b", "b", "b", "b", "b", "b", "b", "b"})),
	New Column("factor10", Character, set values({"a", "a", "a", "", "", "a", "a", "a", "a", "a", "a", "b", "b", "b", "b", "b", "b", "b", "b"})),
	New Column("factor12", Character, set values({"a", "a", "a", "", "", "a", "a", "a", "a", "a", "a", "b", "b", "b", "b", "b", "b", "b", "b"})),
	New Column("factor13", Character, set values({"a", "a", "a", "", "", "a", "a", "a", "a", "a", "a", "b", "b", "b", "b", "b", "b", "b", "b"})),
	New Column("factorA", Character, set values({"a", "a", "a", "", "", "a", "a", "a", "a", "a", "a", "b", "b", "b", "b", "b", "b", "b", "b"})),
	New Column("factorB", Character, set values({"a", "a", "a", "", "", "a", "a", "a", "a", "a", "a", "b", "b", "b", "b", "b", "b", "b", "b"})),
	New Column("factorB1", Character, set values({"a", "a", "a", "", "", "a", "a", "a", "a", "a", "a", "b", "b", "b", "b", "b", "b", "b", "b"})),
	New Column("factorC", Character, set values({"a", "a", "a", "", "", "a", "a", "a", "a", "a", "a", "b", "b", "b", "b", "b", "b", "b", "b"})),
	New Column("factorD", Character, set values({"a", "a", "a", "", "", "a", "a", "a", "a", "a", "a", "b", "b", "b", "b", "b", "b", "b", "b"})),
	New Column("factor69", Character, set values({"a", "a", "a", "", "", "a", "a", "a", "a", "a", "a", "b", "b", "b", "b", "b", "b", "b", "b"})),
	New Column("factor67", Character, set values({"a", "a", "a", "", "", "a", "a", "a", "a", "a", "a", "b", "b", "b", "b", "b", "b", "b", "b"})),
	New Column("factor47", Character, set values({"a", "a", "a", "", "", "a", "a", "a", "a", "a", "a", "b", "b", "b", "b", "b", "b", "b", "b"})),
	New Column("factor56", Character, set values({"a", "a", "a", "", "", "a", "a", "a", "a", "a", "a", "b", "b", "b", "b", "b", "b", "b", "b"}))
);

cols = dt << get column names("character", "string");
factors = {};
factor_counts = {};
missing_perc = {};

For Each({colname}, cols,
	Summarize(dt, uniq = by(Eval(colname)));
	Remove From(uniq, Contains(uniq, ""));
	nvalues = Col Number(Column(dt, colname));
	Insert Into(factors, colname);
	Insert Into(factor_counts, N Items(uniq));
	Insert Into(missing_perc, (nvalues)/ N Rows(dt));
);

dt_factors = New Table("Demo",
	Add Rows(N Items(factors)),
	New Column("Factor", Character, Nominal, Values(factors)),
	New Column("Count", Numeric, Continuous, Values(factor_counts)),
	New Column("% Non-missing", Numeric, Continuous, Format("Percent", 12, 3), Values(missing_perc)),
	Invisible
);

orange_rows = dt_factors << Get Rows Where(:"% Non-missing"n < 0.5);
yellow_rows = dt_factors << Get Rows Where(0.5 < :"% Non-missing"n < 0.9);

For Each({colname}, dt_factors << Get Column Names("String"),
	Column(dt_factors, colname) << Color Cells("Green");
	Column(dt_factors, colname) << Color Cells("Orange", orange_rows);
	Column(dt_factors, colname) << Color Cells("Yellow", yellow_rows);
);

nw = New Window("Select",
	H List Box(
		Panel Box("Select factors to run the analysis",
			bb = dt_factors << get as report
		),
		Panel Box("Actions",
			Lineup Box(N Col(1),
				Button Box("OK",
					tb = bb << child;
					sel_rows = tb << get selected rows;
					show(sel_rows, tb[1][sel_rows]);
				),
				Button Box("Cancel", << Set Function(function({this}, this << close window))),
			)
		)
	)
);


Close(dt_factors, no save);
txnelson
Super User

Re: [JSL] Add more info to Columns in a List Box ()

look in the scripting index and search on table box and you will see the examples on how to set the number of display lines

Jim
Voizingu
Level III

Re: [JSL] Add more info to Columns in a List Box ()

Hi Jim,

 

YES!, the command << set scrollable( 5, 0 ); solve my issue.

Thanks so much!!

 

Julien