Search found 1279 matches

by ChrisCharlton
Mon Sep 06, 2021 9:47 am
Forum: R2MLwiN user forum
Topic: level 1 variance poisson model
Replies: 6
Views: 322

Re: level 1 variance poisson model

Other than having < instead of <- in your second line, which shouldn't have an effect on the model, I can't see anything wrong with your specification. Can you check that example 11.3 in chapter 11 of the MCMC guide replication examples on https://www.bristol.ac.uk/cmm/software/r2mlwin/examples/ wor...
by ChrisCharlton
Tue Aug 31, 2021 1:01 pm
Forum: Realcom user forum
Topic: Imputation to level 2 variable: vary within group?
Replies: 5
Views: 527

Re: Imputation to level 2 variable: vary within group?

Thank you very much for confirming this, it does sound like the problem is somewhere within the Matlab code then. The Matlab documentation I linked previously suggests that the data read should remain in double precision, however this documentation is for Matlab 2021a whereas Realcom runs under the ...
by ChrisCharlton
Tue Aug 31, 2021 12:57 pm
Forum: runmlwin user forum
Topic: "invalid name" - runmlwin with MacOS and STATA 15
Replies: 7
Views: 9472

Re: "invalid name" - runmlwin with MacOS and STATA 15

Could you check that the version it is using actually matches the one that you downloaded with the following command?: which runmlwin As I don't believe that the code in your log file: - local mlwinversion `majorver'.`minorver' = local mlwinversion .. . - if "`mlwinversion'" ~= "...&q...
by ChrisCharlton
Thu Aug 12, 2021 3:56 pm
Forum: runmlwin user forum
Topic: Can you stop MLwiN from popping up?
Replies: 9
Views: 8632

Re: Can you stop MLwiN from popping up?

You could try using the scripting-only command line version of MLwiN by setting your MLwiN path to mlnscript.exe from mlwin.exe and see if that works any better.
by ChrisCharlton
Thu Aug 12, 2021 12:39 pm
Forum: runmlwin user forum
Topic: Bootstrap runmlwin
Replies: 21
Views: 2579

Re: Bootstrap runmlwin

If you wanted to avoid cross you could probably do the calculation in Mata, as in my previous example, but this is a bit more complicated. George's code already reduces the size of the dataset used in the prediction by throwing away duplicate combinations in the variables of interest (the duplicates...
by ChrisCharlton
Wed Aug 11, 2021 4:21 pm
Forum: runmlwin user forum
Topic: Bootstrap runmlwin
Replies: 21
Views: 2579

Re: Bootstrap runmlwin

Here are some answers to your questions from George: Why is thinning = 5? I understand that every fifth result is stored but I am not sure I understand why it is done. Should (burnin(#) and chain(#) be increased from the default? To reduce the size of the resulting saved file to make data manipulati...
by ChrisCharlton
Tue Aug 10, 2021 4:01 pm
Forum: runmlwin user forum
Topic: Bootstrap runmlwin
Replies: 21
Views: 2579

Re: Bootstrap runmlwin

George has had a look at this and provided us with an example for linear regression which you should be able to adapt (this is also simpler than mine and avoids using Mata): clear all * Open data use "http://www.bristol.ac.uk/cmm/media/runmlwin/tutorial", clear codebook schgend * Generate ...
by ChrisCharlton
Mon Aug 09, 2021 10:24 am
Forum: Realcom user forum
Topic: Imputation to level 2 variable: vary within group?
Replies: 5
Views: 527

Re: Imputation to level 2 variable: vary within group?

Thank you for confirming the cause of the error. I am curious as to where this apparent truncation is taking place. Would you be able to check the household id column in the file exported from Stata to see whether these high-valued IDs match the original data there? The file is loaded into Realcom-I...
by ChrisCharlton
Wed Aug 04, 2021 3:55 pm
Forum: runmlwin user forum
Topic: Bootstrap runmlwin
Replies: 21
Views: 2579

Re: Bootstrap runmlwin

One way to calculate a prediction with credible intervals, using your previous example would be as follows: clear all use http://www.bristol.ac.uk/cmm/media/runmlwin/bang, clear generate lc1 = (lc==1) generate lc2 = (lc==2) generate lc3plus = (lc>=3) foreach var of varlist hindu urban { bysort distr...
by ChrisCharlton
Wed Aug 04, 2021 2:26 pm
Forum: Realcom user forum
Topic: Imputation to level 2 variable: vary within group?
Replies: 5
Views: 527

Re: Imputation to level 2 variable: vary within group?

Realcom-Impute works out which responses are at each level by checking whether they vary within the provided level identifier. You could check that that the file generated by the Stata 'realcomimpute' command is correct by comparing it with the example on page 6 of the Realcom-Impute guide . The lev...