Dear all,
I have the following data. A group identifier for the region (region) a person lives in with a few levels and a continuous variable that gives the number of free days in a region (days). So days depends on the region apparently, but two different regions can have the same number of free days. Both vars have missing values (so when region is missing, days is always missing as well). There are some more variables that need to be imputed. When I impute this dataset, how can I achieve that both variables are used as predictors for the overall imputation process but days is imputed depending on the region?
To give a concrete example:
Region A has 10 free days.
Case X has a missing on region. The algorithm decides that region A is the most probable and assigns this level. Automatically, days must be set to 10 for this case.
I would like to use PMM as imputation algorithm for all variables. Sorry if passive is the wrong term used here.
Related Posts with Imputing a passive variable
getting multiple variables information in one variable after importing txt fileAfter importing delimited using abcd.txt data this is the following output I'm getting on my data ed…
Strange Clustering Result from rdrobustI notice that when I use the package rdrobust, I can easily replicate the resulting point estimate b…
Strange Clustering Results from rdrobustI notice that when I use the package rdrobust, I can easily replicate the resulting point estimate b…
Adding baseline variables to a linear mixed modelHello everyone, I am really new to Stata, so my apologies if it's a simple question or if I misunde…
Run Seemingly unrelated regression (SUREG) with one of the explanatory variable being latentHi All I have difficulty running an SUREG translog cost function where one of my independent variabl…
Subscribe to:
Post Comments (Atom)
0 Response to Imputing a passive variable
Post a Comment