Skip to content

Instantly share code, notes, and snippets.

# modified from https://tex.stackexchange.com/a/162763/244928 by StackExhange user imriss
"""Copy figures and .tex-files used by document."""
import os
import shutil
import glob
import re
from pathlib import Path
os.chdir(os.path.dirname(__file__)) # working directory to file directory
require(devtools)
#devtools::install_github("benjaminrich/table1")
library(boot)
library(table1)
library(kableExtra)
melanoma2 <- melanoma
# Factor the basic variables that
@samuelsaari
samuelsaari / flh-results.md
Last active January 26, 2022 12:33
Sneak peek at the results of "Family and couple life histories in Europe"

Preliminarily results from the paper "Stable marital histories boost happiness and health across educational groups". Not for dissemination. All rights reserved.

Author: Miika Mäki

Relationship histories with sequence analysis

clusters_and_title Partnership history clusters for Western and Northern Europeans born in 1945 - 1957 at the age of 15 - 60

Associations of relationship histories with wellbeing (women)

multi_sub_life f

#Part03-e12 radial_fade:
import os
import numpy as np
import matplotlib.pyplot as plt
# comment this when submitting
#uncomment when testing locally
os.chdir("C:/Users/fnsuc/OneDrive - University of Helsinki/Tilasto/python_data_analysis/hy-data-analysis-with-python-spring-2020/part03-e12_radial_fade")
print(os. getcwd())
@samuelsaari
samuelsaari / readSHAREsetup.do
Last active November 23, 2021 09:59
readSHARE setup for Stata
// Instructions for setting up readSHARE in Stata
// What is readSHARE?
view browse "https://ideas.repec.org/c/boc/bocode/s458405.html"
// 2.1. Load all the waves that you want to use in the same folder
* In other words, all folders containing the data for a SHARE wave should be found following the same path , for example under "C:/Users/JohnSmith/Documents/SHARE"
* Remember to extract the zip-files.
* We recommend you download all waves at once