Switch to unified view

a b/man/FromDataSimParam-class.Rd
1
% Generated by roxygen2: do not edit by hand
2
% Please edit documentation in R/fromDataSimParam.R
3
\docType{class}
4
\name{FromDataSimParam-class}
5
\alias{FromDataSimParam-class}
6
\alias{FromDataSimParam.class}
7
\title{An S4 class containing the function required
8
to simulate conditional survival times}
9
\description{
10
An S4 class containing the function required
11
to simulate conditional survival times
12
}
13
\section{Slots}{
14
15
\describe{
16
\item{\code{type}}{A character string describing the distribution used
17
for example "Weibull"}
18
19
\item{\code{generateParameterFunction}}{A function with a single parameter Nsim which returns
20
a matrix with Nsim rows and columns Id(=1:Nsim) and the specific parameters needed by
21
conditionalFunction below. In the Weibull case these are the specific rate and shape 
22
parameters used for each simulation}
23
24
\item{\code{conditionalFunction}}{A function with the following arguments t.conditional, params, HR.
25
t.conditional is a vector of current survival times, params is a row of the matrix returned
26
by generateParameterFunction and HR is a vector of 1s for subjects in control arm and the hazard ratio 
27
for subjects in the active arm (if HR argument to simulate is NULL then this is a vector of 1s). The function
28
then returns a vector of event times.}
29
30
\item{\code{parameters}}{A list of parameters used for the simulation. For the Weibull this is
31
rate, shape and sigma (the uncertainty matrix of the parameters - specifically the covariance matrix from survreg)}
32
}}
33