Description Usage Arguments Value Examples
Names are hard coded, so stick to script in the examples.
1 | calculate_stipw_hh2(data_in = NULL, na.action = "omit")
|
data_in |
an object returned from apply_censoring() |
na.action |
"keep" means the dataset returned will be same number of rows as data_in and "omit" discards all data past censoring observation |
a dataset similar to data_in with stipw in columns; and potentially fewer rows or NA-filled rows for induced censoring.
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
d<-prep_data()
head(d)
over_samp_mat<-sample_data(d,1000)
with_ses <- calculate_ses(over_samp_mat)
long <-make_long(with_ses)
head(long)
censored <- apply_censoring(long)
head(censored,18)
observed_with_stipw <- calculate_stipw(censored,"keep")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.