BookmarkSubscribeRSS Feed
Choose Language Hide Translation Bar
Highlighted
powerpuff

Community Trekker

Joined:

Jan 31, 2018

Make Combined data table from Stepwise Regression

I am trying to write a script that would open up another script (which I sort of could do). This opened script generates a report which has a lot of tables and graphs out of which I want only 2 tables to open with 'Make Combined Data Table' and then choose some columns from each of these tables. 

For Example, In the VA lung cancer IC dataset, I want to open up the Generalized Regression part, and then make combined data tables for some of the charts that come up. Thank you for any help or tips you can provide.

1 ACCEPTED SOLUTION

Accepted Solutions
thomasz

Community Trekker

Joined:

Mar 11, 2016

Solution

Re: Make Combined data table from Stepwise Regression

One way to do it:

 

fm=Fit Model(
	Y( :Time 1, :Time 2 ),
	Effects( :Cell Type, :Treatment, :Prior, :Age, :Diag Time, :KPS ),
	Personality( "Generalized Regression" ),
	Generalized Distribution( "Weibull" ),
	Run(
		Fit( Estimation Method( Maximum Likelihood ), Validation Method( None ) ),
		Fit( Estimation Method( Lasso( Adaptive ) ), Validation Method( AICc ) )
	),
	SendToReport( Dispatch( {}, "Maximum Likelihood", OutlineBox, {Close( 1 )} ) )
);
fmr=fm<<report;
fmr[OutlineBox(7)][TableBox(1)]<<Make combined data table;

 

2 REPLIES 2
thomasz

Community Trekker

Joined:

Mar 11, 2016

Solution

Re: Make Combined data table from Stepwise Regression

One way to do it:

 

fm=Fit Model(
	Y( :Time 1, :Time 2 ),
	Effects( :Cell Type, :Treatment, :Prior, :Age, :Diag Time, :KPS ),
	Personality( "Generalized Regression" ),
	Generalized Distribution( "Weibull" ),
	Run(
		Fit( Estimation Method( Maximum Likelihood ), Validation Method( None ) ),
		Fit( Estimation Method( Lasso( Adaptive ) ), Validation Method( AICc ) )
	),
	SendToReport( Dispatch( {}, "Maximum Likelihood", OutlineBox, {Close( 1 )} ) )
);
fmr=fm<<report;
fmr[OutlineBox(7)][TableBox(1)]<<Make combined data table;

 

powerpuff

Community Trekker

Joined:

Jan 31, 2018

Re: Make Combined data table from Stepwise Regression

That helps.. Thanks a lot!!