<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: MAJUG Fall Meeting, Thursday, Sept. 28, 2017, SAS Office, 1530 Wilson Blvd., from 8:30am-12:30pm in Mid-Atlantic JMP Users Group</title>
    <link>https://community.jmp.com/t5/Mid-Atlantic-JMP-Users-Group/MAJUG-Fall-Meeting-Thursday-Sept-28-2017-SAS-Office-1530-Wilson/m-p/45330#M4</link>
    <description>&lt;P&gt;clear log() ;&lt;BR /&gt;/*****************************************************************&lt;BR /&gt;This JMP and R Integration script and example uses the&lt;/P&gt;
&lt;P&gt;Alaska pipeline data&amp;nbsp;consisting of in-field ultrasonic&lt;/P&gt;
&lt;P&gt;measurements of the depths of&amp;nbsp;defects in the Alaska pipeline.&lt;BR /&gt; &lt;BR /&gt;The depth of the defects were then re-measured in the laboratory.&lt;BR /&gt;These measurements were performed in six different batches.&lt;BR /&gt;The data were analyzed to calibrate the bias of the field&lt;BR /&gt;measurements relative to the laboratory measurements.&lt;BR /&gt; &lt;BR /&gt;In this analysis, the field measurement is the response variable&lt;BR /&gt;and the laboratory measurement is the predictor variable.&lt;BR /&gt; &lt;BR /&gt;These data were provided by Harry Berger, who was at thetime a scientist for the Office of the Director of the Institute&lt;BR /&gt;of Materials Research (now the Materials Science and Engineering&lt;BR /&gt;Laboratory) of NIST.&lt;BR /&gt; &lt;BR /&gt;These data were used for a study conducted for the Materials&lt;BR /&gt;Transportation Bureau of the U.S. Department of Transportation.&lt;BR /&gt; &lt;BR /&gt;The source of the data came from the following link&lt;BR /&gt;&lt;A href="http://www.itl.nist.gov/div898/handbook/pmd/section6/pmd621.htm" target="_blank"&gt;http://www.itl.nist.gov/div898/handbook/pmd/section6/pmd621.htm&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;***************************************************************/&lt;BR /&gt; &lt;BR /&gt;R Init() ;/* starts the connection to R */&lt;BR /&gt; &lt;BR /&gt;R Submit( "\[&lt;BR /&gt;# load packages&lt;BR /&gt;library (lattice)&lt;BR /&gt; &lt;BR /&gt;## Alaska pipeline ultrasonic calibration case study&lt;BR /&gt;## Create vector with dependent variable, field defect size&lt;BR /&gt;fdef = c(18,38,15,20,18,36,20,43,45,65,43,38,33,10,50,10,50,15,53,60,18, 38,15,&lt;BR /&gt;20,18,36,20,43,45,65,43,38,33,10,50,10,50,15,53,15,37,15, 18,11,35,20,40,50,36,&lt;BR /&gt;50,38,10,75,10,85,13,50,58,58,48,12,63,10, 63,13,28,35,63,13,45,9,20,18,35,20,&lt;BR /&gt;38,50,70,40,21,19,10,33,16,5, 32,23,30,45,33,25,12,53,36,5,63,43,25,73,45,52,&lt;BR /&gt;9,30,22,56,15,45)&lt;BR /&gt; &lt;BR /&gt;## Create vector with independent variable, lab defect size&lt;BR /&gt;ldef = c(20.2,56.0,12.5,21.2,15.5,39.0,21.0,38.2,55.6,81.9,39.5,56.4,40.5,&lt;BR /&gt;14.3,81.5,13.7,81.5,20.5,56.0,80.7,20.0,56.5,12.1,19.6,15.5,38.8, 19.5,38.0,&lt;BR /&gt;55.0,80.0,38.5,55.8,38.8,12.5,80.4,12.7,80.9,20.5,55.0, 19.0,55.5,12.3,18.4,&lt;BR /&gt;11.5,38.0,18.5,38.0,55.3,38.7,54.5,38.0,12.0, 81.7,11.5,80.0,18.3,55.3,80.2,&lt;BR /&gt;80.7,55.8,15.0,81.0,12.0,81.4,12.5, 38.2,54.2,79.3,18.2,55.5,11.4,19.5,15.5,&lt;BR /&gt;37.5,19.5,37.5,55.5,80.0, 37.5,15.5,23.7,9.8,40.8,17.5,4.3,36.5,26.3,30.4,50.2,&lt;BR /&gt;30.1,25.5, 13.8,58.9,40.0,6.0,72.5,38.8,19.4,81.5,77.4,54.6,6.8,32.6,19.8,&lt;BR /&gt;58.8,12.9,49.0)&lt;BR /&gt; &lt;BR /&gt;## Create vector with batch indicator&lt;BR /&gt;bat = c(1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,&lt;BR /&gt;2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,&lt;BR /&gt;4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,&lt;BR /&gt;5,6,6,6,6,6,6,6)&lt;BR /&gt; &lt;BR /&gt;## Save data in a data frame and determine number of observations&lt;BR /&gt;Batch &amp;lt;- as.factor(bat)&lt;BR /&gt;df &amp;lt;- data.frame(fdef,ldef,Batch)&lt;BR /&gt;len &amp;lt;- length(Batch)&lt;BR /&gt;xax = "Lab Defect Size"&lt;BR /&gt;yax = "Field Defect Size"&lt;BR /&gt;title = "Alaska Pipeline Ultrasonic Calibration Data"&lt;BR /&gt;plot(ldef,fdef,xlab=xax,ylab=yax,main=title,col="blue")&lt;BR /&gt; &lt;BR /&gt;## Generate conditional plot&lt;BR /&gt;trellis.device(new = TRUE, col = FALSE)&lt;BR /&gt;FIG = xyplot(fdef ~ ldef | Batch,&lt;BR /&gt;data=df,&lt;BR /&gt; &lt;BR /&gt;main = title,&lt;BR /&gt;layout=c(3,2), col=4,&lt;BR /&gt;xlab=list(xax,cex=1.1), ylab=list(yax,cex=1.1),&lt;BR /&gt;strip=function(...) strip.default(...,strip.names=c(T,T)))&lt;BR /&gt;FIG&lt;BR /&gt; &lt;BR /&gt;## Batch analysis&lt;BR /&gt;x = ldef&lt;BR /&gt;y = fdef&lt;BR /&gt;xydf = data.frame(x,y,Batch)&lt;BR /&gt;out = by(xydf,xydf$Batch,function(x) lm(y~x,data=x))&lt;BR /&gt;lapply(out,summary)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;#&amp;gt; Residual standard error: 1.35 on 5 degrees of freedom&lt;BR /&gt;#&amp;gt; Multiple R-Squared: 0.9956, Adjusted R-squared: 0.9947&lt;BR /&gt;#&amp;gt; F-statistic: 1128 on 1 and 5 DF, p-value: 4.401e-07&lt;BR /&gt;## Save batch regression results&lt;BR /&gt;outs = sapply(out,summary)&lt;BR /&gt;outc = sapply(out,coef)&lt;BR /&gt;fitse = t(outs[6,])&lt;BR /&gt;fitse = c(fitse[[1]],fitse[[2]],fitse[[3]],fitse[[4]],fitse[[5]],fitse[[6]])&lt;BR /&gt;r2 = t(outs[8,])&lt;BR /&gt;r2 = c(r2[[1]],r2[[2]],r2[[3]],r2[[4]],r2[[5]],r2[[6]])&lt;BR /&gt;b0 = t(outc[1,])&lt;BR /&gt;b1 = t(outc[2,])&lt;BR /&gt;## Batch plots&lt;BR /&gt;par(mfrow=c(2,2))&lt;BR /&gt;id = c(1:length(b0))&lt;BR /&gt;xax2 = "Batch Number"&lt;BR /&gt;plot(id,r2,xlab=xax2,ylab="Correlation",ylim=c(.8,1), col="blue",pch=16,cex=1.25)&lt;BR /&gt;abline(h=mean(r2))&lt;BR /&gt; &lt;BR /&gt;plot(id,b0[1,],xlab=xax2,ylab="Intercept",ylim=c(0,8), col="blue",pch=16,cex=1.25)&lt;BR /&gt;abline(h=mean(b0))&lt;BR /&gt; &lt;BR /&gt;plot(id,b1[1,],xlab=xax2,ylab="Slope",ylim=c(.5,.9), col="blue",pch=16,cex=1.25)&lt;BR /&gt;abline(h=mean(b1))&lt;BR /&gt; &lt;BR /&gt;plot(id,fitse,xlab=xax2,ylab="RESSD",ylim=c(0,7), col="blue",pch=16,cex=1.25)&lt;BR /&gt;abline(h=mean(fitse)) &lt;BR /&gt;par(mfrow=c(1,1))&lt;BR /&gt;## Straight line regression analysis&lt;BR /&gt;out = lm(fdef~ldef)&lt;BR /&gt;summary(out)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;## Residual 6-plot&lt;BR /&gt;par(mfrow=c(3,2))&lt;BR /&gt;plot(ldef,fdef,xlab="Lab Defect Size",&lt;BR /&gt; ylab="Field Defect Size",main="Field Defect Size vs Lab Defect Size")&lt;BR /&gt;abline(reg=out)&lt;BR /&gt;plot(ldef,out$residuals,ylab="Residuals",xlab="Lab Defect Size",&lt;BR /&gt; main="Residuals vs Lab Defect Size")&lt;BR /&gt;plot(out$fitted.values,out$residuals,ylab="Residuals",xlab="Predicted",&lt;BR /&gt; main="Residual vs Predicted")&lt;BR /&gt;plot(out$residuals[2:len],out$residuals[1:len-1],ylab="Residuals",&lt;BR /&gt; xlab="Lag 1 Residuals",main="Lag Plot")&lt;BR /&gt;hist(out$residuals,ylab="Frequency",xlab="Residuals",main="Histogram")&lt;BR /&gt;qqnorm(out$residuals,main="Normal Probability Plot")&lt;BR /&gt;## Generate plot of raw data with overlaid regression function&lt;BR /&gt;par(mfrow=c(1,1),cex=1.25)&lt;BR /&gt; &lt;BR /&gt;plot(ldef,fdef,ylab="Field Defect Size",xlab="Lab Defect Size", col="blue")&lt;BR /&gt;abline(reg=out)&lt;BR /&gt;title("Alaska Pipeline Ultrasonic Calibration Data",line=2)&lt;BR /&gt;title("With Unweighted Line",line=1)&lt;BR /&gt; &lt;BR /&gt;## Plot residuals versus lab defect size&lt;BR /&gt;par(mfrow=c(1,1),cex=1.25)&lt;BR /&gt;plot(ldef,out$residuals, xlab="Lab Defect Size", ylab="Residuals",&lt;BR /&gt;main="Alaska Pipeline Data Residuals - Unweighted Fit", cex=1.25, col="blue")&lt;BR /&gt;abline(h=0)&lt;BR /&gt; &lt;BR /&gt;## Transformations of response variable&lt;BR /&gt;lnfdef = log(fdef)&lt;BR /&gt;sqrtfdef = sqrt(fdef)&lt;BR /&gt;invfdef = 1/fdef&lt;BR /&gt; &lt;BR /&gt;## Plot transformed response variable&lt;BR /&gt;par(mfrow=c(2,2))&lt;BR /&gt;xax = "Lab Defect Size"&lt;BR /&gt;plot(ldef,fdef,xlab=xax,ylab="Field Defect Size",col="blue")&lt;BR /&gt;plot(ldef,sqrtfdef,xlab=xax,ylab="Sqrt(Field Defect Size)",col="blue")&lt;BR /&gt;plot(ldef,lnfdef,xlab=xax,ylab="ln(Field Defect Size)",col="blue")&lt;BR /&gt;plot(ldef,invfdef,xlab=xax,ylab="1/Field Defect Size",col="blue")&lt;BR /&gt;title(main="Transformations of Response Variable",outer=TRUE,line=-2)&lt;BR /&gt; &lt;BR /&gt;## Transformations of predictor variable&lt;BR /&gt;lnldef = log(ldef)&lt;BR /&gt;sqrtldef = sqrt(ldef)&lt;BR /&gt;invldef = 1/ldef&lt;/P&gt;
&lt;P&gt;## Plot transformed predictor variable&lt;BR /&gt;par(mfrow=c(2,2))&lt;BR /&gt;yax = "ln(Field Defect Size)"&lt;BR /&gt;plot(ldef,lnfdef,xlab="Lab Defect Size", ylab=yax, col="blue")&lt;BR /&gt;plot(sqrtldef,lnfdef,xlab="Sqrt(Lab Defect Size)", ylab=yax, col="blue")&lt;BR /&gt;plot(lnldef,lnfdef,xlab="ln(Lab Defect Size)", ylab=yax, col="blue")&lt;BR /&gt;plot(invldef,lnfdef,xlab="1/Lab Defect Size", ylab=yax, col="blue")&lt;BR /&gt;title(main="Transformations of Predictor Variable",outer=TRUE,line=-2)&lt;BR /&gt; &lt;BR /&gt;]\" ) ;&lt;BR /&gt; &lt;BR /&gt;/* Create JMP data table from the R data frames */&lt;BR /&gt;Rdf = R Get(df) ;&lt;BR /&gt;Rdf &amp;lt;&amp;lt; NewDataView &amp;lt;&amp;lt; Set Name("R Data frame Table") ;&lt;BR /&gt;/** Use Graph Builder on dtrdf to produce scatter plots **/&lt;BR /&gt;/*Set the Value ordering property for the Batch column so that it&lt;BR /&gt; matched displaying the Trellis Plot in R&lt;BR /&gt;*/ &lt;BR /&gt;Rdf:Batch &amp;lt;&amp;lt; Set Property( "Value Ordering", Eval ( {4, 5, 6, 1, 2, 3} ) ) &amp;lt;&amp;lt;&lt;BR /&gt; Value Labels(&lt;BR /&gt; {1 = "Batch: 1", 2 = "Batch: 2", 3 = "Batch: 3", 4 = "Batch: 4", 5 =&lt;BR /&gt; "Batch: 5", 6 = "Batch: 6"}&lt;BR /&gt; ) &amp;lt;&amp;lt; &lt;BR /&gt; Use Value Labels( 1 )&lt;BR /&gt; ;&lt;BR /&gt;/** use row states to change the plot markers from solid to blank to match R plot ***/ &lt;BR /&gt;Rdf &amp;lt;&amp;lt; Set Row States(&lt;BR /&gt; [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128,&lt;BR /&gt; 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128,&lt;BR /&gt; 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128,&lt;BR /&gt; 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128,&lt;BR /&gt; 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128,&lt;BR /&gt; 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128,&lt;BR /&gt; 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128,&lt;BR /&gt; 128, 128]&lt;BR /&gt; ) &lt;BR /&gt; ; &lt;/P&gt;
&lt;P&gt;Rdf &amp;lt;&amp;lt; Graph Builder(&lt;BR /&gt; Size( 457, 408 ),&lt;BR /&gt; Show Control Panel( 0 ),&lt;BR /&gt; Variables( X( :ldef ), Y( :fdef ), Wrap( :Batch, Levels per Row( 3 ) ) ),&lt;BR /&gt; Elements( Points( X, Y, Legend( 3 ) ) ),&lt;BR /&gt; SendToReport(&lt;BR /&gt; Dispatch(&lt;BR /&gt; {},&lt;BR /&gt; "graph title",&lt;BR /&gt; TextEditBox,&lt;BR /&gt; {Set Text( "Alsaka Pipeline Ultrasonic Calibration Data - JMP" )}&lt;BR /&gt; ),&lt;BR /&gt; Dispatch( {}, "X title", TextEditBox, {Set Text( "Lab Defect Size " )} ),&lt;BR /&gt; Dispatch(&lt;BR /&gt; {},&lt;BR /&gt; "Y title",&lt;BR /&gt; TextEditBox,&lt;BR /&gt; {Set Text( "ln(Field Defect Size)" )}&lt;BR /&gt; ),&lt;BR /&gt; Dispatch( {}, "Graph Builder", FrameBox( 1 ), {Marker Size( 1 )} ),&lt;BR /&gt; Dispatch( {}, "Graph Builder", FrameBox( 2 ), {Marker Size( 1 )} ),&lt;BR /&gt; Dispatch( {}, "Graph Builder", FrameBox( 3 ), {Marker Size( 1 )} ),&lt;BR /&gt; Dispatch( {}, "Graph Builder", FrameBox( 4 ), {Marker Size( 1 )} ),&lt;BR /&gt; Dispatch( {}, "Graph Builder", FrameBox( 5 ), {Marker Size( 1 )} ),&lt;BR /&gt; Dispatch( {}, "Graph Builder", FrameBox( 6 ), {Marker Size( 1 )} ) &lt;BR /&gt; )&lt;BR /&gt;);&lt;/P&gt;
&lt;P&gt;/* Produce plots and regression fits with JMP Analysis platforms */&lt;BR /&gt;/* Get the FIG graph from R and display in JMP &lt;BR /&gt;*/&lt;BR /&gt;R Submit( "\[&lt;BR /&gt;## Generate conditional plot&lt;BR /&gt;trellis.device(new = TRUE, col = FALSE)&lt;BR /&gt;FIG = xyplot(fdef ~ ldef | Batch,&lt;BR /&gt;data=df,&lt;BR /&gt; &lt;BR /&gt;main = title,&lt;BR /&gt;layout=c(3,2), col=4,&lt;BR /&gt;xlab=list(xax,cex=1.1), ylab=list(yax,cex=1.1),&lt;BR /&gt;strip=function(...) strip.default(...,strip.names=c(T,T)))&lt;BR /&gt;FIG&lt;BR /&gt;]\" );&lt;/P&gt;
&lt;P&gt;picture = R Get Graphics( "png" );&lt;BR /&gt;New Window("Alaska Pipeline Ultrasonic Calibration Data from R into JMP", picture) ;&lt;BR /&gt;Wait( 10 );&lt;/P&gt;
&lt;P&gt;/* Box-Cox linearity plot */&lt;/P&gt;
&lt;P&gt;R Submit( "\[&lt;BR /&gt;## Transformations of predictor variable&lt;BR /&gt;lnldef = log(ldef)&lt;BR /&gt;sqrtldef = sqrt(ldef)&lt;BR /&gt;invldef = 1/ldef&lt;/P&gt;
&lt;P&gt;## Box-Cox linearity plot&lt;BR /&gt;for (i in (0:100)){&lt;BR /&gt; alpha = -2 + 4*i/100&lt;BR /&gt; if (alpha != 0){&lt;BR /&gt; tx = ((ldef**alpha) - 1)/alpha&lt;BR /&gt; temp = lm(lnfdef~tx)&lt;BR /&gt; temps = summary(temp)&lt;BR /&gt; if(i==0) {rsq = temps$r.squared&lt;BR /&gt; alp = alpha}&lt;BR /&gt; else {rsq = rbind(rsq,temps$r.squared)&lt;BR /&gt; alp = rbind(alp,alpha)}&lt;BR /&gt; }}&lt;BR /&gt;rcor = sqrt(rsq)&lt;BR /&gt;par(mfrow=c(1,1),cex=1.25)&lt;BR /&gt;plot(alp,rcor,type="l",xlab="Alpha",ylab="Correlation",&lt;BR /&gt; main="Box-Cox Linearity Plot ln(Field) Lab",&lt;BR /&gt; ylim=c(.6,1), col="blue")&lt;/P&gt;
&lt;P&gt;#creaate Correlation and Alpha vectors into BCP data frame&lt;BR /&gt;Corr &amp;lt;- as.vector(rcor)&lt;BR /&gt;Alpha &amp;lt;- as.vector(alp)&lt;BR /&gt;BCP &amp;lt;- data.frame(Corr,Alpha)&lt;/P&gt;
&lt;P&gt;]\" );&lt;BR /&gt;RBCP = R Get(BCP);&lt;BR /&gt;RBCP &amp;lt;&amp;lt; NewDataView &amp;lt;&amp;lt; Set Name("R Data Frame of Alpha-Correlation Table") ;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;/* Graph Box-Cox Linearity Plot from Graph Builder */&lt;BR /&gt;RBCP &amp;lt;&amp;lt; Graph Builder(&lt;BR /&gt; Size( 421, 362 ),&lt;BR /&gt; Show Control Panel( 0 ),&lt;BR /&gt; Variables( X( :Alpha ), Y( :Corr ) ),&lt;BR /&gt; Elements( Smoother( X, Y, Legend( 4 ) ) ),&lt;BR /&gt; SendToReport(&lt;BR /&gt; Dispatch(&lt;BR /&gt; {},&lt;BR /&gt; "graph title",&lt;BR /&gt; TextEditBox,&lt;BR /&gt; {Set Text( "Box-Cox Linearity Plot ln(Field) - JMP" )}&lt;BR /&gt; ),&lt;BR /&gt; Dispatch( {}, "Y title", TextEditBox, {Set Text( "Correlation" )} )&lt;BR /&gt; )&lt;BR /&gt;);&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;BoxCox = R Get Graphics( "png" );&lt;BR /&gt;New Window("Box-Cox Linearity Plot ln(Field) Lab - From R", BoxCox) ;&lt;BR /&gt;Wait( 10 ); &lt;/P&gt;
&lt;P&gt;/*****&lt;/P&gt;
&lt;P&gt;Rxydf &amp;lt;&amp;lt;&lt;BR /&gt;Graph Builder(&lt;BR /&gt; Size( 533, 454 ),&lt;BR /&gt; Show Control Panel( 0 ),&lt;BR /&gt; Variables( X( :x ), Y( :y ) ),&lt;BR /&gt; Elements( Points( X, Y, Legend( 3 ) ) ),&lt;BR /&gt; SendToReport(&lt;BR /&gt; Dispatch(&lt;BR /&gt; {},&lt;BR /&gt; "y",&lt;BR /&gt; ScaleBox,&lt;BR /&gt; {Label Row( Label Orientation( "Horizontal" ) )}&lt;BR /&gt; ),&lt;BR /&gt; Dispatch(&lt;BR /&gt; {},&lt;BR /&gt; "graph title",&lt;BR /&gt; TextEditBox,&lt;BR /&gt; {Set Text( "Alaskan Pipeline Ultrasonic Calibration Data - JMP" )}&lt;BR /&gt; ),&lt;BR /&gt; Dispatch( {}, "X title", TextEditBox, {Set Text( "Lab Defect Size" )} ),&lt;BR /&gt; Dispatch(&lt;BR /&gt; {},&lt;BR /&gt; "Y title",&lt;BR /&gt; TextEditBox,&lt;BR /&gt; {Rotate Text( "Left" ), Set Text( "Field Defect Size" )}&lt;BR /&gt; )&lt;BR /&gt; )&lt;BR /&gt;);&lt;BR /&gt;***/&lt;/P&gt;
&lt;P&gt;/** Do a first initial regression straight-line model fit to the data&lt;/P&gt;
&lt;P&gt;Rxydf &amp;lt;&amp;lt; Bivariate(&lt;BR /&gt; Y( :y ),&lt;BR /&gt; X( :x ),&lt;BR /&gt; Fit Line( {Line Color( {57, 177, 67} )} ),&lt;BR /&gt; SendToReport(&lt;BR /&gt; Dispatch( {"Linear Fit"}, "Lack Of Fit", OutlineBox, {Close( 0 )} )&lt;BR /&gt; )&lt;BR /&gt;);&lt;/P&gt;
&lt;P&gt;**/&lt;/P&gt;
&lt;P&gt;R Term () ; /* terminates connection to R */&lt;/P&gt;</description>
    <pubDate>Sat, 30 Sep 2017 18:13:58 GMT</pubDate>
    <dc:creator>melvin_alexande</dc:creator>
    <dc:date>2017-09-30T18:13:58Z</dc:date>
    <item>
      <title>MAJUG Fall Meeting, Thursday, Sept. 28, 2017, SAS Office, 1530 Wilson Blvd., from 8:30am-12:30pm</title>
      <link>https://community.jmp.com/t5/Mid-Atlantic-JMP-Users-Group/MAJUG-Fall-Meeting-Thursday-Sept-28-2017-SAS-Office-1530-Wilson/m-p/44867#M3</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mid-Atlantic JMP® Users Group (MAJUG) Fall Meeting&lt;/STRONG&gt;&lt;STRONG&gt; Location: SAS Office, 1530 Wilson Blvd. Suite 800, Arlington-Rosslyn, VA&lt;/STRONG&gt; &lt;STRONG&gt;Thursday, September 28, 2017 from 8:30-12:30&lt;/STRONG&gt;&lt;STRONG&gt; AGENDA*:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;8:30 &lt;/STRONG&gt;Registration/Sign-in &lt;STRONG&gt;8:45-9:00 &lt;/STRONG&gt;Welcome and Introduction&amp;nbsp; &lt;STRONG&gt;9:00-10:00 &lt;/STRONG&gt;&lt;STRONG&gt;Data Transformation&lt;/STRONG&gt; (&lt;STRONG&gt;Tom Donnelly, JMP Systems Engineer&lt;/STRONG&gt;)&amp;nbsp; &lt;STRONG&gt;10:00-10:15&lt;/STRONG&gt; Break &lt;STRONG&gt;10:15-10:3&lt;/STRONG&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;STRONG&gt; MAJUG Feedback – survey, future meetings, topics, user involvement, JMP community, meeting location&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;10:30-11:15&lt;/STRONG&gt;&lt;STRONG&gt; Modeling Consumer Expenditure Survey Interview Data (Josh Klick, US Bureau of Labor Statistics and MAJUG Co-chair)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;11:15-11:30&lt;/STRONG&gt; Break&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;11:30-12:&lt;/STRONG&gt;&lt;STRONG&gt;00&lt;/STRONG&gt; &lt;STRONG&gt;JMP®&lt;/STRONG&gt;&lt;STRONG&gt; and R Integration Application using Alaskan Pipeline data and R code from &lt;A href="http://www.itl.nist.gov/div898/handbook/pmd/section6/pmd621.htm" target="_blank"&gt;http://www.itl.nist.gov/div898/handbook/pmd/section6/pmd621.htm&lt;/A&gt; &amp;nbsp;(Mel Alexander, Social Security Administration and MAJUG Co-chair)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;12:00-12:25 &lt;/STRONG&gt;Q&amp;amp;A, Discussion, and Feedback &lt;STRONG&gt;12:30&lt;/STRONG&gt; Adjourn * This schedule is subject to change without notice&lt;/P&gt;&lt;P&gt;&lt;EM&gt;MAJUG meeting will be located at the SAS Office, 1530 Wilson Blvd. (Suite 800), Arlington-Rosslyn, VA&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;We encourage you to attend in person to get full advantage of the meeting and&amp;nbsp;learning&amp;nbsp;from other JMP users. If you&amp;nbsp;are unable to attend&amp;nbsp;you can&amp;nbsp;&lt;A href="https://sas.webex.com/sas/j.php?RGID=r9c943bcfbd997709e1b479e44d3fa15a" target="_blank"&gt;Register &lt;/A&gt;to attend using&amp;nbsp;WebEx&amp;nbsp;.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please reply to Joshua Klick at &lt;/STRONG&gt;&lt;A href="mailto:klick.joshua@bls.gov" target="_blank"&gt;&lt;STRONG&gt;klick.joshua@bls.gov&lt;/STRONG&gt;&lt;/A&gt; &amp;nbsp;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;by 12pm Monday September 25th&amp;nbsp;indicating whether you plan to attend in person or using WebEx&lt;/STRONG&gt;.&amp;nbsp;Instructions to accessWebEx session will be sent to WebEx registrants.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Bios&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Tom Donnelly&lt;/STRONG&gt; works as a Systems Engineer in the JMP® division of SAS®. A physicist by training, he has been actively using and teaching Design of Experiments (DOE) methods for the past 25 years to develop and optimize products, processes and technologies.&lt;/P&gt;&lt;P&gt;Donnelly joined JMP after working as an analyst for the Modeling, Simulation &amp;amp; Analysis Branch of the US Army’s Edgewood Chemical Biological Center at Aberdeen Proving Ground, MD. There, he used DOE to develop, test, and evaluate technologies for detection, protection and decontamination of chemical and biological agents.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Josh Klick&lt;/STRONG&gt; is a Senior Economist with the Bureau of Labor Statistics in the Division of Consumer Prices and Price Indices. His work focuses on the methodology and systems development that supports the construction of the Consumer Price Index (CPI). He also co-chairs the Mid-Atlantic JMP® Users Group (MAJUG). He earned a master’s degree in Public Policy- Economic Development from the University of Minnesota-Twin Cities. He has certifications as a SAS Basic and Advanced Programmer.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mel Alexander&lt;/STRONG&gt; is an Operations Research Analyst with the Social Security Administration (SSA) and Analytician at the University of Maryland’s Medical Center (UMMC). At SSA, he uses SAS® software to ensure proper payments go to eligible beneficiaries. At UMMC, he uses JMP® statistical analytics to help radiologists and neurosurgeons identify key factors that increase patient’s chances of surviving traumatic head, spinal cord, and abdominal injuries. He co-chairs MAJUG and is a section co-chair for the South East SAS Users Group (SESUG) 2017 Conference. He earned a master’s degree in Biostatistics from the University of North Carolina. He is an American Statistical Association member, an American Society for Quality (ASQ) Fellow and Certified Quality Engineer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;MAJUG – Fall Meeting 2017&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Thursday, September 28, 2017&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;8:30 am&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;Eastern Standard Time (New York, GMT-04:30)&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;4.0 hrs&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 26 Sep 2017 17:52:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Mid-Atlantic-JMP-Users-Group/MAJUG-Fall-Meeting-Thursday-Sept-28-2017-SAS-Office-1530-Wilson/m-p/44867#M3</guid>
      <dc:creator>mela_ssa</dc:creator>
      <dc:date>2017-09-26T17:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: MAJUG Fall Meeting, Thursday, Sept. 28, 2017, SAS Office, 1530 Wilson Blvd., from 8:30am-12:30pm</title>
      <link>https://community.jmp.com/t5/Mid-Atlantic-JMP-Users-Group/MAJUG-Fall-Meeting-Thursday-Sept-28-2017-SAS-Office-1530-Wilson/m-p/45330#M4</link>
      <description>&lt;P&gt;clear log() ;&lt;BR /&gt;/*****************************************************************&lt;BR /&gt;This JMP and R Integration script and example uses the&lt;/P&gt;
&lt;P&gt;Alaska pipeline data&amp;nbsp;consisting of in-field ultrasonic&lt;/P&gt;
&lt;P&gt;measurements of the depths of&amp;nbsp;defects in the Alaska pipeline.&lt;BR /&gt; &lt;BR /&gt;The depth of the defects were then re-measured in the laboratory.&lt;BR /&gt;These measurements were performed in six different batches.&lt;BR /&gt;The data were analyzed to calibrate the bias of the field&lt;BR /&gt;measurements relative to the laboratory measurements.&lt;BR /&gt; &lt;BR /&gt;In this analysis, the field measurement is the response variable&lt;BR /&gt;and the laboratory measurement is the predictor variable.&lt;BR /&gt; &lt;BR /&gt;These data were provided by Harry Berger, who was at thetime a scientist for the Office of the Director of the Institute&lt;BR /&gt;of Materials Research (now the Materials Science and Engineering&lt;BR /&gt;Laboratory) of NIST.&lt;BR /&gt; &lt;BR /&gt;These data were used for a study conducted for the Materials&lt;BR /&gt;Transportation Bureau of the U.S. Department of Transportation.&lt;BR /&gt; &lt;BR /&gt;The source of the data came from the following link&lt;BR /&gt;&lt;A href="http://www.itl.nist.gov/div898/handbook/pmd/section6/pmd621.htm" target="_blank"&gt;http://www.itl.nist.gov/div898/handbook/pmd/section6/pmd621.htm&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;***************************************************************/&lt;BR /&gt; &lt;BR /&gt;R Init() ;/* starts the connection to R */&lt;BR /&gt; &lt;BR /&gt;R Submit( "\[&lt;BR /&gt;# load packages&lt;BR /&gt;library (lattice)&lt;BR /&gt; &lt;BR /&gt;## Alaska pipeline ultrasonic calibration case study&lt;BR /&gt;## Create vector with dependent variable, field defect size&lt;BR /&gt;fdef = c(18,38,15,20,18,36,20,43,45,65,43,38,33,10,50,10,50,15,53,60,18, 38,15,&lt;BR /&gt;20,18,36,20,43,45,65,43,38,33,10,50,10,50,15,53,15,37,15, 18,11,35,20,40,50,36,&lt;BR /&gt;50,38,10,75,10,85,13,50,58,58,48,12,63,10, 63,13,28,35,63,13,45,9,20,18,35,20,&lt;BR /&gt;38,50,70,40,21,19,10,33,16,5, 32,23,30,45,33,25,12,53,36,5,63,43,25,73,45,52,&lt;BR /&gt;9,30,22,56,15,45)&lt;BR /&gt; &lt;BR /&gt;## Create vector with independent variable, lab defect size&lt;BR /&gt;ldef = c(20.2,56.0,12.5,21.2,15.5,39.0,21.0,38.2,55.6,81.9,39.5,56.4,40.5,&lt;BR /&gt;14.3,81.5,13.7,81.5,20.5,56.0,80.7,20.0,56.5,12.1,19.6,15.5,38.8, 19.5,38.0,&lt;BR /&gt;55.0,80.0,38.5,55.8,38.8,12.5,80.4,12.7,80.9,20.5,55.0, 19.0,55.5,12.3,18.4,&lt;BR /&gt;11.5,38.0,18.5,38.0,55.3,38.7,54.5,38.0,12.0, 81.7,11.5,80.0,18.3,55.3,80.2,&lt;BR /&gt;80.7,55.8,15.0,81.0,12.0,81.4,12.5, 38.2,54.2,79.3,18.2,55.5,11.4,19.5,15.5,&lt;BR /&gt;37.5,19.5,37.5,55.5,80.0, 37.5,15.5,23.7,9.8,40.8,17.5,4.3,36.5,26.3,30.4,50.2,&lt;BR /&gt;30.1,25.5, 13.8,58.9,40.0,6.0,72.5,38.8,19.4,81.5,77.4,54.6,6.8,32.6,19.8,&lt;BR /&gt;58.8,12.9,49.0)&lt;BR /&gt; &lt;BR /&gt;## Create vector with batch indicator&lt;BR /&gt;bat = c(1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,&lt;BR /&gt;2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,&lt;BR /&gt;4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,&lt;BR /&gt;5,6,6,6,6,6,6,6)&lt;BR /&gt; &lt;BR /&gt;## Save data in a data frame and determine number of observations&lt;BR /&gt;Batch &amp;lt;- as.factor(bat)&lt;BR /&gt;df &amp;lt;- data.frame(fdef,ldef,Batch)&lt;BR /&gt;len &amp;lt;- length(Batch)&lt;BR /&gt;xax = "Lab Defect Size"&lt;BR /&gt;yax = "Field Defect Size"&lt;BR /&gt;title = "Alaska Pipeline Ultrasonic Calibration Data"&lt;BR /&gt;plot(ldef,fdef,xlab=xax,ylab=yax,main=title,col="blue")&lt;BR /&gt; &lt;BR /&gt;## Generate conditional plot&lt;BR /&gt;trellis.device(new = TRUE, col = FALSE)&lt;BR /&gt;FIG = xyplot(fdef ~ ldef | Batch,&lt;BR /&gt;data=df,&lt;BR /&gt; &lt;BR /&gt;main = title,&lt;BR /&gt;layout=c(3,2), col=4,&lt;BR /&gt;xlab=list(xax,cex=1.1), ylab=list(yax,cex=1.1),&lt;BR /&gt;strip=function(...) strip.default(...,strip.names=c(T,T)))&lt;BR /&gt;FIG&lt;BR /&gt; &lt;BR /&gt;## Batch analysis&lt;BR /&gt;x = ldef&lt;BR /&gt;y = fdef&lt;BR /&gt;xydf = data.frame(x,y,Batch)&lt;BR /&gt;out = by(xydf,xydf$Batch,function(x) lm(y~x,data=x))&lt;BR /&gt;lapply(out,summary)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;#&amp;gt; Residual standard error: 1.35 on 5 degrees of freedom&lt;BR /&gt;#&amp;gt; Multiple R-Squared: 0.9956, Adjusted R-squared: 0.9947&lt;BR /&gt;#&amp;gt; F-statistic: 1128 on 1 and 5 DF, p-value: 4.401e-07&lt;BR /&gt;## Save batch regression results&lt;BR /&gt;outs = sapply(out,summary)&lt;BR /&gt;outc = sapply(out,coef)&lt;BR /&gt;fitse = t(outs[6,])&lt;BR /&gt;fitse = c(fitse[[1]],fitse[[2]],fitse[[3]],fitse[[4]],fitse[[5]],fitse[[6]])&lt;BR /&gt;r2 = t(outs[8,])&lt;BR /&gt;r2 = c(r2[[1]],r2[[2]],r2[[3]],r2[[4]],r2[[5]],r2[[6]])&lt;BR /&gt;b0 = t(outc[1,])&lt;BR /&gt;b1 = t(outc[2,])&lt;BR /&gt;## Batch plots&lt;BR /&gt;par(mfrow=c(2,2))&lt;BR /&gt;id = c(1:length(b0))&lt;BR /&gt;xax2 = "Batch Number"&lt;BR /&gt;plot(id,r2,xlab=xax2,ylab="Correlation",ylim=c(.8,1), col="blue",pch=16,cex=1.25)&lt;BR /&gt;abline(h=mean(r2))&lt;BR /&gt; &lt;BR /&gt;plot(id,b0[1,],xlab=xax2,ylab="Intercept",ylim=c(0,8), col="blue",pch=16,cex=1.25)&lt;BR /&gt;abline(h=mean(b0))&lt;BR /&gt; &lt;BR /&gt;plot(id,b1[1,],xlab=xax2,ylab="Slope",ylim=c(.5,.9), col="blue",pch=16,cex=1.25)&lt;BR /&gt;abline(h=mean(b1))&lt;BR /&gt; &lt;BR /&gt;plot(id,fitse,xlab=xax2,ylab="RESSD",ylim=c(0,7), col="blue",pch=16,cex=1.25)&lt;BR /&gt;abline(h=mean(fitse)) &lt;BR /&gt;par(mfrow=c(1,1))&lt;BR /&gt;## Straight line regression analysis&lt;BR /&gt;out = lm(fdef~ldef)&lt;BR /&gt;summary(out)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;## Residual 6-plot&lt;BR /&gt;par(mfrow=c(3,2))&lt;BR /&gt;plot(ldef,fdef,xlab="Lab Defect Size",&lt;BR /&gt; ylab="Field Defect Size",main="Field Defect Size vs Lab Defect Size")&lt;BR /&gt;abline(reg=out)&lt;BR /&gt;plot(ldef,out$residuals,ylab="Residuals",xlab="Lab Defect Size",&lt;BR /&gt; main="Residuals vs Lab Defect Size")&lt;BR /&gt;plot(out$fitted.values,out$residuals,ylab="Residuals",xlab="Predicted",&lt;BR /&gt; main="Residual vs Predicted")&lt;BR /&gt;plot(out$residuals[2:len],out$residuals[1:len-1],ylab="Residuals",&lt;BR /&gt; xlab="Lag 1 Residuals",main="Lag Plot")&lt;BR /&gt;hist(out$residuals,ylab="Frequency",xlab="Residuals",main="Histogram")&lt;BR /&gt;qqnorm(out$residuals,main="Normal Probability Plot")&lt;BR /&gt;## Generate plot of raw data with overlaid regression function&lt;BR /&gt;par(mfrow=c(1,1),cex=1.25)&lt;BR /&gt; &lt;BR /&gt;plot(ldef,fdef,ylab="Field Defect Size",xlab="Lab Defect Size", col="blue")&lt;BR /&gt;abline(reg=out)&lt;BR /&gt;title("Alaska Pipeline Ultrasonic Calibration Data",line=2)&lt;BR /&gt;title("With Unweighted Line",line=1)&lt;BR /&gt; &lt;BR /&gt;## Plot residuals versus lab defect size&lt;BR /&gt;par(mfrow=c(1,1),cex=1.25)&lt;BR /&gt;plot(ldef,out$residuals, xlab="Lab Defect Size", ylab="Residuals",&lt;BR /&gt;main="Alaska Pipeline Data Residuals - Unweighted Fit", cex=1.25, col="blue")&lt;BR /&gt;abline(h=0)&lt;BR /&gt; &lt;BR /&gt;## Transformations of response variable&lt;BR /&gt;lnfdef = log(fdef)&lt;BR /&gt;sqrtfdef = sqrt(fdef)&lt;BR /&gt;invfdef = 1/fdef&lt;BR /&gt; &lt;BR /&gt;## Plot transformed response variable&lt;BR /&gt;par(mfrow=c(2,2))&lt;BR /&gt;xax = "Lab Defect Size"&lt;BR /&gt;plot(ldef,fdef,xlab=xax,ylab="Field Defect Size",col="blue")&lt;BR /&gt;plot(ldef,sqrtfdef,xlab=xax,ylab="Sqrt(Field Defect Size)",col="blue")&lt;BR /&gt;plot(ldef,lnfdef,xlab=xax,ylab="ln(Field Defect Size)",col="blue")&lt;BR /&gt;plot(ldef,invfdef,xlab=xax,ylab="1/Field Defect Size",col="blue")&lt;BR /&gt;title(main="Transformations of Response Variable",outer=TRUE,line=-2)&lt;BR /&gt; &lt;BR /&gt;## Transformations of predictor variable&lt;BR /&gt;lnldef = log(ldef)&lt;BR /&gt;sqrtldef = sqrt(ldef)&lt;BR /&gt;invldef = 1/ldef&lt;/P&gt;
&lt;P&gt;## Plot transformed predictor variable&lt;BR /&gt;par(mfrow=c(2,2))&lt;BR /&gt;yax = "ln(Field Defect Size)"&lt;BR /&gt;plot(ldef,lnfdef,xlab="Lab Defect Size", ylab=yax, col="blue")&lt;BR /&gt;plot(sqrtldef,lnfdef,xlab="Sqrt(Lab Defect Size)", ylab=yax, col="blue")&lt;BR /&gt;plot(lnldef,lnfdef,xlab="ln(Lab Defect Size)", ylab=yax, col="blue")&lt;BR /&gt;plot(invldef,lnfdef,xlab="1/Lab Defect Size", ylab=yax, col="blue")&lt;BR /&gt;title(main="Transformations of Predictor Variable",outer=TRUE,line=-2)&lt;BR /&gt; &lt;BR /&gt;]\" ) ;&lt;BR /&gt; &lt;BR /&gt;/* Create JMP data table from the R data frames */&lt;BR /&gt;Rdf = R Get(df) ;&lt;BR /&gt;Rdf &amp;lt;&amp;lt; NewDataView &amp;lt;&amp;lt; Set Name("R Data frame Table") ;&lt;BR /&gt;/** Use Graph Builder on dtrdf to produce scatter plots **/&lt;BR /&gt;/*Set the Value ordering property for the Batch column so that it&lt;BR /&gt; matched displaying the Trellis Plot in R&lt;BR /&gt;*/ &lt;BR /&gt;Rdf:Batch &amp;lt;&amp;lt; Set Property( "Value Ordering", Eval ( {4, 5, 6, 1, 2, 3} ) ) &amp;lt;&amp;lt;&lt;BR /&gt; Value Labels(&lt;BR /&gt; {1 = "Batch: 1", 2 = "Batch: 2", 3 = "Batch: 3", 4 = "Batch: 4", 5 =&lt;BR /&gt; "Batch: 5", 6 = "Batch: 6"}&lt;BR /&gt; ) &amp;lt;&amp;lt; &lt;BR /&gt; Use Value Labels( 1 )&lt;BR /&gt; ;&lt;BR /&gt;/** use row states to change the plot markers from solid to blank to match R plot ***/ &lt;BR /&gt;Rdf &amp;lt;&amp;lt; Set Row States(&lt;BR /&gt; [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128,&lt;BR /&gt; 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128,&lt;BR /&gt; 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128,&lt;BR /&gt; 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128,&lt;BR /&gt; 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128,&lt;BR /&gt; 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128,&lt;BR /&gt; 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128,&lt;BR /&gt; 128, 128]&lt;BR /&gt; ) &lt;BR /&gt; ; &lt;/P&gt;
&lt;P&gt;Rdf &amp;lt;&amp;lt; Graph Builder(&lt;BR /&gt; Size( 457, 408 ),&lt;BR /&gt; Show Control Panel( 0 ),&lt;BR /&gt; Variables( X( :ldef ), Y( :fdef ), Wrap( :Batch, Levels per Row( 3 ) ) ),&lt;BR /&gt; Elements( Points( X, Y, Legend( 3 ) ) ),&lt;BR /&gt; SendToReport(&lt;BR /&gt; Dispatch(&lt;BR /&gt; {},&lt;BR /&gt; "graph title",&lt;BR /&gt; TextEditBox,&lt;BR /&gt; {Set Text( "Alsaka Pipeline Ultrasonic Calibration Data - JMP" )}&lt;BR /&gt; ),&lt;BR /&gt; Dispatch( {}, "X title", TextEditBox, {Set Text( "Lab Defect Size " )} ),&lt;BR /&gt; Dispatch(&lt;BR /&gt; {},&lt;BR /&gt; "Y title",&lt;BR /&gt; TextEditBox,&lt;BR /&gt; {Set Text( "ln(Field Defect Size)" )}&lt;BR /&gt; ),&lt;BR /&gt; Dispatch( {}, "Graph Builder", FrameBox( 1 ), {Marker Size( 1 )} ),&lt;BR /&gt; Dispatch( {}, "Graph Builder", FrameBox( 2 ), {Marker Size( 1 )} ),&lt;BR /&gt; Dispatch( {}, "Graph Builder", FrameBox( 3 ), {Marker Size( 1 )} ),&lt;BR /&gt; Dispatch( {}, "Graph Builder", FrameBox( 4 ), {Marker Size( 1 )} ),&lt;BR /&gt; Dispatch( {}, "Graph Builder", FrameBox( 5 ), {Marker Size( 1 )} ),&lt;BR /&gt; Dispatch( {}, "Graph Builder", FrameBox( 6 ), {Marker Size( 1 )} ) &lt;BR /&gt; )&lt;BR /&gt;);&lt;/P&gt;
&lt;P&gt;/* Produce plots and regression fits with JMP Analysis platforms */&lt;BR /&gt;/* Get the FIG graph from R and display in JMP &lt;BR /&gt;*/&lt;BR /&gt;R Submit( "\[&lt;BR /&gt;## Generate conditional plot&lt;BR /&gt;trellis.device(new = TRUE, col = FALSE)&lt;BR /&gt;FIG = xyplot(fdef ~ ldef | Batch,&lt;BR /&gt;data=df,&lt;BR /&gt; &lt;BR /&gt;main = title,&lt;BR /&gt;layout=c(3,2), col=4,&lt;BR /&gt;xlab=list(xax,cex=1.1), ylab=list(yax,cex=1.1),&lt;BR /&gt;strip=function(...) strip.default(...,strip.names=c(T,T)))&lt;BR /&gt;FIG&lt;BR /&gt;]\" );&lt;/P&gt;
&lt;P&gt;picture = R Get Graphics( "png" );&lt;BR /&gt;New Window("Alaska Pipeline Ultrasonic Calibration Data from R into JMP", picture) ;&lt;BR /&gt;Wait( 10 );&lt;/P&gt;
&lt;P&gt;/* Box-Cox linearity plot */&lt;/P&gt;
&lt;P&gt;R Submit( "\[&lt;BR /&gt;## Transformations of predictor variable&lt;BR /&gt;lnldef = log(ldef)&lt;BR /&gt;sqrtldef = sqrt(ldef)&lt;BR /&gt;invldef = 1/ldef&lt;/P&gt;
&lt;P&gt;## Box-Cox linearity plot&lt;BR /&gt;for (i in (0:100)){&lt;BR /&gt; alpha = -2 + 4*i/100&lt;BR /&gt; if (alpha != 0){&lt;BR /&gt; tx = ((ldef**alpha) - 1)/alpha&lt;BR /&gt; temp = lm(lnfdef~tx)&lt;BR /&gt; temps = summary(temp)&lt;BR /&gt; if(i==0) {rsq = temps$r.squared&lt;BR /&gt; alp = alpha}&lt;BR /&gt; else {rsq = rbind(rsq,temps$r.squared)&lt;BR /&gt; alp = rbind(alp,alpha)}&lt;BR /&gt; }}&lt;BR /&gt;rcor = sqrt(rsq)&lt;BR /&gt;par(mfrow=c(1,1),cex=1.25)&lt;BR /&gt;plot(alp,rcor,type="l",xlab="Alpha",ylab="Correlation",&lt;BR /&gt; main="Box-Cox Linearity Plot ln(Field) Lab",&lt;BR /&gt; ylim=c(.6,1), col="blue")&lt;/P&gt;
&lt;P&gt;#creaate Correlation and Alpha vectors into BCP data frame&lt;BR /&gt;Corr &amp;lt;- as.vector(rcor)&lt;BR /&gt;Alpha &amp;lt;- as.vector(alp)&lt;BR /&gt;BCP &amp;lt;- data.frame(Corr,Alpha)&lt;/P&gt;
&lt;P&gt;]\" );&lt;BR /&gt;RBCP = R Get(BCP);&lt;BR /&gt;RBCP &amp;lt;&amp;lt; NewDataView &amp;lt;&amp;lt; Set Name("R Data Frame of Alpha-Correlation Table") ;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;/* Graph Box-Cox Linearity Plot from Graph Builder */&lt;BR /&gt;RBCP &amp;lt;&amp;lt; Graph Builder(&lt;BR /&gt; Size( 421, 362 ),&lt;BR /&gt; Show Control Panel( 0 ),&lt;BR /&gt; Variables( X( :Alpha ), Y( :Corr ) ),&lt;BR /&gt; Elements( Smoother( X, Y, Legend( 4 ) ) ),&lt;BR /&gt; SendToReport(&lt;BR /&gt; Dispatch(&lt;BR /&gt; {},&lt;BR /&gt; "graph title",&lt;BR /&gt; TextEditBox,&lt;BR /&gt; {Set Text( "Box-Cox Linearity Plot ln(Field) - JMP" )}&lt;BR /&gt; ),&lt;BR /&gt; Dispatch( {}, "Y title", TextEditBox, {Set Text( "Correlation" )} )&lt;BR /&gt; )&lt;BR /&gt;);&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;BoxCox = R Get Graphics( "png" );&lt;BR /&gt;New Window("Box-Cox Linearity Plot ln(Field) Lab - From R", BoxCox) ;&lt;BR /&gt;Wait( 10 ); &lt;/P&gt;
&lt;P&gt;/*****&lt;/P&gt;
&lt;P&gt;Rxydf &amp;lt;&amp;lt;&lt;BR /&gt;Graph Builder(&lt;BR /&gt; Size( 533, 454 ),&lt;BR /&gt; Show Control Panel( 0 ),&lt;BR /&gt; Variables( X( :x ), Y( :y ) ),&lt;BR /&gt; Elements( Points( X, Y, Legend( 3 ) ) ),&lt;BR /&gt; SendToReport(&lt;BR /&gt; Dispatch(&lt;BR /&gt; {},&lt;BR /&gt; "y",&lt;BR /&gt; ScaleBox,&lt;BR /&gt; {Label Row( Label Orientation( "Horizontal" ) )}&lt;BR /&gt; ),&lt;BR /&gt; Dispatch(&lt;BR /&gt; {},&lt;BR /&gt; "graph title",&lt;BR /&gt; TextEditBox,&lt;BR /&gt; {Set Text( "Alaskan Pipeline Ultrasonic Calibration Data - JMP" )}&lt;BR /&gt; ),&lt;BR /&gt; Dispatch( {}, "X title", TextEditBox, {Set Text( "Lab Defect Size" )} ),&lt;BR /&gt; Dispatch(&lt;BR /&gt; {},&lt;BR /&gt; "Y title",&lt;BR /&gt; TextEditBox,&lt;BR /&gt; {Rotate Text( "Left" ), Set Text( "Field Defect Size" )}&lt;BR /&gt; )&lt;BR /&gt; )&lt;BR /&gt;);&lt;BR /&gt;***/&lt;/P&gt;
&lt;P&gt;/** Do a first initial regression straight-line model fit to the data&lt;/P&gt;
&lt;P&gt;Rxydf &amp;lt;&amp;lt; Bivariate(&lt;BR /&gt; Y( :y ),&lt;BR /&gt; X( :x ),&lt;BR /&gt; Fit Line( {Line Color( {57, 177, 67} )} ),&lt;BR /&gt; SendToReport(&lt;BR /&gt; Dispatch( {"Linear Fit"}, "Lack Of Fit", OutlineBox, {Close( 0 )} )&lt;BR /&gt; )&lt;BR /&gt;);&lt;/P&gt;
&lt;P&gt;**/&lt;/P&gt;
&lt;P&gt;R Term () ; /* terminates connection to R */&lt;/P&gt;</description>
      <pubDate>Sat, 30 Sep 2017 18:13:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Mid-Atlantic-JMP-Users-Group/MAJUG-Fall-Meeting-Thursday-Sept-28-2017-SAS-Office-1530-Wilson/m-p/45330#M4</guid>
      <dc:creator>melvin_alexande</dc:creator>
      <dc:date>2017-09-30T18:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: MAJUG Fall Meeting, Thursday, Sept. 28, 2017, SAS Office, 1530 Wilson Blvd., from 8:30am-12:30pm</title>
      <link>https://community.jmp.com/t5/Mid-Atlantic-JMP-Users-Group/MAJUG-Fall-Meeting-Thursday-Sept-28-2017-SAS-Office-1530-Wilson/m-p/45334#M5</link>
      <description />
      <pubDate>Sat, 30 Sep 2017 22:03:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Mid-Atlantic-JMP-Users-Group/MAJUG-Fall-Meeting-Thursday-Sept-28-2017-SAS-Office-1530-Wilson/m-p/45334#M5</guid>
      <dc:creator>melvin_alexande</dc:creator>
      <dc:date>2017-09-30T22:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: MAJUG Fall Meeting, Thursday, Sept. 28, 2017, SAS Office, 1530 Wilson Blvd., from 8:30am-12:30pm</title>
      <link>https://community.jmp.com/t5/Mid-Atlantic-JMP-Users-Group/MAJUG-Fall-Meeting-Thursday-Sept-28-2017-SAS-Office-1530-Wilson/m-p/45798#M7</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Exploring JMP® Modeling &lt;/STRONG&gt;&lt;STRONG&gt;Functionality Using Consumer Expenditure Data&lt;/STRONG&gt; presentation and example&amp;nbsp;data table&amp;nbsp;with script. CE Public-Use Microdata accessible from: &lt;A href="https://www.bls.gov/cex/pumd_data.htm" target="_blank"&gt;https://www.bls.gov/cex/pumd_data.htm&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example JSL to process R BAS package:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="courier new,courier"&gt;dt = Open(“C:\Desktop\Temp\JMP SESUG Materials\intrvw15\intrvw15\fmly2.jmp”);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="courier new,courier"&gt;R Init ( );&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="courier new,courier"&gt;R Send (dt);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="courier new,courier"&gt;R Submit(“\[&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="courier new,courier"&gt;library(BAS)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="courier new,courier"&gt;library(stats)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="courier new,courier"&gt;library(dplyr)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="courier new,courier"&gt;# Fit the BAS model&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="courier new,courier"&gt;CUEXP_bma = bas.lm(log(TOTEXPCQ) ~ CUTENURE + VEHQ + log(HOUSCQ) + INCLASS + VEHQL + log(SHELTCQ) + &lt;FONT color="#000000" face="courier new,courier"&gt;TOTBATHQ + CHILDAGE + HIGH_EDU + CPIWX_FLAG_REF + CPIWX_FLAG_SPO &lt;FONT color="#000000" face="courier new,courier"&gt;+ FAM_TYPE + FAM_SIZE + REF_RACE,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="courier new,courier"&gt;data = dt,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="courier new,courier"&gt; prior = "BIC", &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="courier new,courier"&gt;modelprior = uniform()&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="courier new,courier"&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="courier new,courier"&gt;CUEXP_bma&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="courier new,courier"&gt;options(width = 100)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="courier new,courier"&gt;summary(CUEXP_bma)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="courier new,courier"&gt;　&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="courier new,courier"&gt;# Root Mean Square Error&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="courier new,courier"&gt;pred.HPM = predict(CUEXP_bma, newdata = dt, estimator = 'HPM', se.fit=TRUE)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="courier new,courier"&gt;# pred.HPM.rmse = sqrt(mean((exp(pred.HPM$fit) - dt$TOTEXPCQ)^2))&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="courier new,courier"&gt;# cat('HPM_RMSE_TOTEXPCQ\n')&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="courier new,courier"&gt;# pred.HPM.rmse&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="courier new,courier"&gt;pred.HPM.rmse2 = sqrt(mean((pred.HPM$fit - log(dt$TOTEXPCQ))^2))&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="courier new,courier"&gt;cat('HPM_RMSE_logTOTEXPCQ\n')&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="courier new,courier"&gt;pred.HPM.rmse2&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="courier new,courier"&gt;# Coverage Probability based on Confidence Interval&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="courier new,courier"&gt;out = as.data.frame(cbind(exp(confint(pred.HPM)), TOTEXPCQ = dt$TOTEXPCQ ))&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="courier new,courier"&gt;colnames(out)[1:2] = c('lwr', 'upr')&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="courier new,courier"&gt;out %&amp;gt;% summarize(COVERAGE_CI = sum(TOTEXPCQ &amp;gt;= lwr &amp;amp; TOTEXPCQ &amp;lt;=upr) / n())&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="courier new,courier"&gt;]\”);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 18:07:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Mid-Atlantic-JMP-Users-Group/MAJUG-Fall-Meeting-Thursday-Sept-28-2017-SAS-Office-1530-Wilson/m-p/45798#M7</guid>
      <dc:creator>josh</dc:creator>
      <dc:date>2017-10-12T18:07:09Z</dc:date>
    </item>
  </channel>
</rss>

