Questions tagged [weightit]

7 questions
3
votes
1 answer

Balance plot from R package CBPS

is anyone here familiar with the 'Cobalt' package in R? I am trying to change the title of a balance plot (using bal.plot) and for some reason it's not taking the 'title' option. The default title Distributional Balance for "prop.score" is shown…
a_todd12
  • 449
  • 2
  • 12
2
votes
1 answer

Clustered standard errors with imputed and weighted data in R

I am attempting to get clustered SEs (at the school level in my data) with data that is both imputed (MICE) and weighted (CBPS). I have tried a couple different approaches that have thrown different errors. This is what I have to start, which works…
g_t_b
  • 143
  • 9
2
votes
0 answers

Bootstrapping Time to Event Models for Standard Errors Following weighting propensity score R

Working with time to event data and am weighting cases by the propensity score. I want to examine how methods of variance estimation affect the HR in a cox proportional hazards model. This is the code so…
1
vote
1 answer

Weighted dataset after IPTW using weightit?

I'm trying to get a weighted dataset after IPTW using weightit. Unfortunately, I'm not even sure where to start. Any help would be appreciated. library(WeightIt) library(cobalt) library(survey) W.out <- weightit(treat ~ age + educ + race + married…
Tim
  • 81
  • 6
0
votes
0 answers

Generating Standardised Mean Differences in R

I would like to generate SMD and plot them without including the prediction model in my code; I am using the cobalt package and specifically the loveplot command to generate the plot. However, I would like to just include the probability of…
Magut
  • 151
  • 7
0
votes
1 answer

Producing a "Table 1" with Before and After baseline characteristics in IPTW analysis using WeightIt package

I am trying to produce a classical "before" and "after" table reporting original cohort and pseudopopulation before and after an IPTW analysis using the WeightIt package. Essentially, what I want is something like what is reported in the the example…
userq8957289475
  • 297
  • 1
  • 11
0
votes
1 answer

What weights mean in WeightIt package

I want to balance my data using the WeightIt package in R (method= ebal). I have used a code similar to the one below; #Balancing covariates between treatment groups (binary) W1 <- weightit(treat ~ age + educ + married + nodegree + re74, data =…
Nora
  • 1
  • 1