You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Correcting non-positive definite matrices and misspecification related to starting values
Correcting non-positive definite matrices and misspecification related
to starting values
In OpenMx, as model complexity grows, the higher the chance of not
setting starting values that will help the optimizer reach a solution.
This is particularly true for longitudinal models. This post aims at
defining a set of rules that can help you define good starting points
and also present what is current available. Starting values can lead to
time-consuming, annoying errors and thinking about them during model
The ggplot2 plus syntax is a much better fit for what I was attempting. For model building, summing models makes more sense than piping them. And also, the code needed to implement this is much shorter. So for something like:
Mx.wrap(): Using R-base pipes to create OpenMx models
Mx.wrap(): Using R-base pipes to create OpenMx models
TLDR: Create OpenMx models using pipes.
Pipes (|) were introduced in bash in order to facilitate I/O redirection. Together with the UNIX tools, manipulation of data
becomes very simple and short to write. In R the concept of the pipe came much more recently, with the magrittr package within
the context of dplyr and tidy tools manifesto. One fundamental
decision was to name the dplyr tools so that they can be read as verbs, which helps with memorizing what each tool does,
in contrast to the less obvious naming of the UNIX tools.
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 8 columns, instead of 2. in line 7.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
R IDE for R statistics, data analysis and a bit of Nim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The previous posts showed how to manage complex documents with pandoc. This last post on the subject will aim at sharing a few yaml headers for presentation and one yaml header for a report. It is very hard to give a good example without images, so this post will have a few of them.
Pandoc can render presentations using the Beamer option. One can run the beamer command with pandoc myfile.md -o presentation.pdf -t beamer. You won't probably need to install anything else, as beamer and the Metropolis theme comes installed in most of modern LaTeX repositories. What I will be doing is a trick to make it look different, by changing the variables within the yaml header.