关于Excel数据指标分析,已经上传到个人资源,以下是链接,需要的小伙伴可自取。
Excel数据分析工具库(t检验、Z检验、方差分析、回归、协方差、相关系数、双样本方差分析)
https://download.youkuaiyun.com/download/wenyusuran/16344167
变量可以简单地分为连续变量和分类变量(类别变量),分类变量又可以分为名义变量(包括二分类变量和无序多分类变量)和等级变量(有序多分类变量)。分类变量在R中称为因子。因子在R中很重要,可以影响到数据的分析方式。
函数factor()可以将向量编码成因子,对分类变量的每一个水平(原始值)赋值为一个整数,并以整数向量的形式储存起来。
factor {base}: The function factor is used to encode a vector as a factor (the terms "category" and "enumerated type" are also used for factors). If argument ordered is TRUE, the factor levels are assumed to be ordered. For compatibility with S there is also a function ordered.