domingo, 21 de enero de 2018
Análisis de fiablidad en R
Los interesados en realizar análisis de fiabilidad (reliability analysis) de escalas en R pueden encontrar útil este tutorial.
jueves, 18 de enero de 2018
Evidence-based debate
Algunos temas sobre los que podría realizarse un debate basado en evidencias:
- Efectividad de las encuestas de los estudiantes
- Beneficios y problemas del teletrabajo
- Cubrir puestos directivos con personal de la empresa o personal externo
sábado, 28 de octubre de 2017
Cascades tolerance of scale-free networks with attack cost
Citation
Chen Hong, Nai-Yu Yin, Oriol Lordan, Ning He, Jose M Sallan (2017). Cascades tolerance of scale-free networks with attack cost. International Journal of Computational Intelligence Systems, 10(1):1330-1336.
UPCommons: http://hdl.handle.net/2117/109280
Abstract
Network robustness against cascades is a major topic in the fields of complex networks. In this paper, we propose an attack-cost-based cascading failure model, where the attack cost of nodes is positively related to its degree. We compare four attacking strategies: the random removal strategy (RRS), the low-degree removal strategy (LDRS), the high-degree removal strategy (HDRS) and the genetic algorithm removal strategy (GARS). It is shown that the network robustness against cascades is heavily affected by attack costs and the network exhibits the weakest robustness under GARS. We also explore the relationship between the network robustness and tolerance parameter under these attacking strategies. The simulation results indicate that the critical value of tolerance parameter under GARS is greatly larger than that of other attacking strategies. Our work can supply insight into the robustness and vulnerability of complex networks corresponding to cascading failures.
Chen Hong, Nai-Yu Yin, Oriol Lordan, Ning He, Jose M Sallan (2017). Cascades tolerance of scale-free networks with attack cost. International Journal of Computational Intelligence Systems, 10(1):1330-1336.
UPCommons: http://hdl.handle.net/2117/109280
Abstract
Network robustness against cascades is a major topic in the fields of complex networks. In this paper, we propose an attack-cost-based cascading failure model, where the attack cost of nodes is positively related to its degree. We compare four attacking strategies: the random removal strategy (RRS), the low-degree removal strategy (LDRS), the high-degree removal strategy (HDRS) and the genetic algorithm removal strategy (GARS). It is shown that the network robustness against cascades is heavily affected by attack costs and the network exhibits the weakest robustness under GARS. We also explore the relationship between the network robustness and tolerance parameter under these attacking strategies. The simulation results indicate that the critical value of tolerance parameter under GARS is greatly larger than that of other attacking strategies. Our work can supply insight into the robustness and vulnerability of complex networks corresponding to cascading failures.
domingo, 10 de septiembre de 2017
Writing books using bookdown
A recent development of R universe is bookdown, a package to write your book in markdown.
Here are some examples:
Here are some examples:
- The Unix workbench, by Sean Kross
- Data visualization for social sciences with R and ggplot2, by Kieran Healey
- Geocomputation with R, by Robin Lovelace, Jakub Nowosad, Jannes Muenchow
- Advanced R, by Hadley Wickham
- R packages, by Hadley Wickham
- R for data science, by Garrett Grolemund y Hadley Wickham
- Blogdown: creating websites with R markdown, by Yihui Xie, Amber Thomas, Alison Presmanes Hill
viernes, 25 de agosto de 2017
emacs: comandos básicos
Glosario
C es la tecla CTRL, así que C c es igual a CTRL+c
M es la tecla meta o ALT, así que M x es igual a ALT+x
DEL es la tecla alargada con una flecha hacia la izquierda. Puede haber alguna tecla llamada del o supr, pero no es DEL
SPC es la barra espaciadora, y RET es la tecla de return.
C x b significa teclear primero CTRL+x, y luego b. C x C b significa teclear x y b mientras se mantiene CTRL pulsado.
Abriendo y cerrando sesión
C x C f abre (encuentra) un buffer o archivo. Usualmente al hacer RET emacs entra en modo dired, que permite navegar por los archivos del ordenador.
C x C b muestra un buffer con la lista de buffers
C x b para ir a un buffer concreto
Guardar y salir
C x C w guardar el buffer actual en otro archivo
C x C s salvar los cambios del buffer activo
C x s salvar buffers abiertos
M x nombre-archivo salvar el archivo actual con otro nombre
C z suspender emacs
C x C c cerrar emacs
Navegando en el documento
Estos comandos son equivalentes a las flechas del teclado:
C n avanza una línea (new line)
C p retrocede una línea (previous line)
C f avanza el cursor una posición
C b retrocede el curso una posición
C v avanza una página
M v retrocede una página
C l centra la página en el cursor, si se repite el comando lleva el cursor a la parte superior
M f avanza una palabra
M b retrocede una palabra
Para ir al inicio o al final:
C a inicio de línea
C e final de línea
M a inicio de frase
M e final de frase
M < inicio del documento
M > final del documento
Borrar, eliminar y pegar
Para borrar:
DEL borra carácter anterior
C d borra carácter siguiente
M DEL borra palabra anterior
M d borra palabra siguiente
C k borra hasta el fin de la línea
M k borra hasta el final de la frase
C SPC inicia selección de una región. El comando C x h selecciona todo el buffer.
C w elimina la selección (en terminología usual, corta)
C y inserta la última selección eliminada
M y inserta selecciones anteriores
emacs no "olvida" la última selección eliminada, así que para copiar hay que hacer Cw Cy, y luego hacer C y en el lugar en que se desee copiar. Para dejar de marcar una región, también se ha de hacer Cw Cy.
C / o C _ Deshacer este (y otros) comandos
Buscar y reemplazar
Comandos de búsqueda incremental:
C s buscar hacia adelante del texto
C r buscar hacia atrás
Cuando se ejecuta el comando, hay que entrar la cadena a buscar. Luego se puede ir a la siguiente ocurrencia haciendo C s, o a la anterior haciendo C r
M % búsqueda con reemplazo
Ventanas
C x 1 cerrar todas las ventanas menos la actual
C x 2 abrir una nueva ventana debajo de la actual con el mismo buffer
C x 3 abrir una nueva ventana a la derecha de la actual con el mismo buffer
C x 4 C f abrir un nuevo archivo en una ventana debajo de la actual
C x 5 C f cerrar la actual ventana y abrir un nuevo archivo en otra
C x o llevar el cursor activo a otra ventana
C M v desplazar los contenidos de otra ventana sin moverse de la actual
Comandos
M x ejecuta una función de emacs. Por ejemplo M x replace-string realiza una sustitución de cadena de caracteres.
Pedir ayuda
C h t leer el tutorial
C h c + comando breve descripción del comando
C h k + comando abre nueva ventana con ayuda sobre el comando
C h m ayuda sobre el medio
C es la tecla CTRL, así que C c es igual a CTRL+c
M es la tecla meta o ALT, así que M x es igual a ALT+x
DEL es la tecla alargada con una flecha hacia la izquierda. Puede haber alguna tecla llamada del o supr, pero no es DEL
SPC es la barra espaciadora, y RET es la tecla de return.
C x b significa teclear primero CTRL+x, y luego b. C x C b significa teclear x y b mientras se mantiene CTRL pulsado.
Abriendo y cerrando sesión
C x C f abre (encuentra) un buffer o archivo. Usualmente al hacer RET emacs entra en modo dired, que permite navegar por los archivos del ordenador.
C x C b muestra un buffer con la lista de buffers
C x b para ir a un buffer concreto
Guardar y salir
C x C w guardar el buffer actual en otro archivo
C x C s salvar los cambios del buffer activo
C x s salvar buffers abiertos
M x nombre-archivo salvar el archivo actual con otro nombre
C z suspender emacs
C x C c cerrar emacs
Navegando en el documento
Estos comandos son equivalentes a las flechas del teclado:
C n avanza una línea (new line)
C p retrocede una línea (previous line)
C f avanza el cursor una posición
C b retrocede el curso una posición
C v avanza una página
M v retrocede una página
C l centra la página en el cursor, si se repite el comando lleva el cursor a la parte superior
M f avanza una palabra
M b retrocede una palabra
Para ir al inicio o al final:
C a inicio de línea
C e final de línea
M a inicio de frase
M e final de frase
M < inicio del documento
M > final del documento
Borrar, eliminar y pegar
Para borrar:
DEL borra carácter anterior
C d borra carácter siguiente
M DEL borra palabra anterior
M d borra palabra siguiente
C k borra hasta el fin de la línea
M k borra hasta el final de la frase
C SPC inicia selección de una región. El comando C x h selecciona todo el buffer.
C w elimina la selección (en terminología usual, corta)
C y inserta la última selección eliminada
M y inserta selecciones anteriores
emacs no "olvida" la última selección eliminada, así que para copiar hay que hacer Cw Cy, y luego hacer C y en el lugar en que se desee copiar. Para dejar de marcar una región, también se ha de hacer Cw Cy.
C / o C _ Deshacer este (y otros) comandos
Buscar y reemplazar
Comandos de búsqueda incremental:
C s buscar hacia adelante del texto
C r buscar hacia atrás
Cuando se ejecuta el comando, hay que entrar la cadena a buscar. Luego se puede ir a la siguiente ocurrencia haciendo C s, o a la anterior haciendo C r
M % búsqueda con reemplazo
Ventanas
C x 1 cerrar todas las ventanas menos la actual
C x 2 abrir una nueva ventana debajo de la actual con el mismo buffer
C x 3 abrir una nueva ventana a la derecha de la actual con el mismo buffer
C x 4 C f abrir un nuevo archivo en una ventana debajo de la actual
C x 5 C f cerrar la actual ventana y abrir un nuevo archivo en otra
C x o llevar el cursor activo a otra ventana
C M v desplazar los contenidos de otra ventana sin moverse de la actual
Comandos
M x ejecuta una función de emacs. Por ejemplo M x replace-string realiza una sustitución de cadena de caracteres.
Pedir ayuda
C h t leer el tutorial
C h c + comando breve descripción del comando
C h k + comando abre nueva ventana con ayuda sobre el comando
C h m ayuda sobre el medio
miércoles, 9 de agosto de 2017
Unix, bash shell, git and GitHub references
A list of resources for Unix and bash shell scripting:
The Wikibooks page of bash shell scripting:
https://en.wikibooks.org/wiki/Bash_Shell_Scripting
The Unix workbench, the book of Sean Kross:
https://github.com/seankross/the-unix-workbench
The introductory page to GitHub:
https://guides.github.com/activities/hello-world/
A formal introduction to git:
https://git-scm.com/book/en/v2/Getting-Started-Git-Basics
A more straitghtforward introduction to git:
http://rogerdudler.github.io/git-guide/
A tutorial to use GNU screen to manage persistent terminal sessions:
https://www.linode.com/docs/networking/ssh/using-gnu-screen-to-manage-persistent-terminal-sessions
The GNU screen manual
https://www.gnu.org/software/screen/manual/screen.html
Feel free to report additional resources!
The Wikibooks page of bash shell scripting:
https://en.wikibooks.org/wiki/Bash_Shell_Scripting
The Unix workbench, the book of Sean Kross:
https://github.com/seankross/the-unix-workbench
The introductory page to GitHub:
https://guides.github.com/activities/hello-world/
A formal introduction to git:
https://git-scm.com/book/en/v2/Getting-Started-Git-Basics
A more straitghtforward introduction to git:
http://rogerdudler.github.io/git-guide/
A tutorial to use GNU screen to manage persistent terminal sessions:
https://www.linode.com/docs/networking/ssh/using-gnu-screen-to-manage-persistent-terminal-sessions
The GNU screen manual
https://www.gnu.org/software/screen/manual/screen.html
Feel free to report additional resources!
jueves, 27 de julio de 2017
Robustness of airline route networks
Citation
Lordan, Oriol; Sallan, Jose M; Escorihuela, Nuria; Gonzalez-Prieto, David (2015). Robustness of airline route networks, Physica A: Statistical Mechanics and its Applications, 445:18-26.
doi: http://dx.doi.org/10.1016/j.physa.2015.10.053
Abstract
Airlines shape their route network by defining their routes through supply and demand considerations, paying little attention to network performance indicators, such as network robustness. However, the collapse of an airline network can produce high financial costs for the airline and all its geographical area of influence. The aim of this study is to analyze the topology and robustness of the network route of airlines following Low Cost Carriers (LCCs) and Full Service Carriers (FSCs) business models. Results show that FSC hubs are more central than LCC bases in their route network. As a result, LCC route networks are more robust than FSC networks.
Lordan, Oriol; Sallan, Jose M; Escorihuela, Nuria; Gonzalez-Prieto, David (2015). Robustness of airline route networks, Physica A: Statistical Mechanics and its Applications, 445:18-26.
doi: http://dx.doi.org/10.1016/j.physa.2015.10.053
Abstract
Airlines shape their route network by defining their routes through supply and demand considerations, paying little attention to network performance indicators, such as network robustness. However, the collapse of an airline network can produce high financial costs for the airline and all its geographical area of influence. The aim of this study is to analyze the topology and robustness of the network route of airlines following Low Cost Carriers (LCCs) and Full Service Carriers (FSCs) business models. Results show that FSC hubs are more central than LCC bases in their route network. As a result, LCC route networks are more robust than FSC networks.
Suscribirse a:
Entradas (Atom)