Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0cbd052

Browse files
committed
Fix typo, wrong variables
1 parent05710ff commit0cbd052

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎R/InsuranceTarif.R‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ InsuranceTarif = R6Class(
753753
q=self$getTransitionProbabilities(params,values);
754754
i=params$ActuarialBases$i
755755
v=1/(1+i)
756-
pvf= PVfactory(qx=q,v=v)
756+
pvf=PVfactory$new(qx=q,v=v)
757757

758758
costs=values$cashFlowsCosts;
759759
pvc=costs*0;
@@ -788,10 +788,10 @@ InsuranceTarif = R6Class(
788788

789789
# Guaranteed + Survival + Death cover + disease
790790
pvc[,,"Benefits",]=
791-
pvf$guaranteed(cf$guaranteed_advance*cfCosts,cf$guaranteed_arrears*cfCosts)+
792-
pvf$survival(cf$survival_advance*cfCosts,cf$survival_arrears*cfCosts)+
793-
pvf$death(cf$death_SumInsured*cfCosts)+
794-
pvf$disease(cf$disease_SumInsured*cfCosts);
791+
pvfben$guaranteed(cf$guaranteed_advance*cfCosts,cf$guaranteed_arrears*cfCosts)+
792+
pvfben$survival(cf$survival_advance*cfCosts,cf$survival_arrears*cfCosts)+
793+
pvfben$death(cf$death_SumInsured*cfCosts)+
794+
pvfben$disease(cf$disease_SumInsured*cfCosts);
795795
}
796796

797797
applyHook(hook=params$Hooks$adjustPresentValuesCosts,val=pvc,params=params,values=values,presentValues=presentValues)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp