Choose Language Hide Translation Bar

## How to extract Parameter Estimates of Reciprocals (i.e. make into data table) derived from Bivariates Fit Special?

First of all, my Bivariate Analysis works well. Unfortunately "Make Into Data Table"-Reporting doesn't (meaning, jmp does not create any output table).

I applied the following script:

dt = Current Data Table ();

biv = dt << Bivariate(

Y( :Y ),

X( :X ),

Fit Special(

xTran( "Reciprocal" ),

{Line Color( "BlueCyan" ), Line Width( 2 )}

));

//Note: Parameter Estimates are in TableBox3

rep = Report (biv ) [TableBox(3)]  << Make Combined Data Table;

Do you know the correct scipt for exporting the parameter estimates to a new table?

I really would appreciate your help so much!

2 REPLIES 2

## Re: How to extract Parameter Estimates of Reciprocals (i.e. make into data table) derived from Bivariates Fit Special?

You were very close . . .

NamesDefaultToHere(1);

// Data

dt = New Table ("X and Y",

NewColumn("X", Numeric, Continuous, Formula(RandomNormal())),

NewColumn("Y", Numeric, Continuous, Formula(RandomNormal())),

NewColumn("By", Numeric, Nominal, Formula(RandomInteger(1, 3))),

);

// Biveriate analysis: biv is a list, one item for each level of the 'By' variable

biv = dt << Bivariate(

Y( :Y ),

X( :X ),

By( :By ),

Fit Special(

xTran( "Reciprocal" ),

{Line Color( "BlueCyan" ), Line Width( 2 )}

)

);

// A reference to the report layer: bivRep is also a list

bivRep = biv << Report;

// 'Make Combined Data Table' avoids having to message to each item in 'bivRep'

dt2 = bivRep  [TableBox(3)]  << Make Combined Data Table;

Highlighted

## Re: How to extract Parameter Estimates of Reciprocals (i.e. make into data table) derived from Bivariates Fit Special?

Hi,

I am trying the solution proposed by Ian_JMP, but I am unable to extract the parameters from the 'bivRep' object. I am regressing Y by X and I have 5 'By' variables.

My log shows the following:

bivRep = biv << Report;
/*:

List( 5 elements ) assigned.

//:*/
dt2 = bivRep  [TableBox(3)] << Make Combined Data Table;
/*:

Cannot subscript Display Box in access or evaluation of 'bivRep[Table Box(3)]' , bivRep[/*###*/Table Box( 3 )]

In the following script, error marked by /*###*/
dt2 = bivRep[/*###*/Table Box( 3 )] << Make Combined Data Table

So I can get a list 'bivRep' with 5 elements (one for each by variable I presume), but the the indexing of the elements within the list doesn't work. What am I doing wrong?

Thanks.
{"ft_lang_label":"__label__en","ft_lang_prob":0.7720743,"math_prob":0.87467396,"size":2046,"snap":"2019-51-2020-05","text_gpt3_token_len":588,"char_repetition_ratio":0.11165524,"word_repetition_ratio":0.14577259,"special_character_ratio":0.31524926,"punctuation_ratio":0.17357513,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98700154,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-01-26T19:06:51Z\",\"WARC-Record-ID\":\"<urn:uuid:f8ebf8f1-9833-457a-be8b-065869269b64>\",\"Content-Length\":\"671146\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:e45e460f-97e8-4411-bd25-625085b351c4>\",\"WARC-Concurrent-To\":\"<urn:uuid:cbec30df-45b4-46e2-93f4-5084d8f0f97d>\",\"WARC-IP-Address\":\"208.74.205.23\",\"WARC-Target-URI\":\"https://community.jmp.com/t5/Discussions/How-to-extract-Parameter-Estimates-of-Reciprocals-i-e-make-into/m-p/233328\",\"WARC-Payload-Digest\":\"sha1:TLK5P6J6VXTF53FPQC6AMVNGRXVVIVY3\",\"WARC-Block-Digest\":\"sha1:A4SNL2SUDGFC5XVSMYJQTHTFAG53U3JY\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-05/CC-MAIN-2020-05_segments_1579251690095.81_warc_CC-MAIN-20200126165718-20200126195718-00211.warc.gz\"}"}