ClinReport (version 0.9.1.1)

regroup: regroup method for desc object

Description

regroup regroup 2 desc objects of different type.desc (quanti and quali) in a single desc object of type quali_quanti.

Usage

regroup(x, y, ...)

# S3 method for desc regroup(x, y, rbind.label = "Response", ...)

Arguments

x

A desc object

y

A desc object

...

Other parameters

rbind.label

Character. The label for rbind column header

Value

A desc object of type.desc="quali_quanti"

Details

It's only possible to regroup statistics for desc objects with one and only one explicative variable. So it works if and only if x1 argument in x and y objects is not NULL and is the same and if x2 argument is NULL in both x and y objects.

The function takes the y.label argument of object x and y respectively as label for the levels of the new column created under the name of rbind.label (see example below)

See Also

report.quali report.quanti report.doc desc

Examples

Run this code
# NOT RUN {
data(data)

tab1=report.quanti(data=data,y="y_numeric",
	x1="GROUP",subjid="SUBJID",y.label="Y numeric")

tab2=report.quali(data=data,y="y_logistic",
	x1="GROUP",subjid="SUBJID",y.label="Y logistic")

regroup(tab1,tab2,rbind.label="The label of your choice")



# }

Run the code above in your browser using DataCamp Workspace