AddAResponse: AddAResponse

Description Usage Arguments Value Examples

View source: R/Simulation.R

Description

AddAResponse

Usage

1
AddAResponse(RandoDataFrame, nobs = NA, ResponseUnit = "", RespValues)

Arguments

RandoDataFrame

a TrainRandoSubj object with the randomization data

nobs

the number of observations in the dataset by default the number of rows in RandoDataFrame

ResponseUnit

a character string with the unit of the response

RespValues

can be a fixed value intercept which will be repeated nobs times or a numerical vector of the same lenght than nobs.

Value

response TrainRandoResp object with a response variable (dependent variable)

Examples

1
2
data("myArms","myRandoDataFrame","myprogfact")
myResponse <- AddAResponse(RandoDataFrame=myRandoDataFrame, ResponseUnit='Weight (in kg)',RespValues=70)

NicDubois/trainingrando documentation built on March 13, 2020, 5:33 a.m.