# Selected Publications

### A two-stage estimation procedure for non-linear structural equation models

Applications of structural equation models (SEMs) are often restricted to linear associations between variables. Maximum likelihood …

### Modeling the cumulative incidence function of multivariate competing risks data allowing for within-cluster dependence of risk and timing

We propose to model the cause-specific cumulative incidence function of multivariate competing risks data using a random effects model …

### Cox regression with missing covariate data using a modified partial likelihood method

Missing covariate values is a common problem in survival analysis. In this paper we propose a novel method for the Cox regression model …

### The liability threshold model for censored twin data

Family studies provide an important tool for understanding etiology of diseases, with the key aim of discovering evidence of family …

### Linear latent variable models: the lava-package

An R package for specifying and estimating linear latent variable models is presented. The philosophy of the implementation is to …

### Measuring early or late dependence for bivariate lifetimes of twins

We consider data from the Danish twin registry and aim to study in detail how lifetimes for twin-pairs are correlated. We consider …

### Convergence of Markov Chains in Information Divergence

Information theoretic methods are used to prove convergence in information divergence of reversible Markov chains. Also some ergodic …

# Recent Posts

### Shift register (input)

The 74HC165 is an 8-bit parallel-load or serial-in shift register.

Wiring:

• Pin 8 (GND): GND
• Pin 16 (VCC): Voltage 5V
• Pin 11-14 & 3-6 (A-H): Input 1-8
• Pin 1 (SH/LD): shift/load pin
• Pin 2 (CLK): Clock pin
• Pin 9 (QH): Data output pin
• Pin 15 (CLK INH): Clock-inhibit pin (or GND)

Clocking is accomplished by a low-to-high transition of the clock (CLK) input while SH/LD is held high and CLK INH is held low. CLK INH can be wired to GND to save a pin on the microcontroller. Unused inputs pins should be grounded as well.

Multiple 74HC165 ICs can be daisy chained by wiring the serial-out pin 9 (QH) to pin 10 (SER) of the succeeding IC allowing us to tie multiple 74165 ICs together that can be controlled using only 3 pins.

### Regression models for the relative risk


Let $$Y$$ be the binary response, $$A$$ binary exposure, and $$V$$ a vector of covariates, then the target parameter is

\begin{align*} &\mathrm{RR}(v) = \frac{\pr(Y=1\mid A=1, V=v)}{\pr(Y=1\mid A=0, V=v)}. \end{align*}

Let $$p_a(V) = \pr(Y \mid A=a, V), a\in\{0,1\}$$, then the idea is to posit a linear model for $\theta(v) = \log \big(RR(v)\big)$ and a nuisance model for the odds-product $\phi(v) = \log\left(\frac{p_{0}(v)p_{1}(v)}{(1-p_{0}(v))(1-p_{1}(v))}\right)$ noting that these two parameters are variation independent. Similarly, a model can be constructed for the risk-difference on the following scale $\theta(v) = \mathrm{arctanh} \big(RD(v)\big).$

### Shift register (output)

Here I consider the 74HC595 - an 8-bit serial-in/serial or parallel-out shift register with a storage register and 3-state outputs.

If higher load is required there is also the TPIC6C595 (e.g., for driving LEDs), or it should be paired with for example ULN2803 or similar. For multiple inputs see the 74HC165.

The basic usage is to serially transfer a byte from a microcontroller to the IC. When latched the byte will then in parallel be available on output pins QA-QH (Q0-Q7).