search for: samp_mean

Displaying 1 result from an estimated 1 matches for "samp_mean".

2013 Apr 30
1
Question regarding error "x and y lengths differ"
...an for each one of our samples. Now let¢s compute and plot the confidence intervals for the 50 samples:> m = 50; n = 40; mu = mean(pop); sigma = sd(pop); > SE = sigma/sqrt(n) # Standard error in mean > alpha = 0.10 ; zstar = qnorm(1-alpha/2); # Find z for 90% confidence > matplot(rbind( samp_mean - zstar*SE, samp_mean + zstar*SE),rbind(1:m,1:m), type="l", lty=1); > abline(v=mu) I am receiving the error "Error in xy.coords(x, y, xlabel, ylabel, log = log) : 'x' and 'y' lengths differ" when inputting >matplot(rbind( samp_mean - zstar*SE, samp_mean...