Spss

Páginas: 2 (365 palabras) Publicado: 3 de enero de 2013
. set mem 400m, permanently
(409600k)
(set memory preference recorded)

. use "D:\stata intermedio\Sumaria.dta", clear

. do "C:\DOCUME~1\alumno\CONFIG~1\Temp\STD00000000.tmp"

.program define median, rclass
1. version 8
2. args var1 var2
3.
. quietly summarize `var1' [w=`var2'], detail
4. local var1=r(p50)
5. returnscalar mediana=`var1'
6. end

.
end of do-file

. median
invalid syntax
r(198);

. median ingotrhd factorto

. return list

scalars:
r(mediana) = 0

. mediangashog2d factorto

. return list

scalars:
r(mediana) = 2616

. bootstrap "median" r(mediana), reps(100)

command -> median
an error occurred when command was executed onoriginal dataset
please rerun bootstrap and specify the trace option to see a trace of the commands bootstrap executed
r(198);

. bootstrap "median gashog2d factorto" r(mediana), reps(100)command: median gashog2d factorto
statistic: _bs_1 = r(mediana)

Warning: Since median is not an estimation command or does not set e(sample), bootstrap has no wayto determine which observations are used in calculating the statistics and so assumes that
all observations are used. This means no observations will be excluded from theresampling
due to missing values or other reasons.

If the assumption is not true, press Break, save the data, and drop the observations that
are to be excluded. Besure the dataset in memory contains only the relevant data.


Bootstrap statistics Number of obs = 18598Replications = 100

------------------------------------------------------------------------------
Variable | Reps Observed Bias Std. Err. [95% Conf. Interval]...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • spss
  • Spss
  • Spss
  • spss
  • SPSS
  • Spss
  • spss
  • spss

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS