I want to create a summary statistics table in r for transformed variables. The variables are X, Y and Z. These variables have their original values. A summary statistics table can be created in R like this:
dataSumStatTable <- my.dataframe %>% select(X,Y,Z)
sum1 <- sumtable(dataSumStatTable,
summ=c('min(x)','mean(x)','max(x)','sd(x)','notNA(x)'),
title="Summary Statistics",
summ.names=c('Min','Mean','Max','SD','Observations'),
col.align=c('center','center','center', 'center', 'center'),
labels=c('X',
'Y',
'Z',
group.long = TRUE,
digits = 2,
fixed.digits = TRUE,
align = TRUE,
out = "viewer")
However, I am using these variables in regression models where all variables are in log. How can I create a summary statistics table for my variables in log?