weight - R: using bootstrapping and weighted data -
i have 2 variables i'd analyze 2x2 table, easy enough.
datatable=table(data$q1data1, data$q1data2) summary(datatable)
however, need weight each variable separately using 2 frequency weighting variables have. far, i've found wtd.chi.sq
function in weights
package, allows weight both variables same weighting variable.
in addition, need perform 2x2 chi-square 1000 times using bootstrapping or resampling method, can peek @ distribution of p-values.
i've been searching around day no luck. i'm hoping here can point me in right direction.
Comments
Post a Comment