Het_func: The Model of Heterogeneity Decision Attitudes

Description Usage Arguments Value Examples

View source: R/manual R codes.r

Description

Return the overall success rate (OSR) based on the model of heterogeneity decision attitudes (optimistic/pessimistic).

Usage

1
Het_func(iter, N, a, b, u, v)

Arguments

iter

the times of randomly generated from W distribution.

N

the number of patients to be treated

a, b

the true success rates of two arms A and B treatment

u, v

two shape parameters of the distributions of decision attitudes w.

Value

the mean of iter times of OSR

Examples

1
2
3
4
5
6
7
8
library(combinat) 
iter<-50
N<-10
a<-0.8
b<-0.6
u<-5
v<-5
Het_func(iter,N,a,b,u,v)

ryamada22/SelfDecABP documentation built on May 28, 2019, 10:44 a.m.