Hi all,
My code looks like this:
"npregress kernel test01 test00
npgraph
margins
marginsplot"
Basically, I want to have a graph of given an x in test00, what is the predicted test01. My professor told me I should do this using margins. However, when I do margins and marginsplot, I only get one point and I think I need a point for many values. Specifically, my professor told me to break test00 in to ten different bins for some scores (1-2, 2-3, 3-4.....) and then predict based on these. Can someone help? I have tried playing around with different things on the margins command but I am getting nowhere.
I want a graph that shows if you have a test00 in between 1-2, your predicted test01 is......and shows this for all the bins I create.
Thank you!
Best,
Lindsey
My code looks like this:
"npregress kernel test01 test00
npgraph
margins
marginsplot"
Basically, I want to have a graph of given an x in test00, what is the predicted test01. My professor told me I should do this using margins. However, when I do margins and marginsplot, I only get one point and I think I need a point for many values. Specifically, my professor told me to break test00 in to ten different bins for some scores (1-2, 2-3, 3-4.....) and then predict based on these. Can someone help? I have tried playing around with different things on the margins command but I am getting nowhere.
I want a graph that shows if you have a test00 in between 1-2, your predicted test01 is......and shows this for all the bins I create.
Thank you!
Best,
Lindsey
Comment