問題タブ [weighting]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
412 参照

r - Translating Stata Code to R: survey weights

I'm trying to weight survey data in R. I'm using Stata code as a reference.

The code used on that program to weight my data was:

I translated that code into R code like this:

However I am unsure whether this is a correct translation and if I am applying this correctly in R. Any insight and suggestions would be greatly appreciated!