Saltar al contenido principal
MedCalc
Enviar una copia en PDF de esta página a:
(Su dirección de correo electrónico no se añadirá a una lista de distribución)
working

Scripts: lista de comandos y construcciones

Alert(mensaje [, botones ]) genera un mensaje en la pantalla.

AppendColumn(tname,vrow1,vrow2,...) agrega una columna en el lado derecho de una tabla.

AppendColumn(tname,matrix) agrega los valores de una matriz en el lado derecho de una tabla.

AppendFile(nombre_archivo) abre el archivo con el nombre nombre_archivo (el texto nuevo se agrega al archivo existente).

AppendRow(tname,vcol1,vcol2,...) agrega una fila a una tabla.

AppendRow(tname,matrix) agrega los valores de una matriz en la parte inferior de una tabla.

Beep genera un pitido en la computadora.

Bootstrap(procedimiento,bucles,nombrematriz) crea una matriz que contiene la distribución de muestreo bootstrap de varios parámetros estimados en un procedimiento estadístico.

BootstrapCI(procedimiento,bucles,ci,nombretabla) crea una tabla que contiene intervalos de confianza de bootstrap ci% de varios parámetros estimados en un procedimiento estadístico.

BootstrapBCaCI(procedimiento,bucles,ci,nombretabla) crea una tabla que contiene intervalos ci% de bootstrap corregidos por sesgo y acelerados (BCa) de varios parámetros estimados en un procedimiento estadístico.

BoxCoxParams(var [, filter ], lambda,shift) estima un valor óptimo para Lambda y el parámetro shift para una transformación Box-Cox o de potencia.

Break interrumpe un bucle.

Clear covariates borra las variables del sistema $covariates[1] a $covariates[24].

Clear data borra todos los datos de la hoja de cálculo.

Clear mem Elimina o borra todas las variables del espacio de trabajo.

CloseFile(nombre de archivo) cierra el archivo para escritura.

CloseMainWindow cierra la ventana principal de MedCalc.

CloseScriptWindow Cierra la ventana del script.

Cls borra el contenido del marco de salida.

Continue rompe una iteración en un bucle.

Copy(var) copia el contenido de var al portapapeles de Windows.

CreateColumn(nombre) crea una nueva variable de hoja de cálculo en una columna de hoja de cálculo libre con el nombre de encabezado de columna.

CreateFile(filename) creates a text file

CreateHTML(filename) creates a html file

<Data> </Data> defines a data block.

DefineStatus(variable,value,positive) defines a status for a dichotomous outcome variable.

Delay(msec) delays execution of the script.

<Dialog> </Dialog> defines a custom dialog box.

Dialog() displays a custom dialog box.

Do { statementblock; } while (condition); the statement block is executed until the condition is not true.

>Echo ON | OFF turns on or off the command echoing feature.

Exec(command) executes the given command.

FileList([ path,][ mask ]) lists files into a table.

FillColumn(column,fromrow,torow,content,emptyonly [, convertformula ]) fills a column in the spreadsheet.

For (initialization; condition; increment) { statementblock; } the statement block is executed a number of times.

ForEach enumeration [sort] as variablename { statementblock; } the ForEach loop is executed for each element in the enumeration. In each loop, the element of the enumeration is assigned to the workspace variable variablename

FormatTable(tname,formatstring) formats a table.

FormatTableCell(tname,row,column,formatstring) formats a table cell.

FormatTableColumn(tname,column,formatstring) formats a table column.

FormatTableRow(tname,row,formatstring) formats a table row.

Function myfunc([ param1,param2,...]) declares a function.

GetOpenFilename([ path,][ mask ]) displays a dialog in which the user can select a file for reading; the function returns the selected file.

GetSaveFilename([ path,][ mask ]) displays a dialog in which the user can select a file for writing; the function returns the selected file.

Global(variable1 [, variable2) marks the listed variables used in a function as global.

Halt stops execution of the script.

If (condition) { statementblock; } executes the statement block conditionally.

Input(message,type) creates a dialog box for a single input.

Jackknife(procedure,matrixname) creates a matrix containing the jackknife sampling distribution of various parameters estimated in a statistical procedure.

JackknifeSE(procedure,tablename) creates a table containing the jackknife estimates of bias and standard error.

LocateColumn(name) locates the column with column header name in the spreadsheet, and returns the column number.

Loop { statementblock; } statements inside the loop are executed repeatedly.

Paste(column [, row ]) places the content of the clipboard in the spreadsheet at the coordinates column and row.

PrependColumn(tname,vrow1,vrow2,...) inserts a column at the left side of a table.

PrependColumn(tname,matrix) inserts the values of a matrix at the left side of a table.

PrependRow(tname,vcol1,vcol2,...) inserts a row at the top of a table.

PrependRow(tname,matrix) inserts the values of a matrix at the top of a table.

Print(foo) prints the value or variable foo in the command console.

PrintLn advances the cursor in the output frame to the next line.

Proc(procedure [, tablename ]) invokes a statistical procedure or graph.

Randomize(seed) resets the MedCalc random number generator.

ReadData(filename) loads a datafile into the spreadsheet.

Return returns a value from a function.

SaveData(filename) saves the spreadsheet data.

SaveGraph(filename,graphid) saves a graph on disk.

SelectFolder() displays a dialog in which the user can select a disk folder; the function returns the selected folder.

SetColumnDefault(column,content) sets a default value or formula for a column in the spreadsheet.

SetColumnFormat(column,format) sets the format of the spreadsheet column column.

Table(tname) creates a table in memory.

ViewFile(filename) opens the file in a web browser.

While (condition) { statementblock; } the statement block is executed while a condition is true.

Write(nombre de archivo,datos) escribe los datos como texto en un archivo.

WriteLn(nombre_archivo) escribe una nueva línea en un archivo.

Véase también