cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-471183%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EJSL%EC%9D%84%20%EC%82%AC%EC%9A%A9%ED%95%98%EC%97%AC%20Fit%20%EB%AA%A8%EB%8D%B8%20%ED%94%8C%EB%9E%AB%ED%8F%BC%EC%9D%98%20%ED%94%84%EB%A1%9C%ED%8C%8C%EC%9D%BC%EB%9F%AC%EC%97%90%EC%84%9C%20%EB%A7%8C%EC%A1%B1%EB%8F%84%20%EA%B3%B5%EC%8B%9D%20%EC%A0%80%EC%9E%A5%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-471183%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%EC%95%88%EB%85%95%ED%95%98%EC%84%B8%EC%9A%94%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFit%20%EB%AA%A8%EB%8D%B8%20%ED%94%8C%EB%9E%AB%ED%8F%BC%EC%9D%84%20%EC%82%AC%EC%9A%A9%ED%95%98%EC%97%AC%20%EB%A7%8C%EC%A1%B1%EB%8F%84%20%ED%95%A8%EC%88%98%EB%A5%BC%20%EC%83%9D%EC%84%B1%ED%95%98%EB%8A%94%20%EC%9D%BC%EB%B6%80%20JMP%20%EB%B6%84%EC%84%9D%EC%9D%84%20%EC%9E%90%EB%8F%99%ED%99%94%ED%95%98%EB%A0%A4%EA%B3%A0%20%ED%95%A9%EB%8B%88%EB%8B%A4.%20%ED%98%84%EC%9E%AC%20JSL%20%EC%BD%94%EB%93%9C%EB%A5%BC%20%EC%82%AC%EC%9A%A9%ED%95%98%EC%97%AC%20%EC%A0%81%ED%95%A9%20%EB%AA%A8%EB%8D%B8%20%ED%94%8C%EB%9E%AB%ED%8F%BC%EC%9D%84%20%EC%8B%9C%EC%9E%91%ED%95%98%EA%B3%A0%20%ED%94%8C%EB%9E%AB%ED%8F%BC%EC%97%90%20%ED%94%84%EB%A1%9C%ED%8C%8C%EC%9D%BC%EB%9F%AC%EB%A5%BC%20%EC%B6%94%EA%B0%80%ED%95%A0%20%EC%88%98%20%EC%9E%88%EC%A7%80%EB%A7%8C%20%EB%A7%88%EC%A7%80%EB%A7%89%20%EB%8B%A8%EA%B3%84%EC%97%90%EC%84%9C%20%EA%B4%80%EB%A0%A8%20%EB%A7%8C%EC%A1%B1%EB%8F%84%20%EA%B3%B5%EC%8B%9D%EC%9D%84%20%EB%8D%B0%EC%9D%B4%ED%84%B0%20%ED%85%8C%EC%9D%B4%EB%B8%94%EC%9D%98%20%EC%83%88%20%EC%97%B4%EC%97%90%20%EC%A0%80%EC%9E%A5%ED%95%98%EA%B3%A0%20%EC%8B%B6%EC%A7%80%EB%A7%8C%20%EC%9D%B4%EA%B2%83%EC%9D%B4%20%EC%9E%91%EB%8F%99%ED%95%98%EC%A7%80%20%EC%95%8A%EC%8A%B5%EB%8B%88%EB%8B%A4.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%EB%82%B4%EA%B0%80%20%EC%96%B4%EB%96%BB%EA%B2%8C%20%ED%95%B4%EC%95%BC%20%ED%95%98%EB%8A%94%EC%A7%80%EC%97%90%20%EB%8C%80%ED%95%9C%20%EC%A0%9C%EC%95%88%EC%9D%B4%20%EC%9E%88%EC%8A%B5%EB%8B%88%EA%B9%8C%3F%20%EB%8B%A4%EC%9D%8C%EC%9D%80%20%EB%82%B4%EA%B0%80%20%EC%98%88%EC%A0%9C%EB%A1%9C%20%EC%82%AC%EC%9A%A9%ED%95%98%EB%8A%94%20%EA%B2%83%EA%B3%BC%20%EC%9C%A0%EC%82%AC%ED%95%9C%20%EC%BD%94%EB%93%9C%EC%9E%85%EB%8B%88%EB%8B%A4.%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(%201%20)%3B%0Adt%20%3D%20Open(%20%22%24SAMPLE_DATA%2FDrug.jmp%22%20)%3B%0A%0Aobj%20%3D%20dt%20%26lt%3B%26lt%3B%20Fit%20Model(%0A%20Y(%20%3Ay%20)%2C%0A%20Effects(%20%3ADrug%2C%20%3Ax%20)%2C%0A%20Personality(%20Standard%20Least%20Squares%20)%2C%0A%20Run%20Model()%0A)%3B%0A%0A%0Aobj%20%26lt%3B%26lt%3B%20Profiler(1)%3B%0Aobj%20%26lt%3B%26lt%3B%20Save%20Desirability%20Formula%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%EB%AF%B8%EB%A6%AC%20%EA%B0%90%EC%82%AC%ED%95%A9%EB%8B%88%EB%8B%A4!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-471183%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3E%EB%8D%B0%EC%9D%B4%ED%84%B0%20%ED%85%8C%EC%9D%B4%EB%B8%94%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8C%85%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-471221%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20JSL%EC%9D%84%20%EC%82%AC%EC%9A%A9%ED%95%98%EC%97%AC%20Fit%20%EB%AA%A8%EB%8D%B8%20%ED%94%8C%EB%9E%AB%ED%8F%BC%EC%9D%98%20%ED%94%84%EB%A1%9C%ED%8C%8C%EC%9D%BC%EB%9F%AC%EC%97%90%EC%84%9C%20%EB%A7%8C%EC%A1%B1%EB%8F%84%20%EA%B3%B5%EC%8B%9D%20%EC%A0%80%EC%9E%A5%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-471221%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%EB%B6%80%EB%B6%84%EC%A0%81%EC%9C%BC%EB%A1%9C%20%EC%88%98%ED%96%89%ED%95%98%EB%8A%94%20%EA%B5%AC%EB%AC%B8%EC%9D%B4%20%ED%99%95%EC%8B%A4%ED%95%98%EC%A7%80%20%EC%95%8A%EC%A7%80%EB%A7%8C%20%EC%9E%91%EB%8F%99%ED%95%98%EB%8A%94%20%EA%B2%83%20%EA%B0%99%EC%8A%B5%EB%8B%88%EB%8B%A4.%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(%201%20)%3B%0Adt%20%3D%20Open(%20%22%24SAMPLE_DATA%2FDrug.jmp%22%20)%3B%0A%0Aobj%20%3D%20dt%20%26lt%3B%26lt%3B%20Fit%20Model(%0A%20Y(%20%3Ay%20)%2C%0A%20Effects(%20%3ADrug%2C%20%3Ax%20)%2C%0A%20Personality(%20Standard%20Least%20Squares%20)%2C%0A%20Run%20Model()%0A)%3B%0A%0Aobj%20%26lt%3B%26lt%3B%20Profiler(1%2C%20Desirability%20Functions(1)%2C%20Save%20Desirability%20Formula)%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%EB%A8%BC%EC%A0%80%20%ED%94%84%EB%A1%9C%ED%8C%8C%EC%9D%BC%EB%9F%AC%EB%A5%BC%20%EB%A7%8C%EB%93%A0%20%EB%8B%A4%EC%9D%8C%20%EB%B0%94%EB%9E%8C%EC%A7%81%ED%95%A8%20%EA%B8%B0%EB%8A%A5%EC%9D%84%20%ED%99%9C%EC%84%B1%ED%99%94%ED%95%98%EA%B3%A0%20%EB%A7%88%EC%A7%80%EB%A7%89%EC%9C%BC%EB%A1%9C%20%EA%B3%B5%EC%8B%9D%EC%9D%84%20%EC%A0%80%EC%9E%A5%ED%95%B4%EC%95%BC%20%ED%95%A9%EB%8B%88%EB%8B%A4.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-471240%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20JSL%EC%9D%84%20%EC%82%AC%EC%9A%A9%ED%95%98%EC%97%AC%20Fit%20%EB%AA%A8%EB%8D%B8%20%ED%94%8C%EB%9E%AB%ED%8F%BC%EC%9D%98%20%ED%94%84%EB%A1%9C%ED%8C%8C%EC%9D%BC%EB%9F%AC%EC%97%90%EC%84%9C%20%EB%A7%8C%EC%A1%B1%EB%8F%84%20%EA%B3%B5%EC%8B%9D%20%EC%A0%80%EC%9E%A5%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-471240%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%EA%B0%90%EC%82%AC%ED%95%A9%EB%8B%88%EB%8B%A4.%20%EC%9E%98%20%EC%9E%91%EB%8F%99%ED%95%A9%EB%8B%88%EB%8B%A4.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
DavideGrossi
Level II

Save desirability formula from a profiler in the Fit model Platform using JSL

Hello, 

 

I am trying to automate some JMP analysis where I generate a desirability function using the Fit model platform. With the current JSL code I can launch the fit model platform and add the profiler to the platform, but in the last step I would like to save the associated desirability formula to a new column in the data table and this does not work.

 

Do you have suggestions on how I should to this? Here is a piece of code similar to what I am using as an example

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Drug.jmp" );

obj = dt << Fit Model(
	Y( :y ),
	Effects( :Drug, :x ),
	Personality( Standard Least Squares ),
	Run Model()
);


obj << Profiler(1);
obj << Save Desirability Formula;

 Thank you in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Save desirability formula from a profiler in the Fit model Platform using JSL

I'm not sure about the syntax to do it in parts, but this seems to work:

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Drug.jmp" );

obj = dt << Fit Model(
	Y( :y ),
	Effects( :Drug, :x ),
	Personality( Standard Least Squares ),
	Run Model()
);

obj << Profiler(1, Desirability Functions(1), Save Desirability Formula);

First you have to create profiler, then enable desirability functions and finally save the formula.

-Jarmo

View solution in original post

2 REPLIES 2
jthi
Super User

Re: Save desirability formula from a profiler in the Fit model Platform using JSL

I'm not sure about the syntax to do it in parts, but this seems to work:

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Drug.jmp" );

obj = dt << Fit Model(
	Y( :y ),
	Effects( :Drug, :x ),
	Personality( Standard Least Squares ),
	Run Model()
);

obj << Profiler(1, Desirability Functions(1), Save Desirability Formula);

First you have to create profiler, then enable desirability functions and finally save the formula.

-Jarmo
DavideGrossi
Level II

Re: Save desirability formula from a profiler in the Fit model Platform using JSL

Thank you very much, this works nicely

Recommended Articles