group_mean | R Documentation |
각 범주별 평균벡터를 추정한다. group_mean
returns mean of each variable within each
group.
group_mean(.data, .group_var, .xvar)
.data |
관측 데이터 프레임. A raw data frame. |
.group_var |
범주변수. A variable to group by. |
.xvar |
평균벡터에 포함될 변수. One or more variables separated by commas within |
이 함수는 데이터 프레임 .data
내의 범주변수 .group_var
의 범주별로 .xvar
에 주어진
변수들에 대한 관측 데이터의 평균을 범주별 평균벡터로 추정한다. This function aggregated .data
into .group_var
level to have a column .group_var
as group
variable and columns .xvar
that represent group mean value of
.xvar
in the original data .data
.
리스트 형태로, 각 리스트의 원소는 각 범주의 평균벡터를 나타낸다. A list of mean vector, that each list element represent each group,
and has a vector of mean of .xvar
.
data(binaryclass2, package = "dmtr") group_mean(binaryclass2, class, c(x1, x2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.