Simplifying Stata v-cov matrix writing code
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Domain
- data
Research direction
Read input/InitialPopulations/compile/RegressionEstimates/programs.do around lines 36–51 and compare its putexcel calls with the matrix write in reg_health_mental.do around line 98. Check how the Mata loop handles putexcel and whether writing the matrix in one call is supported; the issue is resolved when the repeated writes no longer cause Excel file lock failures and the covariance matrix is written correctly.
Written by the indexing model from the issue text.
Description
Hi @dav-sonn, brief question with the below, this code is running a little buggy on my computer as it's running the putexcel command a lot of times in quick succession. Sometimes it 'overtakes' itself and crashes as the excel file is still locked by the previous step in the loop:
Previous v-cov writing I thought put the whole matrix in the sheet in one go, e.g.:
Would this new line in programs.do be replaceable with something like:
stata("quietly putexcel C2 = val")
or is this strictly not possible in the new mata-loop setup?
- Dominant language
- Java
- Stars
- 26
- Forks
- 38
- Avg merge
- 15h 18m
- Merged PRs (30d)
- 10
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from simpaths/SimPaths
-
Difficulty 1/5 Under an hour Newbie friendliness 89/100
Maintainers usually reply within 1 day
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Remove insecurity indexPossibly taken @dav-sonn claimed this 1 day ago. Open
simpaths/SimPaths#551 · 1 assignee ·
Maintainers usually reply within 1 day
-
Double hurdle model of labour supplyPossibly taken @dariaple claimed this 2 days ago. Open
simpaths/SimPaths#548 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
All issues in simpaths/SimPaths
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
quarkiverse/quarkus-google-cloud-services#1188 ·
Maintainers usually reply within 1 day
-
Component: Frontend Component: Web Component Type: Maintenance
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
it-at-m/refarch-templates#1944 ·
Maintainers usually reply within 2 days
-
priority: p2 type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
googleapis/java-genai#1372 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 60/100