Skip to main content
MedCalc
Mail a PDF copy of this page to:
(Your email address will not be added to a mailing list)
working
Show menu Show menu

Open data file, select variable in a custom dialog, execute statistical procedures

Scripts example - Open data file, select variable in a custom dialog, execute statistical procedures

// regional settings
$decimalsymbol=".";
$listseparator=",";
// select and open a data file
ReadData();
// define a dialog box
<dialog>
$dlgvar1 Select a variable
$dlgfilter Filter
$option1 Log transformation
</dialog>
// display the dialog box
m=Dialog();
// get the selections from the dialog box 
// and next execute statistical procedures
if (m=1) {
	$variable=$dlgvar1;
	$filter=$dlgfilter;
	$log=$option1;
	proc means;
	proc boxwhisker;
}

See also