14.03.2014 Views

Scripting Guide - SAS

Scripting Guide - SAS

Scripting Guide - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix A JSL Syntax Reference 653<br />

R Integration Functions<br />

Weibull Distribution(x, shape, )<br />

Description<br />

Returns the cumulative distribution function at quantile x for the Weibull distribution with the<br />

parameters given.<br />

Weibull Quantile(p, shape, )<br />

Description<br />

Returns the pth quantile from the Weibull distribution with the parameters given.<br />

R Integration Functions<br />

R Connect( )<br />

Description<br />

Initializes the R integration interfaces and returns an active R integration interface connection as a<br />

scriptable object.<br />

Returns<br />

R scriptable object.<br />

Arguments<br />

Echo(Boolean) Optional. Sends all source lines to the JMP log. This option is global. The default<br />

value is true.<br />

R Execute( { list of inputs }, { list of outputs }, rCode,<br />

)<br />

Description<br />

Submit the specified R code to the active global R connection given a list of inputs. On completion, the<br />

outputs are returned into the specified list.<br />

Returns<br />

0 if successful; nonzero otherwise.<br />

Arguments<br />

{ list of inputs } A list of JMP variable names to be sent to R as inputs.<br />

{ list of outputs } A list of JMP variable names to contain the outputs returned from R.<br />

rCode A quoted string that contains the R code to submit.<br />

Expand(Boolean) An optional, Boolean, named parameter. Performs an Eval Insert() on the R<br />

code before submitting to R.<br />

Echo(Boolean) An optional, Boolean, named parameter. Sends all source lines to the JMP log. This<br />

option is global. The default value is true.<br />

Example<br />

Send the JMP variables x and y to R, execute the R statement z

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!