View source: R/PtotalCat_svy_mean.R
PtotalCat_svy_mean | R Documentation |
Prepare the output for Total Physical Activity Categories (Low, Medium, and High) explained in the GPAQ Analysis Guide at the population level
PtotalCat_svy_mean(Outcome, Group = NULL, Data, id, weights, strata, CLN)
Outcome |
the outcome of interest. PtotalCat is the outcome of interest with three levels "Low", "Moderate", and "High". |
Group |
the group of interest. The default is NULL for when only the outcome variable is in our interest. Group can be any combination of categorical variables. Examples for group can be: ~age4y, ~age4y+sex, ~age4y+UrbanRural+sex, etc. |
Data |
the output object of gpaq function. |
id |
an argument in the "svydesign" function. |
weights |
an argument in the "svydesign" function. |
starta |
an argument in the "svydesign" function. |
CLN |
is the "cln_ptotal" for the analysis of the outcome variable "ptotalCat". |
Output is a matrix with number of rows equal to the combination number of categories for Group arguments and seven columns. The first column indicate the group of interest, columns two to seven are the average and 95 percent confidence intervals for Low, Moderate, and High categories for total physical activity, respectively.
PtotalCat_svy_mean(~ptotalCat,~age4y,Data=Data,id=psu,weights=wstep1,strata =stratum,CLN="cln_ptotal")
PtotalCat_svy_mean(~ptotalCat,~age4y+sex,Data=Data,id=psu,weights=wstep1,strata =stratum,CLN="cln_ptotal")
PtotalCat_svy_mean(~ptotalCat,~age4y+ur+sex,Data=Data,id=psu,weights=wstep1,strata =stratum,CLN="cln_ptotal")
PtotalCat_svy_mean(~ptotalCat,Data=Data,id=psu,weights=wstep1,strata =stratum,CLN="cln_ptotal")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.