Skip to content

Commit

Permalink
Fixing Family problem, closes #53
Browse files Browse the repository at this point in the history
  • Loading branch information
mayrandy committed Apr 5, 2019
1 parent ad864dd commit bbe656b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ LazyLoad: yes
LazyData: yes
License: GPL-2
URL: For source code, development versions and issue tracker see https://github.com/boost-R/gamboostLSS
RoxygenNote: 6.1.1
12 changes: 6 additions & 6 deletions man/families.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,9 @@ newStudentTMu <- function(mu, df){
}

# use the Family constructor of mboost
Family(ngradient = ngradient, risk = risk, loss = loss,
response = function(f) f,
name = "new Student's t-distribution: mu (id link)")
mboost::Family(ngradient = ngradient, risk = risk, loss = loss,
response = function(f) f,
name = "new Student's t-distribution: mu (id link)")
}

## sub-Family for df
Expand All @@ -279,9 +279,9 @@ newStudentTDf <- function(mu, df){
(y - mu)^2 / (1 + (y - mu)^2 / exp(f)) * (exp(-f) + 1)/2)
}
# use the Family constructor of mboost
Family(ngradient = ngradient, risk = risk, loss = loss,
response = function(f) exp(f),
name = "Student's t-distribution: df (log link)")
mboost::Family(ngradient = ngradient, risk = risk, loss = loss,
response = function(f) exp(f),
name = "Student's t-distribution: df (log link)")
}

## families object for new distribution
Expand Down

0 comments on commit bbe656b

Please sign in to comment.