Tuesday, 15 January 2013

survey - How to do "Weight by..." (SPSS function) in R? ... trying to weigh Likert Scale responses -


Resolved ... short

< P> So, I did not find an exact function / package to fix it, but I thought someone on reddit had said about having the frequency number .... and so I get a dumber way to get the calculation found it. I reduced the data based on the required lintoret values ​​and then I ran an amount (x) / zodiac (all) function, where x is the subset and all the weight is the sum of ... and the numbers were checked out Kindly know that this is ugly code ... but I think what weight is doing and I can think of optimizing it with other things which I am in R.


My boss asked me to help some surveys to see the data, but I do not have an additional SPSS or State License to run on the computer. I can not show it how to do this with my setup. . Instead, try "Allow me" to download R and try it.

I know that the SPSS has a "get by ..." option, and you choose the column with weight and POF ... then you do all your calculations.

I'm trying to figure out how to do this, and I'm reading the weight package and survey package.

The first calculation I need to run is a lecture scale column and my weight vectors are these large numbers: 121958 125463 99638 125463 102539 181061 126367 125463

The form of part of the interview process I used to test a figure, and they used me for SPSS and then I just applied the weight ... I do not remember, but I think that according to the analysis of LICTS, SPSS was very easy.

They want (as a%) lot and extremely / total responses ....

It is not helping to say that I am about this internship I'm worried. My boss gave a sound like they actually tried me and doing something with the data made me realize one thing, but they do not know how to program in R and they have some open with SPSS or State There are no seats, which they know how to use ... so that they can not really give me any direction about fulfilling this. ... and of course he said, "Do not worry, we do not need you ..." But I'm dying to do something in this internship, and I really want to know how to do this ... I do not know how to find out how to do it.

I saw it on the stack overflow, but seeing the xtabs help files also can not find any way to apply to my data file. I tried this code

Xtabs (weight ~ FWGT, data = data2)

error in as.data.frame.default (data, xtabs (weight ~ FWGT, data2 = df) ) 0

My weight is vector < Error (expr, envir, enclos): object 'weight' and my data set data2 / Code>

the feet here When I searched around the stack overflow:

I will write in SPSS

weight by weight.

and after that order the data will be weighed according to all the processes

xtabs (weight ~ UH6401, data = df)

/ div>

< You can find the document here

P>

div>

No comments:

Post a Comment