regroup

0th

Percentile

regroup method for desc object

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

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)

Value

A desc object of type.desc="quali_quanti"

See Also

report.quali report.quanti report.doc desc

Aliases
  • regroup
  • regroup.desc
Examples
# 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")



# }
Documentation reproduced from package ClinReport, version 0.9.1.1, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.