powered by
This generic function should select the selected type of margin based on the class of the dataset and the specified margin type.
gsi.margin(X,...) # S3 method for acomp gsi.margin(X,what,...,margin="acomp") # S3 method for rcomp gsi.margin(X,what,...,margin="rcomp") # S3 method for aplus gsi.margin(X,what,...) # S3 method for rplus gsi.margin(X,what,...)
A marginalized dataset (or vector) still containing the variables given by what and optionally one additional part named '"+"', '"*"' or margin.
what
The dataset to take the margin from.
The indices xor column names to be kept.
The type of marginalisation to be used. Possible values are: '"sub"', '"rcomp"', '"acomp"' and an index xor a name of a variable in the dataset.
other arguments
K.Gerald v.d. Boogaart http://www.stat.boogaart.de, Raimon Tolosana-Delgado
gsi
#data(SimulatedAmounts) #plot(gsi.margin(acomp(sa.lognormals5),c("Cd","Cu")))
Run the code above in your browser using DataLab