Learn R Programming

radiant (version 0.1.95)

pre_factor: Evaluate if data are appropriate for PCA / Factor analysis

Description

Evaluate if data are appropriate for PCA / Factor analysis

Usage

pre_factor(dataset, pf_var, data_filter = "")

Arguments

dataset
Dataset name (string). This can be a dataframe in the global environment or an element in an r_data list from Radiant
pf_var
Variables to include in the analysis
data_filter
Expression entered in, e.g., Data > View to filter the dataset in Radiant. The expression should be a string (e.g., "price > 10000")

Value

A list with all variables defined in the function as an object of class pre_factor

Details

See http://vnijs.github.io/radiant/marketing/pre_factor.html for an example in Radiant

See Also

summary.pre_factor to summarize results

plot.pre_factor to plot results

Examples

Run this code
result <- pre_factor("diamonds",c("price","carat","table"))

Run the code above in your browser using DataLab