actnorm: actnorm : The probability of an event when all subjects are...

Description Usage Arguments Value Author(s) Examples

View source: R/actnorm.R

Description

This function is used to estimate the probability of an event assuming all the subjects are are assigned the treatment group. The predictive biomarker is assumed to have a normal distribution with mean nu and variance sigma squared.

Usage

1
actnorm(coeff, dpar)

Arguments

coeff

The coefficients obtained from fitting the log linear model and must be a vector of length four

dpar

The parameters of the biomarker which has a normal distribution and must be of a vector legnth two

Value

A value of the estimated probability and must be a number between 0 and 1

Author(s)

Henok Woldu

Examples

1
2
3
  # Let coff is a vector of length four with each elemnt represent the value of the coefficients of the model
  # Let dpar is a vector of legnth two such that the  mean= 2.3 and variance = 0.2 of the predictive biomarker are given
  eventactive <- actnorm(coff, dpar=c(2.3,0.2))

henok535/RMPB documentation built on May 17, 2019, 11:08 a.m.