Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions SFEtail/SFEtail.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ px = i/n
# DAX
model_dax = lm(log(px[1:m]) ~ log(dax_o[1:m]))

log_k_dax = model$coefficients[1]
log_k_dax = model_dax$coefficients[1]
a_dax = - model$coefficients[2]

plot(log(dax_o[1:m]), log(px[1:m]))
Expand All @@ -44,7 +44,7 @@ abline(model_dax)
# FTSE 100
model_ftse = lm(log(px[1:m]) ~ log(ftse_o[1:m]))

log_k_ftse = model$coefficients[1]
log_k_ftse = mode_ftse$coefficients[1]
a_ftse = - model$coefficients[2]

plot(log(ftse_o[1:m]), log(px[1:m]))
Expand Down Expand Up @@ -99,4 +99,4 @@ mtext(side = 2, "log i/n" , line = 2.5, cex = 1, xaxs = "i")
par(mfrow = plotmfrow, mar = plotmar)

# Remove comment if you want to save plot as jpeg
# dev.print(jpeg, file="SFEtail.jpg", width = 500, height = 375, quality = 100)
# dev.print(jpeg, file="SFEtail.jpg", width = 500, height = 375, quality = 100)