intervalPVA(responses, data, times.factor = "Days", start.time, end.time, nvarselect = NULL, p.variance = 1, include = NULL, plot = TRUE, ...)character giving the names of the columns in
data from which the variables are to be selected.data.frame containing the columns of variables from which the
selection is to be made.character giving the name of the column in
data containing the factor for times at which the data was
collected. Its levels will be used to identify the subset and
should be numeric values stored as characters.numeric giving the time,
in terms of a level of times.factor, at which the time interval
begins; observations at this time and up to and including end.time
will be included.numeric giving the time,
in terms of levels of times.factor, at the end of the interval;
observations after this time will not be included.numeric specifying the number of variables to be selected,
which includes those listed in include. If nvarselect = 1, as
many variables are selected as is need to satisfy p.variance.numeric specifying the minimum proportion of the variance
that the selected variables must account for,character giving the names of the columns in
data for the variables whose selection is mandatory.logical indicating whether a plot of the cumulative proportion
of the variance explained is to be produced.data.frame giving the results of the variable selection.
It will contain the columns Variable, Selected,
h.partial, Added.Propn and Cumulative.Propn.
nvarselect = NULL and p.variance = 1) select all variables in
increasing order of amount of information they provide;
nvarselect variables;
nvarselect variables, to explain
at least p.variance*100 per cent of the total variance.
PVA, rcontribdata(exampleData)
responses <- c("Area","Area.SV","Area.TV", "Image.Biomass", "Max.Height","Centre.Mass",
"Density", "Compactness.TV", "Compactness.SV")
results <- intervalPVA(responses, longi.dat,
start.time = "31", end.time = "31",
p.variance=0.9, plot = FALSE)
Run the code above in your browser using DataLab