Displaying 3 results from an estimated 3 matches for "classnumber".
2008 May 30
1
existing package (mmlcr) modification -- appropriate process?
...utput of multinom is the standard errors, but this output is not
provided within mmlcr. I would like to obtain the standard errors as
an output of mmlcr.
For your reference, this is relevant code that I identified in mmlcr,
using getAnywhere{mmlcrfit.multinomlong}:
function (object, weights, classnumber)
{
data <- object$data
form.full <- formula(attr(data, "terms"))
form <- object$shortform
data$.wts <- weights[match(getGroups(data, form.full, 1),
row.names(weights)), classnumber]
component.multinom.result <- multinom(form, data = data,...
2006 Oct 25
2
update index in "for" statement during calculation
...ady,
Kim
### Code ###
for (i in 1:(nrow(data)-1))
{
diff.time <- round(data[i+1,2], 0) - round(data[i,2], 0)-1
old.row <- nrow(data)
if (diff.time > 0)
{
fill <- c(data[i,1],
(round(data[i,2], 0)+1), rep(0,classnumber))
data <- rbind(data[1:i,], fill, data[(i+1):old.row,])
}
}
__________________________________________
Kim Milferstedt
University of Illinois at Urbana-Champaign
Department of Civil and Environmental Engineering
4125 Newmark Civil Engineering Laboratory
20...
2013 Feb 17
6
histogram
...49 37 50 45
1. i first of all want to make classes in the following form
class
0<x<=5
5<x<=10
10<x<=15
15<x<=20
.....
...
...
...
45<x<=50
and then i want to count the number of elements in each class and?ultimately?i want to execute a table in the following form
classnumber of elements in each class
0<x<=55
5<x<=105
10<x<=155
15<x<=205
.....
...
...
...
45<x<=505
the command which i used is to count the number of elements in each class was
> length(which(x > 45 & x <= 50))
2. is there a loop command which can count the nu...