Example data "not available in teaching version"
Posted: Fri Jan 05, 2018 3:19 pm
Hi!
I installed MLwiN on my school device and run -runmlwin- command with the example data as a test. But an error box pop up saying the "data imported is not available in teaching version". The code went OK when I ran it on my laptop, and the install file is the same one. My Stata version is StataSE 15.0 with the license of my uni.
The Stata code I used is as below (after installation)
Would appreciated if anyone can help with that!
KR
Melanie
I installed MLwiN on my school device and run -runmlwin- command with the example data as a test. But an error box pop up saying the "data imported is not available in teaching version". The code went OK when I ran it on my laptop, and the install file is the same one. My Stata version is StataSE 15.0 with the license of my uni.
The Stata code I used is as below (after installation)
Code: Select all
* Set full path of MLwiN
global MLwiN_path "C:\Program Files\MLwiN teaching version\mlwin.exe"
* TEST using CMM default example
* Setup
use http://www.bristol.ac.uk/cmm/media/runmlwin/bang, clear
generate lc1 = (lc==1)
generate lc2 = (lc==2)
generate lc3plus = (lc>=3)
* 2-Lv RI (fitted using IGLS MQL1, RI:district)
runmlwin use cons lc1 lc2 lc3plus age, ///
level2(district: cons) ///
level1(woman) ///
discrete(distribution(binomial) link(logit) denominator(cons)) nopause
* 2-Lv RS (IGLS PQl2, RI:district, RS:hindu)
runmlwin use cons lc1 lc2 lc3plus age, ///
level2(district: cons hindu) ///
level1(woman) ///
discrete(distribution(binomial) link(logit) denominator(cons) pql2) ///
nopause
* Unordered MNL, 2-Lv RS (RI:district, RS:hindu)
runmlwin use4 cons lc1 lc2 lc3plus, ///
level2(district: cons hindu) ///
level1(woman) ///
discrete(distribution(multinomial) link(mlogit) denom(cons) basecategory(4))
KR
Melanie