| | *Unverified author* | R Software Module: /rwasp_histogram.wasp (opens new window with default values) | Title produced by software: Histogram | Date of computation: Tue, 22 Feb 2011 15:58:04 +0000 | | Cite this page as follows: | Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/Feb/22/t12983901202lf9asmg9vehr4m.htm/, Retrieved Tue, 22 Feb 2011 16:55:20 +0100 | | Original text written by user: | | | IsPrivate? | No (this computation is public) | | User-defined keywords: | KDGP1W22 | | Dataseries X: | » Textbox « » Textfile « » CSV « | 5127
4837
5430
4646
4492
4332
4481
4399
4173
4667
4649
5490
6358
5076
4776
4582
4545
4410
4442
4484
4046
4486
4685
4896
5540
4567
4935
4543
4812
4476
4409
4383
4212
4312
4446
5137
5988
4872
4914
4850
4558
4304
4592
4476
4134
4596
4557
5374
5535
4824
5124
4968
4633
4416
4423
4538
4527
4748
4751
5775
5765
4682
4869
4533
4346
4317
4337
4220
4174
4566
4493
5245
5404
5132
5688
4682
4562
4395
4082
4072
4122
4551
4392
5152
5419
4656
5186
4533
4511
4365
4981
4128
4153
4281
4431
4802
5126
4972
4910
4647
4416
4237
4152
4130
4115
4596
4810
5438
5572
4853
5153
5066
4696
4260
4392
4256
4174
4557
4672
5238 | | Output produced by software: |
Frequency Table (Histogram) | Bins | Midpoint | Abs. Frequency | Rel. Frequency | Cumul. Rel. Freq. | Density | [4000,4200[ | 4100 | 13 | 0.108333 | 0.108333 | 0.000542 | [4200,4400[ | 4300 | 18 | 0.15 | 0.258333 | 0.00075 | [4400,4600[ | 4500 | 33 | 0.275 | 0.533333 | 0.001375 | [4600,4800[ | 4700 | 14 | 0.116667 | 0.65 | 0.000583 | [4800,5000[ | 4900 | 16 | 0.133333 | 0.783333 | 0.000667 | [5000,5200[ | 5100 | 10 | 0.083333 | 0.866667 | 0.000417 | [5200,5400[ | 5300 | 3 | 0.025 | 0.891667 | 0.000125 | [5400,5600[ | 5500 | 8 | 0.066667 | 0.958333 | 0.000333 | [5600,5800[ | 5700 | 3 | 0.025 | 0.983333 | 0.000125 | [5800,6000[ | 5900 | 1 | 0.008333 | 0.991667 | 4.2e-05 | [6000,6200[ | 6100 | 0 | 0 | 0.991667 | 0 | [6200,6400] | 6300 | 1 | 0.008333 | 1 | 4.2e-05 |
| | Charts produced by software: | | http://www.freestatistics.org/blog/date/2011/Feb/22/t12983901202lf9asmg9vehr4m/1yxqq1298390281.png (open in new window) | http://www.freestatistics.org/blog/date/2011/Feb/22/t12983901202lf9asmg9vehr4m/1yxqq1298390281.ps (open in new window) |
| | Parameters (Session): | par1 = 12 ; par2 = blue ; par3 = FALSE ; par4 = Unknown ; | | Parameters (R input): | par1 = 12 ; par2 = blue ; par3 = FALSE ; par4 = Unknown ; | | R code (references can be found in the software module): | par1 <- as.numeric(par1)
if (par3 == 'TRUE') par3 <- TRUE
if (par3 == 'FALSE') par3 <- FALSE
if (par4 == 'Unknown') par1 <- as.numeric(par1)
if (par4 == 'Interval/Ratio') par1 <- as.numeric(par1)
if (par4 == '3-point Likert') par1 <- c(1:3 - 0.5, 3.5)
if (par4 == '4-point Likert') par1 <- c(1:4 - 0.5, 4.5)
if (par4 == '5-point Likert') par1 <- c(1:5 - 0.5, 5.5)
if (par4 == '6-point Likert') par1 <- c(1:6 - 0.5, 6.5)
if (par4 == '7-point Likert') par1 <- c(1:7 - 0.5, 7.5)
if (par4 == '8-point Likert') par1 <- c(1:8 - 0.5, 8.5)
if (par4 == '9-point Likert') par1 <- c(1:9 - 0.5, 9.5)
if (par4 == '10-point Likert') par1 <- c(1:10 - 0.5, 10.5)
bitmap(file='test1.png')
if(is.numeric(x[1])) {
if (is.na(par1)) {
myhist<-hist(x,col=par2,main=main,xlab=xlab,right=par3)
} else {
if (par1 < 0) par1 <- 3
if (par1 > 50) par1 <- 50
myhist<-hist(x,breaks=par1,col=par2,main=main,xlab=xlab,right=par3)
}
} else {
plot(mytab <- table(x),col=par2,main='Frequency Plot',xlab=xlab,ylab='Absolute Frequency')
}
dev.off()
if(is.numeric(x[1])) {
myhist
n <- length(x)
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('http://www.xycoon.com/histogram.htm','Frequency Table (Histogram)',''),6,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Bins',header=TRUE)
a<-table.element(a,'Midpoint',header=TRUE)
a<-table.element(a,'Abs. Frequency',header=TRUE)
a<-table.element(a,'Rel. Frequency',header=TRUE)
a<-table.element(a,'Cumul. Rel. Freq.',header=TRUE)
a<-table.element(a,'Density',header=TRUE)
a<-table.row.end(a)
crf <- 0
if (par3 == FALSE) mybracket <- '[' else mybracket <- ']'
mynumrows <- (length(myhist$breaks)-1)
for (i in 1:mynumrows) {
a<-table.row.start(a)
if (i == 1)
dum <- paste('[',myhist$breaks[i],sep='')
else
dum <- paste(mybracket,myhist$breaks[i],sep='')
dum <- paste(dum,myhist$breaks[i+1],sep=',')
if (i==mynumrows)
dum <- paste(dum,']',sep='')
else
dum <- paste(dum,mybracket,sep='')
a<-table.element(a,dum,header=TRUE)
a<-table.element(a,myhist$mids[i])
a<-table.element(a,myhist$counts[i])
rf <- myhist$counts[i]/n
crf <- crf + rf
a<-table.element(a,round(rf,6))
a<-table.element(a,round(crf,6))
a<-table.element(a,round(myhist$density[i],6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')
} else {
mytab
reltab <- mytab / sum(mytab)
n <- length(mytab)
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Frequency Table (Categorical Data)',3,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Category',header=TRUE)
a<-table.element(a,'Abs. Frequency',header=TRUE)
a<-table.element(a,'Rel. Frequency',header=TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,labels(mytab)$x[i],header=TRUE)
a<-table.element(a,mytab[i])
a<-table.element(a,round(reltab[i],4))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.tab')
}
| |
Copyright
This work is licensed under a
Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.
Software written by Ed van Stee & Patrick Wessa
Disclaimer
Information provided on this web site is provided
"AS IS" without warranty of any kind, either express or implied,
including, without limitation, warranties of merchantability, fitness
for a particular purpose, and noninfringement. We use reasonable
efforts to include accurate and timely information and periodically
update the information, and software without notice. However, we make
no warranties or representations as to the accuracy or
completeness of such information (or software), and we assume no
liability or responsibility for errors or omissions in the content of
this web site, or any software bugs in online applications. Your use of
this web site is AT YOUR OWN RISK. Under no circumstances and under no
legal theory shall we be liable to you or any other person
for any direct, indirect, special, incidental, exemplary, or
consequential damages arising from your access to, or use of, this web
site.
Privacy Policy
We may request personal information to be submitted to our servers in order to be able to:
- personalize online software applications according to your needs
- enforce strict security rules with respect to the data that you upload (e.g. statistical data)
- manage user sessions of online applications
- alert you about important changes or upgrades in resources or applications
We NEVER allow other companies to directly offer registered users
information about their products and services. Banner references and
hyperlinks of third parties NEVER contain any personal data of the
visitor.
We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.
We carefully protect your data from loss, misuse, alteration,
and destruction. However, at any time, and under any circumstance you
are solely responsible for managing your passwords, and keeping them
secret.
We store a unique ANONYMOUS USER ID in the form of a small
'Cookie' on your computer. This allows us to track your progress when
using this website which is necessary to create state-dependent
features. The cookie is used for NO OTHER PURPOSE. At any time you may
opt to disallow cookies from this website - this will not affect other
features of this website.
We examine cookies that are used by third-parties (banner and
online ads) very closely: abuse from third-parties automatically
results in termination of the advertising contract without refund. We
have very good reason to believe that the cookies that are produced by
third parties (banner ads) do NOT cause any privacy or security risk.
FreeStatistics.org is safe. There is no need to download any
software to use the applications and services contained in this
website. Hence, your system's security is not compromised by their use,
and your personal data - other than data you submit in the account
application form, and the user-agent information that is transmitted by
your browser - is never transmitted to our servers.
As a general rule, we do not log on-line behavior of
individuals (other than normal logging of webserver 'hits'). However,
in cases of abuse, hacking, unauthorized access, Denial of Service
attacks, illegal copying, hotlinking, non-compliance with international
webstandards (such as robots.txt), or any other harmful behavior, our
system engineers are empowered to log, track, identify, publish, and
ban misbehaving individuals - even if this leads to ban entire blocks
of IP addresses, or disclosing user's identity.
FreeStatistics.org is powered by
|