cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-478694%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ELui%20%E4%BC%B0%E8%A8%88%E5%99%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-478694%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%20JMP%20pro%20%E8%A8%88%E7%AE%97%20Liu%20%E7%9A%84%E4%BC%B0%E8%A8%88%EF%BC%9F%EF%BC%81%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E9%9A%A8%E9%99%84%E7%9A%84%3CBR%20%2F%3E%E5%BE%9E%E4%BC%8A%E6%8B%89%E5%85%8B%E5%B7%B4%E6%A0%BC%E9%81%94%E4%B8%AD%E5%A4%AE%E5%85%92%E7%AB%A5%E9%86%AB%E9%99%A2%E7%8D%B2%E5%BE%97%E7%9A%84%E7%9C%9F%E5%AF%A6%E6%95%B8%E6%93%9A%EF%BC%8C%E4%BB%A3%E8%A1%A8%E8%A9%B2%E6%99%82%E6%9C%9F%EF%BC%882006-2011%20%E5%B9%B4%EF%BC%89%E5%85%92%E7%AB%A5%E5%BF%83%E8%87%9F%E5%92%8C%E5%BE%AA%E7%92%B0%E7%B3%BB%E7%B5%B1%E5%85%88%E5%A4%A9%E6%80%A7%E7%BC%BA%E9%99%B7%E7%9A%84%E7%97%85%E4%BE%8B%E6%95%B8%E3%80%82%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E5%95%8F%E5%80%99%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-478694%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3E%E5%88%86%E6%9E%90%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%E6%95%B8%E6%93%9A%E8%A1%A8%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%E8%85%B3%E6%9C%AC%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-478871%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9ALui%20%E4%BC%B0%E8%A8%88%E5%99%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-478871%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E6%88%91%E5%9C%A8%20JMP%20%E7%9A%84%E7%B5%B1%E8%A8%88%E7%B4%A2%E5%BC%95%E4%B8%AD%E6%89%BE%E4%B8%8D%E5%88%B0%E9%80%99%E5%80%8B%E7%B5%B1%E8%A8%88%E6%95%B8%E6%93%9A%E3%80%82%20%E6%88%91%E4%B8%8D%E7%86%9F%E6%82%89%E9%80%99%E5%80%8B%E4%BC%B0%E7%AE%97%E5%99%A8%E3%80%82%20%E8%AB%8B%E6%8F%90%E4%BE%9B%E5%8F%83%E8%80%83%E3%80%82%20%E8%AC%9D%E8%AC%9D%EF%BC%81%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-479033%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9ALui%20%E4%BC%B0%E8%A8%88%E5%99%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-479033%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ELiu%E7%9A%84%E6%96%B9%E6%B3%95%E6%98%AF%E4%B8%80%E7%A8%AE%E9%A1%9E%E4%BC%BC%E6%96%BC%E5%B6%BA%E5%9B%9E%E6%AD%B8%E6%96%B9%E6%B3%95%E7%9A%84%E6%96%B9%E6%B3%95%EF%BC%8C%E7%94%A8%E6%96%BC%E5%9C%A8%E6%95%B8%E6%93%9A%E5%AD%98%E5%9C%A8%E5%A4%9A%E9%87%8D%E5%85%B1%E7%B7%9A%E6%80%A7%E5%95%8F%E9%A1%8C%E7%9A%84%E6%83%85%E6%B3%81%E4%B8%8B%E4%BC%B0%E8%A8%88%E6%B3%8A%E6%9D%BE%E5%9B%9E%E6%AD%B8%E6%A8%A1%E5%9E%8B%E7%9A%84%E5%8F%83%E6%95%B8%E3%80%82%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdoi.org%2F10.1016%252Fj.jspi.2010.05.030%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Edoi%3A10.1016%2Fj.jspi.2010.05.030%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdoi.org%2F10.1080%252F03610929508831585%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdoi.org%2F10.1080%252F03610929508831585%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcran.r-project.org%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%E7%B6%9C%E5%90%88%20R%20%E6%AA%94%E6%A1%88%E7%B6%B2%E7%B5%A1%20(r-project.org)%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-479343%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9ALui%20%E4%BC%B0%E8%A8%88%E5%99%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-479343%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E8%A6%AA%E6%84%9B%E7%9A%84%E9%A6%AC%E5%85%8B%E8%B2%9D%E5%88%A9%E5%85%88%E7%94%9F%3C%2FP%3E%3CP%3E%E6%88%91%E4%B8%8D%E7%9F%A5%E9%81%93%E5%A6%82%E4%BD%95%E9%80%9A%E9%81%8E%20JMP%20pro%20%E9%81%8B%E8%A1%8C%20R%20%E7%A8%8B%E5%BA%8F%E4%BB%A3%E7%A2%BC%E3%80%82%3CBR%20%2F%3E%20%EF%BC%88%E6%88%91%E8%A9%A6%E9%81%8E%E4%B8%80%E6%AC%A1%EF%BC%8C%E5%81%9A%E4%B8%8D%E5%88%B0%EF%BC%89%3CBR%20%2F%3E%E8%AB%8B%EF%BC%8C%E5%A6%82%E6%9E%9C%E4%BD%A0%E7%9F%A5%E9%81%93%EF%BC%8C%E8%AB%8B%E5%B9%AB%E5%8A%A9%E6%88%91%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E5%95%8F%E5%80%99%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-479513%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9ALui%20%E4%BC%B0%E8%A8%88%E5%99%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-479513%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E6%82%A8%E6%98%AF%E5%90%A6%E9%96%B1%E8%AE%80%E4%BA%86%E6%88%91%E4%B8%8A%E9%9D%A2%E5%BC%95%E7%94%A8%E7%9A%84%20JMP%20%E6%96%87%E6%AA%94%EF%BC%9F%20%E4%BD%A0%E5%8F%AF%E8%83%BD%E6%9C%83%E7%99%BC%E7%8F%BE%3CA%20href%3D%22https%3A%2F%2Fwww.jmp.com%2Fcontent%2Fdam%2Fjmp%2Fdocuments%2Fen%2Fwhite-papers%2Fwp-jmp-synergies-python-r.pdf%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3E%E9%80%99%E5%80%8B%E7%99%BD%3C%2FA%3E%E7%B4%99%E4%B9%9F%E6%9C%89%E7%94%A8%E3%80%82%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%E9%80%99%E6%98%AF%E5%9C%A8%E6%88%91%E6%9C%80%E8%BF%91%E7%9A%84%E4%B8%80%E5%80%8B%E9%A0%85%E7%9B%AE%E4%B8%AD%E4%BD%BF%E7%94%A8%20R%20%E5%92%8C%20JMP%20%E7%9A%84%E7%A4%BA%E4%BE%8B%E3%80%82%20%E6%88%91%E5%B1%95%E7%A4%BA%E4%BA%86%E5%85%A9%E5%80%8B%E7%89%88%E6%9C%AC%E3%80%82%20%E7%AC%AC%E4%B8%80%E5%80%8B%E4%BD%BF%E7%94%A8%E7%9F%A9%E9%99%A3%E5%9C%A8%20JMP%20%E5%92%8C%20R%20%E4%B9%8B%E9%96%93%E5%82%B3%E8%BC%B8%E6%95%B8%E6%93%9A%E3%80%82%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20to%20Here(%201%20)%3B%0A%0A%2F%2F%20make%20sure%20JMP%20can%20find%20the%20desired%20installed%20version%20of%20R%0ASet%20Environment%20Variable(%20%22R_HOME%22%2C%20%22C%3A%5CProgram%20Files%5CR%5CR-4.1.3%22%20)%3B%0A%0A%2F%2F%20use%20Big%20Class%20from%20JMP%20Sample%20Data%20Folder%0Adt%20%3D%20Open(%20%22%24SAMPLE_DATA%2FBig%20Class.jmp%22%20)%3B%0Ax%20%3D%20%3Aheight%20%26lt%3B%26lt%3B%20Get%20As%20Matrix%3B%0Ay%20%3D%20%3Aweight%20%26lt%3B%26lt%3B%20Get%20As%20Matrix%3B%0AClose(%20dt%2C%20No%20Save%20)%3B%0A%0A%2F%2F%20connect%20to%20R%20session%0AR%20Init(%20)%3B%0A%0A%2F%2F%20send%20JMP%20data%20as%20vectors%0AR%20Send(%20x%20)%3B%0AR%20Send(%20y%20)%3B%0A%0A%2F%2F%20use%20mcreg%20function%20in%20mcr%20package%20with%20entire%20data%20set%0AR%20Submit(%22%0Alibrary(%20mcr%20)%0Amc%20%26lt%3B-%20mcreg(%20x%2C%20y%2C%20alpha%20%3D%200.05%2C%20method.reg%20%3D%20%5C!%22PaBa%5C!%22%2C%20method.ci%20%3D%20%5C!%22analytical%5C!%22%2C%20slope.measure%20%3D%20%5C!%22tangent%5C!%22%20)%0Aprint(%20mc%20)%0Aparms%20%26lt%3B-%20getCoefficients(%20mc%20)%0Apred%20%26lt%3B-%20parms%5B1%5D%20%2B%20parms%5B2%5D*x%0Aprint(%20pred%20)%0Aresid%20%26lt%3B-%20y%20-%20pred%0Aprint(%20resid%20)%0A%22)%3B%0A%0A%2F%2F%20close%20R%20connection%0AR%20Term()%3B%0A%0A%2F%2F%20select%20View%20%26gt%3B%20Log%20(Windows)%20or%20Windows%20%26gt%3B%20Log%20(macOS)%20to%20see%20results%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%E7%AC%AC%E4%BA%8C%E5%80%8B%E7%89%88%E6%9C%AC%E4%BD%BF%E7%94%A8%20JMP%20%E6%95%B8%E6%93%9A%E8%A1%A8%E3%80%82%20%E5%AE%83%E6%88%90%E7%82%BA%20R%20%E4%B8%AD%E7%9A%84%E6%95%B8%E6%93%9A%E6%A1%86%E3%80%82%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20to%20Here(%201%20)%3B%0A%0A%2F%2F%20make%20sure%20JMP%20can%20find%20the%20desired%20installed%20version%20of%20R%0ASet%20Environment%20Variable(%20%22R_HOME%22%2C%20%22C%3A%5CProgram%20Files%5CR%5CR-4.1.3%22%20)%3B%0A%0A%2F%2F%20use%20Big%20Class%20from%20JMP%20Sample%20Data%20Folder%0Adt%20%3D%20Open(%20%22%24SAMPLE_DATA%2FBig%20Class.jmp%22%20)%3B%0Ax%20%3D%20%3Aheight%20%26lt%3B%26lt%3B%20Get%20As%20Matrix%3B%0Ay%20%3D%20%3Aweight%20%26lt%3B%26lt%3B%20Get%20As%20Matrix%3B%0AClose(%20dt%2C%20No%20Save%20)%3B%0A%0A%2F%2F%20connect%20to%20R%20session%0AR%20Init(%20)%3B%0A%0A%2F%2F%20send%20JMP%20data%20as%20vectors%0AR%20Send(%20x%20)%3B%0AR%20Send(%20y%20)%3B%0A%0A%2F%2F%20use%20mcreg%20function%20in%20mcr%20package%20with%20entire%20data%20set%0AR%20Submit(%22%0Alibrary(%20mcr%20)%0Amc%20%26lt%3B-%20mcreg(%20x%2C%20y%2C%20alpha%20%3D%200.05%2C%20method.reg%20%3D%20%5C!%22PaBa%5C!%22%2C%20method.ci%20%3D%20%5C!%22analytical%5C!%22%2C%20slope.measure%20%3D%20%5C!%22tangent%5C!%22%20)%0Aprint(%20mc%20)%0Aparms%20%26lt%3B-%20getCoefficients(%20mc%20)%0Apred%20%26lt%3B-%20parms%5B1%5D%20%2B%20parms%5B2%5D*x%0Aprint(%20pred%20)%0Aresid%20%26lt%3B-%20y%20-%20pred%0Aprint(%20resid%20)%0A%22)%3B%0A%0A%2F%2F%20close%20R%20connection%0AR%20Term()%3B%0A%0A%2F%2F%20select%20View%20%26gt%3B%20Log%20(Windows)%20or%20Windows%20%26gt%3B%20Log%20(macOS)%20to%20see%20results%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%E6%82%A8%E5%8F%AF%E4%BB%A5%E5%B0%87%E5%96%AE%E5%80%8B%E5%91%BD%E4%BB%A4%E7%99%BC%E9%80%81%E5%88%B0%20R%EF%BC%8C%E6%88%96%E8%80%85%E5%A6%82%E6%88%91%E6%89%80%E8%AA%AA%E6%98%8E%E7%9A%84%EF%BC%8C%E5%B0%87%E6%95%B4%E5%80%8B%20R%20%E8%85%B3%E6%9C%AC%E4%BD%9C%E7%82%BA%E5%AD%97%E7%AC%A6%E4%B8%B2%E7%99%BC%E9%80%81%E3%80%82%20%E6%82%A8%E5%8F%AF%E4%BB%A5%E4%BD%BF%E7%94%A8%E5%AD%97%E7%AC%A6%E4%B8%B2%E5%92%8C%E8%A1%A8%E9%81%94%E5%BC%8F%E7%9A%84%E6%89%80%E6%9C%89%20JSL%20%E5%8A%9F%E8%83%BD%E2%80%9C%E5%8D%B3%E6%99%82%E2%80%9D%E5%89%B5%E5%BB%BA%E8%87%AA%E5%AE%9A%E7%BE%A9%20R%20%E8%85%B3%E6%9C%AC%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-479686%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9ALui%20%E4%BC%B0%E8%A8%88%E5%99%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-479686%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E5%B0%8A%E6%95%AC%E7%9A%84%E5%85%88%E7%94%9F%3C%2FP%3E%3CP%3EJMP%20%E6%9C%AA%E8%88%87%20R%20%E9%80%A3%E6%8E%A5%EF%BC%8C%E5%B7%B2%E9%96%B1%E8%AE%80%E4%B8%A6%E6%87%89%E7%94%A8%E6%82%A8%E7%99%BC%E9%80%81%E7%9A%84%E5%8F%8D%E9%A5%8B%E3%80%82%3CBR%20%2F%3E%E4%BD%86%E6%98%AF%E6%88%91%E6%B2%92%E6%9C%89%E6%88%90%E5%8A%9F%EF%BC%81%3C%2FP%3E%3CP%3E%E5%95%8F%E5%80%99%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-479739%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9ALui%20%E4%BC%B0%E8%A8%88%E5%99%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-479739%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E5%B0%8A%E6%95%AC%E7%9A%84%E5%85%88%E7%94%9F%3CBR%20%2F%3E%E6%88%91%E4%BD%BF%E7%94%A8%20JMPPro%20%E7%89%88%E6%9C%AC%2016%20%E4%BB%A5%E5%8F%8A%20R%20%E7%89%88%E6%9C%AC%204.1.3%3CBR%20%2F%3E%E9%80%99%E5%85%A9%E5%80%8B%E7%A8%8B%E5%BA%8F%E5%AE%89%E8%A3%9D%E5%9C%A8%E9%81%8B%E8%A1%8C%20Windows%20Pro%2011%20%E7%9A%84%E5%90%8C%E4%B8%80%E5%8F%B0%E8%A8%88%E7%AE%97%E6%A9%9F%E4%B8%8A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E6%88%91%E9%96%B1%E8%AE%80%E4%BA%86%E6%AD%A4%E9%8F%88%E6%8E%A5%E4%B8%AD%E7%9A%84%E8%A8%BB%E9%87%8B%EF%BC%9A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.jmp.com%2Fcontent%2Fdam%2Fjmp%2Fdocuments%2Fen%2Fwhite-papers%2Fwp-jmp-synergies-python-r.pdf%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ewp-jmp-synergies-python-r.pdf%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E%E4%BD%86%E6%98%AF%E6%88%91%E6%B2%92%E6%9C%89%E6%88%90%E5%8A%9F%EF%BC%81%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-479741%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9ALui%20%E4%BC%B0%E8%A8%88%E5%99%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-479741%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20to%20Here(%201%20)%3B%0A%0A%2F%2F%20make%20sure%20JMP%20can%20find%20the%20desired%20installed%20version%20of%20R%0ASet%20Environment%20Variable(%20%22R_HOME%22%2C%20%22C%3A%5CProgram%20Files%5CR%5CR-4.1.3%22%20)%3B%0A%0A%2F%2F%20Open%20Data%20Table%3A%20fatima%20data.jmp%0Adta%20%3D%20Open(%20%22%2FD%3A%2FRdata%2Ffatima%20data.jmp%22%20)%3B%0Ax1%20%3D%20%3Athe%20totals%20of%20the%20children%20weights%20%26lt%3B%26lt%3B%20Get%20As%20Matrix%3B%0Ax2%20%3D%20%3Aage%20sums%20of%20children%20parents%20%26lt%3B%26lt%3B%20Get%20As%20Matrix%3B%0Ax3%20%3D%20%3Aage%20sums%20of%20the%20mothers%20of%20the%20children%20%26lt%3B%26lt%3B%20Get%20As%20Matrix%3B%0Ax4%20%3D%20%3Anumber%20of%20infected%20male%20children%20%26lt%3B%26lt%3B%20Get%20As%20Matrix%3B%0Ax5%20%3D%20%3Anumber%20of%20infected%20female%20children%20%26lt%3B%26lt%3B%20Get%20As%20Matrix%3B%0Ax6%20%3D%20%3Anumber%20of%20infected%20children%20born%20from%20consanguineous%20marriages%20%26lt%3B%26lt%3B%20Get%20As%20Matrix%3B%0Ax7%20%3D%20%3Achildren%20whose%20mothers%20were%20exposed%20to%20radiation%20during%20pregnancy%20%26lt%3B%26lt%3B%20Get%20As%20Matrix%3B%0Ay%20%3D%20%3Atotal%20children%20with%20congenital%20heart%20defects%20%26lt%3B%26lt%3B%20Get%20As%20Matrix%3B%0A%0AClose(%20dta%2C%20No%20Save%20)%3B%0A%0A%2F%2F%20connect%20to%20R%20session%0AR%20Init(%20)%3B%0A%0A%2F%2F%20send%20JMP%20data%20as%20vectors%0AR%20Send(%20x1%20)%3B%0AR%20Send(%20x2%20)%3B%0AR%20Send(%20x3%20)%3B%0AR%20Send(%20x4%20)%3B%0AR%20Send(%20x5%20)%3B%0AR%20Send(%20x6%20)%3B%0AR%20Send(%20x7%20)%3B%0AR%20Send(%20y%20)%3B%0A%0A%2F%2F%20use%20mcreg%20function%20in%20mcr%20package%20with%20entire%20data%20set%0AR%20Submit(%22%0Alibrary(liureg)%0Amod%20%26lt%3B-liu(y~.%2C%20data%20%3D%20as.data.frame(dta)%2C%20d%20%3D%20seq(0%2C%200.1%2C%200.01)%2C%20scaling%20%3D%20%22centered%22)%0Aprint(%20mod%20)%0A%23%23%20Liu%20Var-Cov%20matrix%0Avcov(mod)%0A%23%23%20Liu%20biasing%20parameters%20by%20researchers%0Adest(mod)%0A%23%23%20Liu%20related%20statistics%0Alstats(mod)%0A%22)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%E9%80%99%E6%98%AF%E6%88%91%E5%BE%9E%20jmp%20%E9%81%8B%E8%A1%8C%EF%BC%88liu%20%E5%9B%9E%E6%AD%B8%EF%BC%89%E5%88%B0%20R%20%E7%9A%84%E8%85%B3%E6%9C%AC%E3%80%82%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E4%B8%8D%E8%B7%91%EF%BC%9F%EF%BC%81%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%23note%EF%BC%9A%E4%B8%8B%E9%9D%A2%E9%99%84%E4%B8%8A%E7%9A%84%E6%95%B8%E6%93%9A%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-479742%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9ALui%20%E4%BC%B0%E8%A8%88%E5%99%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-479742%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20to%20Here(%201%20)%3B%0A%0A%2F%2F%20make%20sure%20JMP%20can%20find%20the%20desired%20installed%20version%20of%20R%0ASet%20Environment%20Variable(%20%22R_HOME%22%2C%20%22C%3A%5CProgram%20Files%5CR%5CR-4.1.3%22%20)%3B%0A%0A%2F%2F%20Open%20Data%20Table%3A%20fatima%20data.jmp%0Adta%20%3D%20Open(%20%22%2FD%3A%2FRdata%2Ffatima%20data.jmp%22%20)%3B%0Ax1%20%3D%20%3Athe%20totals%20of%20the%20children%20weights%20%26lt%3B%26lt%3B%20Get%20As%20Matrix%3B%0Ax2%20%3D%20%3Aage%20sums%20of%20children%20parents%20%26lt%3B%26lt%3B%20Get%20As%20Matrix%3B%0Ax3%20%3D%20%3Aage%20sums%20of%20the%20mothers%20of%20the%20children%20%26lt%3B%26lt%3B%20Get%20As%20Matrix%3B%0Ax4%20%3D%20%3Anumber%20of%20infected%20male%20children%20%26lt%3B%26lt%3B%20Get%20As%20Matrix%3B%0Ax5%20%3D%20%3Anumber%20of%20infected%20female%20children%20%26lt%3B%26lt%3B%20Get%20As%20Matrix%3B%0Ax6%20%3D%20%3Anumber%20of%20infected%20children%20born%20from%20consanguineous%20marriages%20%26lt%3B%26lt%3B%20Get%20As%20Matrix%3B%0Ax7%20%3D%20%3Achildren%20whose%20mothers%20were%20exposed%20to%20radiation%20during%20pregnancy%20%26lt%3B%26lt%3B%20Get%20As%20Matrix%3B%0Ay%20%3D%20%3Atotal%20children%20with%20congenital%20heart%20defects%20%26lt%3B%26lt%3B%20Get%20As%20Matrix%3B%0A%0AClose(%20dta%2C%20No%20Save%20)%3B%0A%0A%2F%2F%20connect%20to%20R%20session%0AR%20Init(%20)%3B%0A%0A%2F%2F%20send%20JMP%20data%20as%20vectors%0AR%20Send(%20x1%20)%3B%0AR%20Send(%20x2%20)%3B%0AR%20Send(%20x3%20)%3B%0AR%20Send(%20x4%20)%3B%0AR%20Send(%20x5%20)%3B%0AR%20Send(%20x6%20)%3B%0AR%20Send(%20x7%20)%3B%0AR%20Send(%20y%20)%3B%0A%0A%2F%2F%20use%20mcreg%20function%20in%20mcr%20package%20with%20entire%20data%20set%0AR%20Submit(%22%0Alibrary(liureg)%0Amod%20%26lt%3B-liu(y~.%2C%20data%20%3D%20as.data.frame(dta)%2C%20d%20%3D%20seq(0%2C%200.1%2C%200.01)%2C%20scaling%20%3D%20%22centered%22)%0Aprint(%20mod%20)%0A%23%23%20Liu%20Var-Cov%20matrix%0Avcov(mod)%0A%23%23%20Liu%20biasing%20parameters%20by%20researchers%0Adest(mod)%0A%23%23%20Liu%20related%20statistics%0Alstats(mod)%0A%22)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%E9%80%99%E6%98%AF%E6%88%91%E5%BE%9E%20jmp%20%E9%81%8B%E8%A1%8C%EF%BC%88liu%20%E5%9B%9E%E6%AD%B8%EF%BC%89%E5%88%B0%20R%20%E7%9A%84%E8%85%B3%E6%9C%AC%E3%80%82%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E4%B8%8D%E8%B7%91%EF%BC%9F%EF%BC%81%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%23note%EF%BC%9A%E4%B8%8B%E9%9D%A2%E9%99%84%E4%B8%8A%E7%9A%84%E6%95%B8%E6%93%9A%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-479747%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9ALui%20%E4%BC%B0%E8%A8%88%E5%99%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-479747%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E6%88%91%E4%BF%AE%E6%94%B9%E4%BA%86%E6%82%A8%E7%9A%84%20JSL%20%E4%BB%A5%E5%8C%B9%E9%85%8D%E5%8C%85%E5%90%AB%E7%9A%84%E6%95%B8%E6%93%9A%E8%A1%A8%E4%B8%AD%E7%9A%84%E5%88%97%E5%90%8D%E3%80%82%E6%88%91%E9%82%84%E6%B7%BB%E5%8A%A0%E4%BA%86%E4%B8%80%E5%80%8B%20Send()%20%E4%BE%86%E5%B0%87%20dta%20%E6%95%B8%E6%93%9A%E7%A7%BB%E5%8B%95%E5%88%B0%20r%E3%80%82%26nbsp%3B%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20to%20Here(%201%20)%3B%0A%0A%2F%2F%20make%20sure%20JMP%20can%20find%20the%20desired%20installed%20version%20of%20R%0A%2F%2FSet%20Environment%20Variable(%20%22R_HOME%22%2C%20%22C%3A%5CProgram%20Files%5CR%5CR-4.1.3%22%20)%3B%0A%0A%2F%2F%20Open%20Data%20Table%3A%20fatima%20data.jmp%0A%2F%2Fdta%20%3D%20Open(%20%22%2FD%3A%2FRdata%2Ffatima%20data.jmp%22%20)%3B%0Adta%3Dcurrent%20data%20table()%3B%0Ax1%20%3D%20%3A%22the%20totals%20of%20the%20children's%20weights%20109%2075.4%2069.5%2036.2%206.9%22n%20%26lt%3B%26lt%3B%20Get%20As%20Matrix%3B%0Ax2%20%3D%20%3A%22Age%20sums%20of%20children's%20parents%201260%20811%20735%20201%2082%22n%20%26lt%3B%26lt%3B%20Get%20As%20Matrix%3B%0Ax3%20%3D%20%3A%22Age%20sums%20of%20the%20mothers%20of%20the%20children%20915%20619%20503%20168%2061%22n%20%26lt%3B%26lt%3B%20Get%20As%20Matrix%3B%0Ax4%20%3D%20%3A%22The%20number%20of%20infected%20male%20children%2029%2018%2011%203%202%22n%20%26lt%3B%26lt%3B%20Get%20As%20Matrix%3B%0Ax5%20%3D%20%3A%22Number%20of%20infected%20female%20children%2010%203%207%202%200%22n%20%26lt%3B%26lt%3B%20Get%20As%20Matrix%3B%0Ax6%20%3D%20%3A%22Number%20of%20infected%20children%20born%20from%20consanguineous%20marriages%209%205%203%201%200%22n%20%26lt%3B%26lt%3B%20Get%20As%20Matrix%3B%0Ax7%20%3D%20%3A%22Number%20of%20infected%20children%20whose%20mothers%20were%20exposed%20to%20radiation%20during%20pregnancy%2011%203%201%201%200%22n%20%26lt%3B%26lt%3B%20Get%20As%20Matrix%3B%0Ay%20%3D%20%3A%22Total%20children%20with%20congenital%20heart%20defects%2039%2021%2018%205%202%22n%20%26lt%3B%26lt%3B%20Get%20As%20Matrix%3B%0A%0A%2F%2FClose(%20dta%2C%20No%20Save%20)%3B%0A%0A%2F%2F%20connect%20to%20R%20session%0AR%20Init(%20)%3B%0A%0A%2F%2F%20send%20JMP%20data%20as%20vectors%0AR%20Send(%20x1%20)%3B%0AR%20Send(%20x2%20)%3B%0AR%20Send(%20x3%20)%3B%0AR%20Send(%20x4%20)%3B%0AR%20Send(%20x5%20)%3B%0AR%20Send(%20x6%20)%3B%0AR%20Send(%20x7%20)%3B%0AR%20Send(%20y%20)%3B%0AR%20Send(dta)%3B%0A%0A%2F%2F%20use%20mcreg%20function%20in%20mcr%20package%20with%20entire%20data%20set%0AR%20Submit(%22%0Alibrary(liureg)%0Amod%20%26lt%3B-liu(y~.%2C%20data%20%3D%20as.data.frame(dta)%2C%20d%20%3D%20seq(0%2C%200.1%2C%200.01)%2C%20scaling%20%3D%20%5C!%22centered%5C!%22)%0Aprint(%20mod%20)%0A%23%23%20Liu%20Var-Cov%20matrix%0Avcov(mod)%0A%23%23%20Liu%20biasing%20parameters%20by%20researchers%0Adest(mod)%0A%23%23%20Liu%20related%20statistics%0Alstats(mod)%0A%22)%3B%0Ar%20term()%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3Er%20%E7%9A%84%E7%B5%90%E6%9E%9C%E6%98%AF%3C%2FP%3E%0A%3CPRE%3ETKIntRJMP.R%20version%2014.0%0ACall%3A%0Aliu.default(formula%20%3D%20y%20~%20.%2C%20data%20%3D%20as.data.frame(dta)%2C%20d%20%3D%20seq(0%2C%20%0A%20%20%20%200.1%2C%200.01)%2C%20scaling%20%3D%20%22centered%22)%0A%20%20%20%20%20%20%20Intercept%20no.1.2.3.4.5%0Ad%3D0%20%20%20%20%20%20%20%20%20%20%20NA%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.01%20%20%20%20%20%20%20%20NA%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.02%20%20%20%20%20%20%20%20NA%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.03%20%20%20%20%20%20%20%20NA%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.04%20%20%20%20%20%20%20%20NA%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.05%20%20%20%20%20%20%20%20NA%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.06%20%20%20%20%20%20%20%20NA%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.07%20%20%20%20%20%20%20%20NA%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.08%20%20%20%20%20%20%20%20NA%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.09%20%20%20%20%20%20%20%20NA%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.1%20%20%20%20%20%20%20%20%20NA%20%20%20%20%20%20%20%20%20%20%20NA%0A%20%20%20%20%20%20%20Total.children.with.congenital.heart.defects.39.21.18.5.2%0Ad%3D0%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.01%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.02%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.03%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.04%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.05%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.06%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.07%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.08%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.1%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0A%20%20%20%20%20%20%20the.totals.of.the.children.s.weights.109.75.4.69.5.36.2.6.9%0Ad%3D0%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.01%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.02%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.03%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.04%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.05%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.06%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.07%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.08%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.1%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0A%20%20%20%20%20%20%20Age.sums.of.children.s.parents.1260.811.735.201.82%0Ad%3D0%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.01%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.02%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.03%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.04%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.05%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.06%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.07%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.08%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.1%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0A%20%20%20%20%20%20%20Age.sums.of.the.mothers.of.the.children.915.619.503.168.61%0Ad%3D0%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.01%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.02%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.03%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.04%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.05%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.06%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.07%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.08%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.1%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0A%20%20%20%20%20%20%20The.number.of.infected.male.children.29.18.11.3.2%0Ad%3D0%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.01%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.02%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.03%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.04%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.05%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.06%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.07%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.08%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.1%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0A%20%20%20%20%20%20%20Number.of.infected.female.children.10.3.7.2.0%0Ad%3D0%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.01%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.02%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.03%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.04%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.05%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.06%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.07%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.08%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.1%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0A%20%20%20%20%20%20%20Number.of.infected.children.born.from.consanguineous.marriages.9.5.3.1.0%0Ad%3D0%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.01%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.02%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.03%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.04%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.05%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.06%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.07%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.08%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.1%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0A%20%20%20%20%20%20%20Number.of.infected.children.whose.mothers.were.exposed.to.radiation.during.pregnancy.11.3.1.1.0%0Ad%3D0%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.01%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.02%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.03%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.04%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.05%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.06%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.07%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.08%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.09%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0Ad%3D0.1%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20NA%0AError%3A%20Error%20in%20solve.default(t(x)%20%25*%25%20x)%20%3A%20%0A%20%20system%20is%20computationally%20singular%3A%20reciprocal%20condition%20number%20%3D%201.28204e-20%0A0%3C%2FPRE%3E%0A%3CP%3E%E7%95%8C%E9%9D%A2%E4%BC%BC%E4%B9%8E%E5%B7%A5%E4%BD%9C%E6%AD%A3%E5%B8%B8%EF%BC%8C%E4%BC%BC%E4%B9%8E%E5%AD%98%E5%9C%A8%E6%95%B8%E6%93%9A%E5%95%8F%E9%A1%8C%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
Raaed
Level IV

Lui estimators

How can Liu's estimations be calculated using JMP pro?!

 

Attached
Real data obtained from the Central Child Hospital in Baghdad - Iraq, representing the number of cases of congenital defects of children in the heart and circulatory system for the period (2006-2011).

 

regards

Řaëd ~✍
1 ACCEPTED SOLUTION

Accepted Solutions

Re: Lui estimators

You send the individual vectors but then you refer to the data table in the liureg function call. You didn't send the data table as a data frame. You didn't make a data frame in R from the vectors. There are several approaches but it seems to me that the easiest way is to send the JMP data table as a data frame instead of individual vectors. I should you how to do it both ways but you mixed them together and left out the important parts in the process.

 

Try this script:

 

Names Default to Here( 1 );

// make sure JMP can find the desired installed version of R
Set Environment Variable( "R_HOME", "C:\Program Files\R\R-4.1.3" );

// Open Data Table: PoiReg.jmp
dta = Open( "/D:/Rdata/PoiReg.jmp" );

// connect to R session
R Init( );

// send JMP data as vectors
R Send( dta );

// use centered function in liureg package with entire data set
R Submit("
library(Matrix)
library(glmnet)
library(liureg)
library (readxl)
## liu regression

lu.reg <- liu(y~., data=dta, d=seq(0, 0.1, 0.1), scaling= \!"centered\!")
print(lu.reg)
");

// close R connection
R Term();

View solution in original post

21 REPLIES 21

Re: Lui estimators

I cannot find this statistic in the Statistics Index in JMP. I am not familiar with this estimator. Please provide a reference for it. Thanks!

Raaed
Level IV

Re: Lui estimators

Liu's method is a method similar to ridge regression method, used to estimate the parameters of a Poisson regression model in case of data suffering from a multicollinearity problem.

 

doi:10.1016/j.jspi.2010.05.030

 

https://doi.org/10.1080%2F03610929508831585

 

The Comprehensive R Archive Network (r-project.org)

 

Řaëd ~✍

Re: Lui estimators

Thank you for the background!

 

In the meantime, you can run R code from JMP, if that would help.

Raaed
Level IV

Re: Lui estimators

Dear Mr. markbailey

I don't know how to run R program codes through JMP pro.
(I tried once and couldn't do it)
Please, if you know, help me

 

Regards

Řaëd ~✍

Re: Lui estimators

Did you read the JMP documentation that I cited above? You might find this white paper useful, too.

 

Here is an example of using R with JMP in a recent project of mine. I show two versions. The first uses matrices to transfer data between JMP and R.

 

Names Default to Here( 1 );

// make sure JMP can find the desired installed version of R
Set Environment Variable( "R_HOME", "C:\Program Files\R\R-4.1.3" );

// use Big Class from JMP Sample Data Folder
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
x = :height << Get As Matrix;
y = :weight << Get As Matrix;
Close( dt, No Save );

// connect to R session
R Init( );

// send JMP data as vectors
R Send( x );
R Send( y );

// use mcreg function in mcr package with entire data set
R Submit("
library( mcr )
mc <- mcreg( x, y, alpha = 0.05, method.reg = \!"PaBa\!", method.ci = \!"analytical\!", slope.measure = \!"tangent\!" )
print( mc )
parms <- getCoefficients( mc )
pred <- parms[1] + parms[2]*x
print( pred )
resid <- y - pred
print( resid )
");

// close R connection
R Term();

// select View > Log (Windows) or Windows > Log (macOS) to see results

The second versions uses the JMP data table instead. It becomes a data frame in R.

 

Names Default to Here( 1 );

// make sure JMP can find the desired installed version of R
Set Environment Variable( "R_HOME", "C:\Program Files\R\R-4.1.3" );

// use Big Class from JMP Sample Data Folder
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
x = :height << Get As Matrix;
y = :weight << Get As Matrix;
Close( dt, No Save );

// connect to R session
R Init( );

// send JMP data as vectors
R Send( x );
R Send( y );

// use mcreg function in mcr package with entire data set
R Submit("
library( mcr )
mc <- mcreg( x, y, alpha = 0.05, method.reg = \!"PaBa\!", method.ci = \!"analytical\!", slope.measure = \!"tangent\!" )
print( mc )
parms <- getCoefficients( mc )
pred <- parms[1] + parms[2]*x
print( pred )
resid <- y - pred
print( resid )
");

// close R connection
R Term();

// select View > Log (Windows) or Windows > Log (macOS) to see results

You can send individual commands to R or, as I illustrated, an entire R script as a character string. You can use all the JSL features for strings and expressions to create custom R scripts 'on the fly.'

Raaed
Level IV

Re: Lui estimators

Dear Sir

JMP does not connect with R, has read and applied the feedback you sent.
But I did not succeed!

Regards

Řaëd ~✍
txnelson
Super User

Re: Lui estimators

what version of JMP Pro are you running and on what Operating System?

Do you have R installed on your computer or do you run it on a separate computer?

If it is installed on the same computer as JMP is installed on, what messages are printed out when you run the following script?

Names Default To Here( 1 );
R Init();
R Term();

 

Jim
Raaed
Level IV

Re: Lui estimators

Dear Sir
I use JMPPro version 16 as well as R version 4.1.3
The two programs are installed on the same computer that is running Windows Pro 11

 

and i read the notes in this link:

wp-jmp-synergies-python-r.pdf

 

But I did not succeed!

Řaëd ~✍
Raaed
Level IV

Re: Lui estimators

Names Default to Here( 1 );

// make sure JMP can find the desired installed version of R
Set Environment Variable( "R_HOME", "C:\Program Files\R\R-4.1.3" );

// Open Data Table: fatima data.jmp
dta = Open( "/D:/Rdata/fatima data.jmp" );
x1 = :the totals of the children weights << Get As Matrix;
x2 = :age sums of children parents << Get As Matrix;
x3 = :age sums of the mothers of the children << Get As Matrix;
x4 = :number of infected male children << Get As Matrix;
x5 = :number of infected female children << Get As Matrix;
x6 = :number of infected children born from consanguineous marriages << Get As Matrix;
x7 = :children whose mothers were exposed to radiation during pregnancy << Get As Matrix;
y = :total children with congenital heart defects << Get As Matrix;

Close( dta, No Save );

// connect to R session
R Init( );

// send JMP data as vectors
R Send( x1 );
R Send( x2 );
R Send( x3 );
R Send( x4 );
R Send( x5 );
R Send( x6 );
R Send( x7 );
R Send( y );

// use mcreg function in mcr package with entire data set
R Submit("
library(liureg)
mod <-liu(y~., data = as.data.frame(dta), d = seq(0, 0.1, 0.01), scaling = "centered")
print( mod )
## Liu Var-Cov matrix
vcov(mod)
## Liu biasing parameters by researchers
dest(mod)
## Liu related statistics
lstats(mod)
");

this is my script to run (liu regression) from jmp to R.

 

not run?!

 

#note: the data attached in below

Řaëd ~✍

Recommended Articles