Hi everyone, few hours ago I was having problems posting here something with rich text, so I hope everything goes fine now. I have a very small dataset of a survey of perceptions. I have six variables that are already means ( s1 s2...) and I have one variable with the name of the company I'm new working with matrix so I'm still having a hard time I want a matrix with the name of the company as row and the mean as colums this is my code, but it's not working # matrix drop _all matrix pearson=J(11, 6, .) scalar drop _all local c = 1 foreach x of varlist s1 s2 s3 s4 s5 s6 { local a = 1 foreach n of varlist cooperativa { svy: table `n', c( mean `x') matrix pearson[`a',`c']=e(mean) local a = `a' + 1 } local c = `c' + 1 } # stata output with this code is: "table is not supported by svy with vce(linearized); see help svy estimation for a list of Stata estimation commands that are supported by svy r(322);" Any ideas what I'm doing wrong or what should I do I would very much appreciate any help
↧