cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
%3CLINGO-SUB%20id%3D%22lingo-sub-777147%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ECDF%20%ED%94%8C%EB%A1%AF%EC%9D%98%20%EC%A7%80%EC%A0%95%EB%90%9C%20%EA%B0%92%EC%97%90%EC%84%9C%20%EC%A0%95%ED%99%95%ED%95%9C%20%EB%88%84%EC%A0%81%20Prob%EB%A5%BC%20%EC%96%BB%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-777147%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%EC%B2%A8%EB%B6%80%EB%90%9C%20%EC%98%88%EC%9D%98%20%EA%B2%BD%EC%9A%B0%20CDF%20Plot%EC%97%90%EC%84%9C%20%EC%A7%80%EC%A0%95%EB%90%9C%20%EA%B0%92(500)%EC%97%90%EC%84%9C%20%EC%A0%95%ED%99%95%ED%95%9C%20%EB%88%84%EC%A0%81%20Prob%EB%A5%BC%20%EC%96%BB%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F%3C%2FP%3E%3CP%3E%EA%B0%90%EC%82%AC%ED%95%B4%EC%9A%94!%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ChernoffTurtle7_0-1722227853858.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ChernoffTurtle7_0-1722227853858.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ChernoffTurtle7_0-1722227853858.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ChernoffTurtle7_0-1722227853858.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ChernoffTurtle7_0-1722227853858.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ChernoffTurtle7_0-1722227853858.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F66569iF853436BCFAC23FE%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ChernoffTurtle7_0-1722227853858.png%22%20alt%3D%22ChernoffTurtle7_0-1722227853858.png%22%20%2F%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%3CP%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-777147%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3E%EA%B8%B0%EB%B3%B8%20%EB%8D%B0%EC%9D%B4%ED%84%B0%20%EB%B6%84%EC%84%9D%20%EB%B0%8F%20%EB%AA%A8%EB%8D%B8%EB%A7%81%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-777169%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20CDF%20%ED%94%8C%EB%A1%AF%EC%9D%98%20%EC%A7%80%EC%A0%95%EB%90%9C%20%EA%B0%92%EC%97%90%EC%84%9C%20%EC%A0%95%ED%99%95%ED%95%9C%20%EB%88%84%EC%A0%81%20Prob%EB%A5%BC%20%EC%96%BB%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-777169%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%ED%95%9C%20%EA%B0%80%EC%A7%80%20%EC%98%B5%EC%85%98%EC%9D%80%20%EC%8B%AD%EC%9E%90%ED%98%95%20%EB%8F%84%EA%B5%AC%20%EB%AA%A8%EC%9D%8C%20%EB%8F%84%EA%B5%AC%EB%A5%BC%20%EC%82%AC%EC%9A%A9%ED%95%98%EB%8A%94%20%EA%B2%83%EC%9E%85%EB%8B%88%EB%8B%A4.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jthi_0-1722229523647.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1722229523647.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1722229523647.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1722229523647.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1722229523647.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F66570iFD06548A1752CF29%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22jthi_0-1722229523647.png%22%20alt%3D%22jthi_0-1722229523647.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-777203%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20CDF%20%ED%94%8C%EB%A1%AF%EC%9D%98%20%EC%A7%80%EC%A0%95%EB%90%9C%20%EA%B0%92%EC%97%90%EC%84%9C%20%EC%A0%95%ED%99%95%ED%95%9C%20%EB%88%84%EC%A0%81%20Prob%EB%A5%BC%20%EC%96%BB%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-777203%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8%EB%A5%BC%20%EC%9E%91%EC%84%B1%ED%95%98%EC%97%AC%20%EB%8C%80%EB%9E%B5%EC%A0%81%EC%9D%B8%20%EA%B0%92%EC%9D%84%20%EC%96%BB%EC%9D%84%20%EC%88%98%EB%8F%84%20%EC%9E%88%EC%8A%B5%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%20Open(%22%24SAMPLE_DATA%2FSemiconductor%20Capability.jmp%22)%3B%0A%0Adist%20%3D%20dt%20%26lt%3B%26lt%3B%20Distribution(Column(%3ANPN1)%2C%20CDF%20Plot(1))%3B%0Afb%20%3D%20Report(dist)%5B%22CDF%20Plot%22%2CFrameBox(1)%5D%3B%0A%0Als%20%3D%20fb%20%26lt%3B%26lt%3B%20Find%20Seg(LinesSeg(1))%3B%0A%0Am%20%3D%20ls%20%26lt%3B%26lt%3B%20get%20lines%3B%0A%0Axval%20%3D%20115%3B%0A%0Aidx%20%3D%20Loc%20Min(m%5B0%2C%201%5D%20-%20xval%20%26lt%3B%200)%20-%201%3B%0Aval%20%3D%20m%5Bidx%2C%202%5D%3B%0A%0Ashow(val)%3B%0A%0A%2F%2F%20Report(dist)%5B%22CDF%20Plot%22%2CAxisBox(1)%5D%20%26lt%3B%26lt%3B%20Add%20Ref%20Line(val)%3B%0A%2F%2F%20Report(dist)%5B%22CDF%20Plot%22%2CAxisBox(2)%5D%20%26lt%3B%26lt%3B%20Add%20Ref%20Line(xval)%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3Em%20%ED%96%89%EB%A0%AC%EC%97%90%EC%84%9C%20%ED%8A%B9%EC%A0%95%20%EA%B0%92%EC%9D%B4%20%EA%B3%84%EC%82%B0%EB%90%98%EB%8A%94%20%EB%B0%A9%EC%8B%9D%EC%9D%84%20%EB%85%BC%EB%A6%AC%ED%99%94%ED%95%98%EA%B3%A0%20%EC%8B%B6%EC%9D%84%20%EC%88%98%EB%8F%84%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-777208%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20CDF%20%ED%94%8C%EB%A1%AF%EC%9D%98%20%EC%A7%80%EC%A0%95%EB%90%9C%20%EA%B0%92%EC%97%90%EC%84%9C%20%EC%A0%95%ED%99%95%ED%95%9C%20%EB%88%84%EC%A0%81%20Prob%EB%A5%BC%20%EC%96%BB%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-777208%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%EC%99%80%2C%20%EA%B0%95%EB%A0%A5%ED%95%98%EB%8B%A4!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-777449%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20CDF%20%ED%94%8C%EB%A1%AF%EC%9D%98%20%EC%A7%80%EC%A0%95%EB%90%9C%20%EA%B0%92%EC%97%90%EC%84%9C%20%EC%A0%95%ED%99%95%ED%95%9C%20%EB%88%84%EC%A0%81%20Prob%EB%A5%BC%20%EC%96%BB%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-777449%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%EC%9D%B4%EA%B2%83%EC%9D%80%20%EC%A3%BC%EC%A0%9C%EC%97%90%EC%84%9C%20%EB%A7%8E%EC%9D%B4%20%EB%B2%97%EC%96%B4%EB%82%98%EC%A7%80%EB%A7%8C%20LinesSeg%20%EB%8C%80%EC%8B%A0%20LineSeg%EB%A5%BC%20%EC%82%AC%EC%9A%A9%ED%95%98%EB%8A%94%20Graph%20Builder%EC%99%80%20%EB%B9%84%EC%8A%B7%ED%95%9C%20%EC%9E%91%EC%97%85%EC%9D%84%20%EC%8B%9C%EB%8F%84%ED%96%88%EC%8A%B5%EB%8B%88%EB%8B%A4.%20%EC%8A%A4%EB%AC%B4%EB%94%A9%EC%9C%BC%EB%A1%9C%20%EC%9D%B8%ED%95%B4%20%ED%9B%A8%EC%94%AC%20%E2%80%8B%E2%80%8B%EB%8D%94%20%EC%96%B4%EB%A0%A4%EC%9B%8C%EC%A7%80%EA%B3%A0%20(%EC%A0%81%EC%96%B4%EB%8F%84%20%EC%A7%80%EA%B8%88%EC%9D%80)%20%ED%8F%AC%EA%B8%B0%ED%95%B4%EC%95%BC%20%ED%95%A0%20%EB%95%8C%EC%9E%85%EB%8B%88%EB%8B%A4.%20%EC%B2%A8%EB%B6%80%EB%90%9C%20%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8%EB%8A%94%20%EC%BD%94%EB%93%9C%EC%97%90%20%EC%A3%BC%EC%84%9D%20%EC%B2%98%EB%A6%AC%EB%90%9C%20%22%EC%9E%91%EC%97%85%20%EB%A9%94%EB%AA%A8%22%20%EC%A4%91%20%EC%9D%BC%EB%B6%80%EB%A5%BC%20%EB%82%A8%EA%B2%A8%EB%91%90%EC%97%88%EA%B3%A0%20%EC%BD%94%EB%93%9C%EB%8A%94%20%EC%A0%84%ED%98%80%20%EC%B5%9C%EC%A0%81%ED%99%94%EB%90%98%EC%A7%80%20%EC%95%8A%EC%95%98%EC%8A%B5%EB%8B%88%EB%8B%A4.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jthi_1-1722354318500.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_1-1722354318500.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F66611i1CE2E3D391647709%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22jthi_1-1722354318500.png%22%20alt%3D%22jthi_1-1722354318500.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CDIV%20class%3D%22lia-spoiler-container%22%3E%3CA%20class%3D%22lia-spoiler-link%22%20href%3D%22%23%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3E%EB%8D%94%EB%B3%B4%EA%B8%B0...%3C%2FA%3E%3CNOSCRIPT%3E(%EC%9D%BD%EC%9D%84%20%ED%95%98%EC%9D%B4%EB%9D%BC%EC%9D%B4%ED%8A%B8)%3C%2FNOSCRIPT%3E%3CDIV%20class%3D%22lia-spoiler-border%22%3E%3CDIV%20class%3D%22lia-spoiler-content%22%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%2F*%22%22%22%20Attempt%20to%20get%20y-value%20from%20Graph%20Builder%20LineSeg%0A%0AAuthor%3A%20jthi%0ACreation%20Date%3A%202024-07-30%0ACreation%20JMP%20Version%3A%20JMP%20Pro%2018.0.0%0A%0ADescription%3A%20%0A%09Original%20post%20which%20gave%20me%20this%20idea%20(LinesSeg)%0A%09https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FDiscussions%2FHow-to-get-exact-cumulative-Prob-at-specified-value-in-CDF-Plot%2Fm-p%2F777203%0A%09%0A%22%22%22*%2F%0A%0ANames%20Default%20To%20Here(1)%3B%0A%2F%2F%20https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FJMPer-Cable%2FUnderstanding-cubic-splines%2Fba-p%2F39511%20can%20be%20interesting%20read%0A%0Adt%20%3D%20Open(%22%24SAMPLE_DATA%2FSemiconductor%20Capability.jmp%22)%3B%0A%0Aslider_x%20%3D%20200%3B%0A%0Anw%20%3D%20New%20Window(%22Test%22%2C%0A%09V%20List%20Box(align(%22center%22)%2C%0A%09%09V%20List%20Box(%0A%09%09%09Text%20Box(%22Adjust%20to%20change%20X%22)%2C%0A%09%09%09Slider%20Box(110%2C%20530%2C%20slider_x%2C%20nw%20%26lt%3B%26lt%3B%20update%20window%2C%20%26lt%3B%26lt%3B%20Set%20Width(1000))%3B%0A%09%09)%2C%0A%09%09Text%20Box(%22Change%20graph%20builder%20smoother%20settings%20to%20see%20changes%20to%20see%20different%20fits%22)%2C%0A%09%09gb%20%3D%20dt%20%26lt%3B%26lt%3B%20Graph%20Builder(%0A%09%09%09Size(1000%2C%20600)%2C%0A%09%09%09Show%20Control%20Panel(1)%2C%0A%09%09%09Fit%20To%20Window(%22On%22)%2C%0A%09%09%09Variables(X(%3APNP1)%2C%20Y(%3ANPN1))%2C%0A%09%09%09Elements(Smoother(X%2C%20Y%2C%20Legend(4)))%0A%09%09)%3B%0A%09)%3B%0A)%3B%0A%0Afb%20%3D%20Report(gb)%5BFrameBox(1)%5D%3B%0A%0A%2F*%0Als%20%3D%20fb%20%26lt%3B%26lt%3B%20Find%20Seg(LineSeg(1))%3B%0Am_x%20%3D%20ls%20%26lt%3B%26lt%3B%20Get%20X%20Values%3B%0Am_y%20%3D%20ls%20%26lt%3B%26lt%3B%20Get%20Y%20Values%3B%0Asmooth%20%3D%20ls%20%26lt%3B%26lt%3B%20Get%20Smoothness%3B%0A%0Aidx%20%3D%20Loc%20Sorted(m_x%2C%20Matrix(xval))%5B1%5D%3B%0A%2F%2F%20%7BEstimates%2C%20Std_Error%2C%20Diagnostics%7D%20%3D%20Linear%20Regression(m_y%5Bidx%3A%3Aidx%2B1%5D%2C%20m_x%5Bidx%3A%3Aidx%2B1%5D)%3B%0A%2F%2F%20yval%20%3D%20Estimates%5B2%5D%20*%20xval%20%2B%20Estimates%5B1%5D%3B%0Aidx%20%3D%20Loc%20Sorted(m_x%2C%20Matrix(xval))%5B1%5D%3B%0Ayval%20%3D%20Interpolate(xval%2C%20m_x%2C%20m_y)%3B%0AReport(gb)%5BAxisBox(1)%5D%20%26lt%3B%26lt%3B%20Add%20Ref%20Line(xval)%3B%0AReport(gb)%5BAxisBox(2)%5D%20%26lt%3B%26lt%3B%20Add%20Ref%20Line(yval)%3B%0A*%2F%0A%0A%0A%2F*%0Am_x%5B2%3A%3AN%20Rows(m_x)%3A%3A2%5D%20-%20m_x%5B1%3A%3AN%20Rows(m_x)%20-%201%3A%3A2%5D%0Am_y%5B2%3A%3AN%20Rows(m_y)%3A%3A2%5D%20-%20m_y%5B1%3A%3AN%20Rows(m_y)%20-%201%3A%3A2%5D%0Asl%20%3D%20Spline%20Smooth(m_x%2C%20m_y%2C%20smooth)%3B%0A*%2F%0A%0A%0AReport(gb)%5BFrameBox(1)%5D%20%26lt%3B%26lt%3B%20Add%20Graphics%20Script(%0A%09ls%20%3D%20fb%20%26lt%3B%26lt%3B%20Find%20Seg(LineSeg(1))%3B%0A%09m_x%20%3D%20ls%20%26lt%3B%26lt%3B%20Get%20X%20Values%3B%0A%09m_y%20%3D%20ls%20%26lt%3B%26lt%3B%20Get%20Y%20Values%3B%0A%09Marker(Marker%20State(3)%2C%20m_x%2C%20m_y)%3B%0A%09Pen%20Size(1)%3B%0A%09Line(m_x%2C%20m_y)%3B%0A%09%0A%09yval%20%3D%20Interpolate(slider_x%2C%20m_x%2C%20m_y)%3B%0A%09%0A%09Marker%20Size(5)%3B%0A%09Marker(Marker%20State(12)%2C%20%7Bslider_x%2C%20yval%7D)%3B%0A%09V%20Line(slider_x)%3B%0A%09H%20Line(yval)%3B%0A%09%0A%09Text(Right%20Justified%2C%20Eval%20List(%7Bslider_x%2C%20yval%20%2B%201%7D)%2C%20Eval%20Insert(%22(%5ERound(slider_x%2C%203)%5E%2C%20%5ERound(yval%2C%203)%5E)%22))%3B%0A%09%0A%09peaks%20%3D%20m_y%5B1%3A%3AN%20Rows(m_y)%20-%202%5D%20%26lt%3B%20m_y%5B2%3A%3AN%20Rows(m_y)%20-%201%5D%20%26amp%3B%20m_y%5B2%3A%3AN%20Rows(m_y)%20-%201%5D%20%26gt%3B%20m_y%5B3%3A%3AN%20Rows(m_y)%5D%20%7C%0A%09m_y%5B1%3A%3AN%20Rows(m_y)%20-%202%5D%20%26gt%3B%20m_y%5B2%3A%3AN%20Rows(m_y)%20-%201%5D%20%26amp%3B%20m_y%5B2%3A%3AN%20Rows(m_y)%20-%201%5D%20%26lt%3B%20m_y%5B3%3A%3AN%20Rows(m_y)%5D%3B%0A%09peak_idx%20%3D%20Loc(peaks)%20%2B%201%3B%0A%09Marker%20Size(3)%3B%0A%09Fill%20Color(%22Red%22)%3B%0A%09Marker(Combine%20States(Color%20State(%22Red%22)%2C%20Marker%20State(15))%2C%20m_x%5Bpeak_idx%5D%2C%20m_y%5Bpeak_idx%5D)%3B%0A)%3B%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3C%2FDIV%3E%3CNOSCRIPT%3E%3CDIV%20class%3D%22lia-spoiler-noscript-container%22%3E%3CDIV%20class%3D%22lia-spoiler-noscript-content%22%3E%2F*%22%22%22%20Graph%20Builder%EC%97%90%EC%84%9C%20y%EA%B0%92%EC%9D%84%20%EC%96%BB%EC%9C%BC%EB%A0%A4%EB%8A%94%20%EC%8B%9C%EB%8F%84%20LineSeg%20%EC%9E%91%EC%84%B1%EC%9E%90%3A%20jthi%20%EC%83%9D%EC%84%B1%20%EB%82%A0%EC%A7%9C%3A%202024-07-30%20%EC%83%9D%EC%84%B1%20JMP%20%EB%B2%84%EC%A0%84%3A%20JMP%20Pro%2018.0.0%20%EC%84%A4%EB%AA%85%3A%20%EC%9D%B4%20%EC%95%84%EC%9D%B4%EB%94%94%EC%96%B4%EB%A5%BC%20%EC%A0%9C%EA%B3%B5%ED%95%9C%20%EC%9B%90%EB%B3%B8%20%EA%B2%8C%EC%8B%9C%EB%AC%BC(LinesSeg)%20https%3A%2F%20%2Fcommunity.jmp.com%2Ft5%2FDiscussions%2FHow-to-get-exact-cumulative-Prob-at-specified-value-in-CDF-Plot%2Fmp%2F777203%20%22%22%22*%2F%20%EC%9D%B4%EB%A6%84%20%EA%B8%B0%EB%B3%B8%EA%B0%92%EC%9D%80%20%EC%97%AC%EA%B8%B0(1)%20%3B%20%2F%2F%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FJMPer-Cable%2FUnderstanding-cubic-splines%2Fba-p%2F39511%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.jmp.com%2Ft5%2FJMPer-Cable%2FUnderstanding-cubic-splines%2Fba-p%2F39511%3C%2FA%3E%20%ED%9D%A5%EB%AF%B8%EB%A1%9C%EC%9A%B8%20%EC%88%98%20%EC%9E%88%EC%8A%B5%EB%8B%88%EB%8B%A4.%20dt%20%3D%20Open(%22%24SAMPLE_DATA%2FSemiconductor%20Capability.jmp%22)%3B%20%EC%8A%AC%EB%9D%BC%EC%9D%B4%EB%8D%94_x%20%3D%20200%3B%20nw%20%3D%20New%20Window(%22%ED%85%8C%EC%8A%A4%ED%8A%B8%22%2C%20V%20List%20Box(align(%22center%22)%2C%20V%20List%20Box(%20Text%20Box(%22X%EB%A5%BC%20%EB%B3%80%EA%B2%BD%ED%95%98%EB%8F%84%EB%A1%9D%20%EC%A1%B0%EC%A0%95%22)%2C%20Slider%20Box(110%2C%20530%2C%20Slider_x%2C%20nw%20%26lt%3B%26lt%3B%20%EC%97%85%EB%8D%B0%EC%9D%B4%ED%8A%B8%20%EC%B0%BD%2C%20%26lt%3B%26lt%3B%20%EB%84%88%EB%B9%84%20%EC%84%A4%EC%A0%95(1000))%20)%2C%20Text%20Box(%22%EB%8B%A4%EB%A5%B8%20%EB%A7%9E%EC%B6%A4%EC%9D%84%20%ED%99%95%EC%9D%B8%ED%95%98%EB%A0%A4%EB%A9%B4%20%EA%B7%B8%EB%9E%98%ED%94%84%20%EC%9E%91%EC%84%B1%EA%B8%B0%EC%9D%98%20%EB%B6%80%EB%93%9C%EB%9F%AC%EC%9A%B4%20%EC%84%A4%EC%A0%95%EC%9D%84%20%EB%B3%80%EA%B2%BD%ED%95%98%EC%84%B8%EC%9A%94.%22)%2C%20gb%20%3D%20dt%20%26lt%3B%26lt%3B%20%EA%B7%B8%EB%9E%98%ED%94%84%20%EC%9E%91%EC%84%B1%EA%B8%B0(%20%ED%81%AC%EA%B8%B0(1000%2C%20600)%2C%20%EC%A0%9C%EC%96%B4%ED%8C%90%20%ED%91%9C%EC%8B%9C(1)%20)%2C%20%EC%B0%BD%EC%97%90%20%EB%A7%9E%EC%B6%A4(%22%EC%BC%9C%EA%B8%B0%22)%2C%20Variables(X(%3APNP1)%2C%20Y(%3ANPN1))%2C%20Elements(Smoother(X%2C%20Y%2C%20Legend(4)))%20)%3B%20fb%20%3D%20%EB%B3%B4%EA%B3%A0%EC%84%9C(gb)%5BFrameBox(1)%5D%3B%20%2F*%20ls%20%3D%20fb%20%26lt%3B%26lt%3B%20Find%20Seg(LineSeg(1))%3B%20m_x%20%3D%20ls%20%26lt%3B%26lt%3B%20X%20%EA%B0%92%20%EA%B0%80%EC%A0%B8%EC%98%A4%EA%B8%B0%3B%20m_y%20%3D%20ls%20%26lt%3B%26lt%3B%20Y%20%EA%B0%92%20%EA%B0%80%EC%A0%B8%EC%98%A4%EA%B8%B0%3B%20smooth%20%3D%20ls%20%26lt%3B%26lt%3B%20%EB%B6%80%EB%93%9C%EB%9F%AC%EC%9B%80%20%EC%96%BB%EA%B8%B0%3B%20idx%20%3D%20Loc%20Sorted(m_x%2C%20Matrix(xval))%5B1%5D%3B%20%2F%2F%20%7B%EC%B6%94%EC%A0%95%EC%B9%98%2C%20Std_Error%2C%20%EC%A7%84%EB%8B%A8%7D%20%3D%20%EC%84%A0%ED%98%95%20%ED%9A%8C%EA%B7%80(m_y%5Bidx%3A%3Aidx%2B1%5D%2C%20m_x%5Bidx%3A%3Aidx%2B1%5D)%3B%20%2F%2F%20yval%20%3D%20%EC%B6%94%EC%A0%95%EC%B9%98%5B2%5D%20*%20xval%20%2B%20%EC%B6%94%EC%A0%95%EC%B9%98%5B1%5D%3B%20idx%20%3D%20Loc%20Sorted(m_x%2C%20Matrix(xval))%5B1%5D%3B%20yval%20%3D%20%EB%B3%B4%EA%B0%84(xval%2C%20m_x%2C%20m_y)%3B%20Report(gb)%5BAxisBox(1)%5D%20%26lt%3B%26lt%3B%20%EC%B0%B8%EC%A1%B0%EC%84%A0%20%EC%B6%94%EA%B0%80(xval)%3B%20Report(gb)%5BAxisBox(2)%5D%20%26lt%3B%26lt%3B%20%EC%B0%B8%EC%A1%B0%EC%84%A0%20%EC%B6%94%EA%B0%80(yval)%3B%20*%2F%20%2F*%20m_x%5B2%3A%3AN%20%ED%96%89(m_x)%3A%3A2%5D%20-%20m_x%5B1%3A%3AN%20%ED%96%89(m_x)%20-%201%3A%3A2%5D%20m_y%5B2%3A%3AN%20%ED%96%89(m_y)%3A%3A2%5D%20-%20m_y%5B1%3A%3AN%20%ED%96%89(m_y)%20-%201%3A%3A2%5D%20sl%20%3D%20%EC%8A%A4%ED%94%8C%EB%9D%BC%EC%9D%B8%20%EC%8A%A4%EB%AC%B4%EB%94%A9(m_x%2C%20m_y%2C%20%EC%8A%A4%EB%AC%B4%EC%8A%A4)%3B%20*%2F%20Report(gb)%5BFrameBox(1)%5D%20%26lt%3B%26lt%3B%20%EA%B7%B8%EB%9E%98%ED%94%BD%20%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8%20%EC%B6%94%EA%B0%80(%20ls%20%3D%20fb%20%26lt%3B%26lt%3B%20Find%20Seg(LineSeg(1))%3B%20m_x%20%3D%20ls%20%26lt%3B%26lt%3B%20X%20%EA%B0%92%20%EA%B0%80%EC%A0%B8%EC%98%A4%EA%B8%B0%3B%20m_y%20%3D%20ls%20%26lt%3B%26lt%3B%20Y%20%EA%B0%92%20%EA%B0%80%EC%A0%B8%EC%98%A4%EA%B8%B0%3B%20Marker(%EB%A7%88%EC%BB%A4%20%EC%83%81%ED%83%9C(3)%2C%20m_x%2C%20m_y)%3B%20Line(m_x%2C%20m_y)%3B%20Interpolate(slider_x%2C%20m_x%2C%20m_y)%3B%20%2C%20%7Bslider_x%2C%20yval%7D)%3B%20V%20Line(slider_x)%3B%20H%20Line(yval)%3B%20Text(%EC%98%A4%EB%A5%B8%EC%AA%BD%20%EB%A7%9E%EC%B6%A4%2C%20Eval%20List(%7Bslider_x%2C%20yval%20%2B%201%7D)%2C%20Eval%20Insert(%22(%5ERound(slider_x%2C%203)%5E%20%2C%20%5ERound(yval%2C%203)%5E)%22))%3B%20%ED%94%BC%ED%81%AC%20%3D%20m_y%5B1%3A%3AN%20%ED%96%89(m_y)%20-%202%5D%20%26lt%3B%20m_y%5B2%3A%3AN%20%ED%96%89(m_y)%20-%201%5D%20%26amp%3B%20m_y%5B2%3A%3AN%20%ED%96%89(m_y)%20-%201%5D%20%26gt%3B%20m_y%5B3%3A%3AN%20%ED%96%89(m_y)%5D%20%7C%20m_y%5B1%3A%3AN%20%ED%96%89(m_y)%20-%202%5D%20%26gt%3B%20m_y%5B2%3A%3AN%20%ED%96%89(m_y)%20-%201%5D%20%26amp%3B%20m_y%5B%202%3A%3AN%20%ED%96%89(m_y)%20-%201%5D%20%26lt%3B%20m_y%5B3%3A%3AN%20%ED%96%89(m_y)%5D%3B%20peak_idx%20%3D%20Loc(%ED%94%BC%ED%81%AC)%20%2B%201%3B%20%EC%B1%84%EC%9A%B0%EA%B8%B0%20%EC%83%89%EC%83%81(%22%EB%B9%A8%EA%B0%84%EC%83%89%22)%3B%20States(%EC%83%89%EC%83%81%20%EC%83%81%ED%83%9C(%22%EB%B9%A8%EA%B0%84%EC%83%89%22)%2C%20%EB%A7%88%EC%BB%A4%20%EC%83%81%ED%83%9C(15))%2C%20m_x%5Bpeak_idx%5D%2C%20m_y%5Bpeak_idx%5D)%20)%3B%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FNOSCRIPT%3E%3C%2FDIV%3E%3C%2FDIV%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
ChernoffTurtle7
Level III

How to get exact cumulative Prob at specified value in CDF Plot?

For attached example, how to get the exact cumulative Prob at specified value(500) in CDF Plot?

Thanks!

ChernoffTurtle7_0-1722227853858.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: How to get exact cumulative Prob at specified value in CDF Plot?

One option is to use Crosshair toolbar tool

jthi_0-1722229523647.png

 

-Jarmo

View solution in original post

4 REPLIES 4
jthi
Super User

Re: How to get exact cumulative Prob at specified value in CDF Plot?

One option is to use Crosshair toolbar tool

jthi_0-1722229523647.png

 

-Jarmo
jthi
Super User

Re: How to get exact cumulative Prob at specified value in CDF Plot?

You can also script it and get an approximate value

Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Semiconductor Capability.jmp");

dist = dt << Distribution(Column(:NPN1), CDF Plot(1));
fb = Report(dist)["CDF Plot",FrameBox(1)];

ls = fb << Find Seg(LinesSeg(1));

m = ls << get lines;

xval = 115;

idx = Loc Min(m[0, 1] - xval < 0) - 1;
val = m[idx, 2];

show(val);

// Report(dist)["CDF Plot",AxisBox(1)] << Add Ref Line(val);
// Report(dist)["CDF Plot",AxisBox(2)] << Add Ref Line(xval);

You might want to refine the logic how the specific value is calculated from the m matrix

-Jarmo
hogi
Level XII

Re: How to get exact cumulative Prob at specified value in CDF Plot?

wow, that's powerful!

jthi
Super User

Re: How to get exact cumulative Prob at specified value in CDF Plot?

This goes much off the topic but I tried to do something similar for Graph Builder which uses LineSeg instead of LinesSeg. Due to the smoothing it gets much more difficult and it is time for me to give up (at least for now). Attached is the script and I left some of my "working notes" as commented out code and the code isn't optimized at all.

jthi_1-1722354318500.png

 

View more...
/*""" Attempt to get y-value from Graph Builder LineSeg

Author: jthi
Creation Date: 2024-07-30
Creation JMP Version: JMP Pro 18.0.0

Description: 
	Original post which gave me this idea (LinesSeg)
	https://community.jmp.com/t5/Discussions/How-to-get-exact-cumulative-Prob-at-specified-value-in-CDF-Plot/m-p/777203
	
"""*/

Names Default To Here(1);
// https://community.jmp.com/t5/JMPer-Cable/Understanding-cubic-splines/ba-p/39511 can be interesting read

dt = Open("$SAMPLE_DATA/Semiconductor Capability.jmp");

slider_x = 200;

nw = New Window("Test",
	V List Box(align("center"),
		V List Box(
			Text Box("Adjust to change X"),
			Slider Box(110, 530, slider_x, nw << update window, << Set Width(1000));
		),
		Text Box("Change graph builder smoother settings to see changes to see different fits"),
		gb = dt << Graph Builder(
			Size(1000, 600),
			Show Control Panel(1),
			Fit To Window("On"),
			Variables(X(:PNP1), Y(:NPN1)),
			Elements(Smoother(X, Y, Legend(4)))
		);
	);
);

fb = Report(gb)[FrameBox(1)];

/*
ls = fb << Find Seg(LineSeg(1));
m_x = ls << Get X Values;
m_y = ls << Get Y Values;
smooth = ls << Get Smoothness;

idx = Loc Sorted(m_x, Matrix(xval))[1];
// {Estimates, Std_Error, Diagnostics} = Linear Regression(m_y[idx::idx+1], m_x[idx::idx+1]);
// yval = Estimates[2] * xval + Estimates[1];
idx = Loc Sorted(m_x, Matrix(xval))[1];
yval = Interpolate(xval, m_x, m_y);
Report(gb)[AxisBox(1)] << Add Ref Line(xval);
Report(gb)[AxisBox(2)] << Add Ref Line(yval);
*/


/*
m_x[2::N Rows(m_x)::2] - m_x[1::N Rows(m_x) - 1::2]
m_y[2::N Rows(m_y)::2] - m_y[1::N Rows(m_y) - 1::2]
sl = Spline Smooth(m_x, m_y, smooth);
*/


Report(gb)[FrameBox(1)] << Add Graphics Script(
	ls = fb << Find Seg(LineSeg(1));
	m_x = ls << Get X Values;
	m_y = ls << Get Y Values;
	Marker(Marker State(3), m_x, m_y);
	Pen Size(1);
	Line(m_x, m_y);
	
	yval = Interpolate(slider_x, m_x, m_y);
	
	Marker Size(5);
	Marker(Marker State(12), {slider_x, yval});
	V Line(slider_x);
	H Line(yval);
	
	Text(Right Justified, Eval List({slider_x, yval + 1}), Eval Insert("(^Round(slider_x, 3)^, ^Round(yval, 3)^)"));
	
	peaks = m_y[1::N Rows(m_y) - 2] < m_y[2::N Rows(m_y) - 1] & m_y[2::N Rows(m_y) - 1] > m_y[3::N Rows(m_y)] |
	m_y[1::N Rows(m_y) - 2] > m_y[2::N Rows(m_y) - 1] & m_y[2::N Rows(m_y) - 1] < m_y[3::N Rows(m_y)];
	peak_idx = Loc(peaks) + 1;
	Marker Size(3);
	Fill Color("Red");
	Marker(Combine States(Color State("Red"), Marker State(15)), m_x[peak_idx], m_y[peak_idx]);
);

 

 

-Jarmo