Skip to content
/ ilec Public

Contains miscellaneous code fragments from ILEC mortality analysis.

Notifications You must be signed in to change notification settings

pladams/ilec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

pa.glmtree.R

Contains miscellaneous code fragments from ILEC mortality analysis.

This code modifies the glmtree code path from the function in the R partykit package to append a weight applied to the inner GLM fitting code. This is necessary in the presence of offsets in mortality modeling. Offsets are often used as an exposure or expected claims element. In this case, using a weight for the GLM part is inappropriate. However, failing to include weights in the GLM confuses the parameter fluctuation tests which assume then that every row in the data is equally weighted.

PA_TN_GLMtree.html

Output of RMD that reproduces much of the work from the article (although I do not recall whether it reproduces the final output exactly). It demonstrates usage for term products as well a displaying treemaps of the resulting trees.

About

Contains miscellaneous code fragments from ILEC mortality analysis.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published