Displaying 20 results from an estimated 1357 matches for "sociology".
2009 Jun 16
1
xyplot format axis
...using formatNum(y,
big.mark=","). This is what I have:
library(lattice)
year<-c(2003,2004,2005,2006,2007,2008,2003,2004,2005,2006,2007,2008)
dept<-c("Politics","Politics","Politics","Politics","Politics","Politics","Sociology","Sociology","Sociology","Sociology","Sociology","Sociology")
awards<-c(859742,1346337,1841238,1104794,2192130,237253,1736600,1570843,4947761,4587803,2314805,2762599)
df1<-data.frame(year,dept,awards)
xyplot(awards~year|dept, data=df1, t...
2010 Sep 30
7
how to make list() return a list of *named* elements
If I combine elements into a list
b <- c(22.4, 12.2, 10.9, 8.5, 9.2)
my.c <- sample.int(round(2*mean(b)), 5)
my.list <- list(b, my.c)
the names of the elements seems to get lost in the process:
> str(my.list)
List of 2
$ : num [1:5] 22.4 12.2 10.9 8.5 9.2
$ : int [1:5] 11 8 6 9 20
If I explicitly name the elements at list-creation, I get what I want:
my.list <- list(b=b,
2005 Dec 12
3
question about date's
Hi,
Given a frame with calendar date's:
"2005-07-01", "2005-07-02","2005-07-03","2005-07-04","2005-07-05",etc.
I want to extract the following from these dates:
week number
month number
year number
Any ideas how to accomplish this?
Many thanks.
Regards,
Richard
2005 Nov 27
2
multilevel models and sample size
...he sample size is quite small,but just now I can't make the sample size much bigger.So I want to ask if I use the multilevel model to analysis the data set,will it be acceptable? or unacceptable because of the small sample size?
Thank you very much!
ronggui
2005-11-28
------
Deparment of Sociology
Fudan University
My new mail addres is ronggui.huang at gmail.com
Blog:http://sociology.yculblog.com
2005 Jun 13
5
slow loading with lme4
...2
arch i386
os mingw32
system i386, mingw32
status Patched
major 2
minor 1.0
year 2005
month 05
day 29
language R
OS:windows 2000
2005-06-13
------
Deparment of Sociology
Fudan University
Blog:www.sociology.yculblog.com
2005 Oct 15
2
how to import such data to R?
...four lines represent one case,can some variables are numeric and some are character.
I though the scan can read it in ,but it seems somewhat tricky as the mixed type of variables.any suggestions?
the attachmen is the raw data and the description of the data.
2005-10-15
------
Deparment of Sociology
Fudan University
My new mail addres is ronggui.huang at gmail.com
Blog:http://sociology.yculblog.com
2005 Jun 09
2
can nlme do the complex multilevel model?
...0 + G21*(ZWARMT) + G22*(ZABLET) + U2
B3 = G30 + G31*(ZWARMT) + G32*(ZSHYT1) + U3
i have seen the ?lme in nlme,but still have no ideal how to do.
ps:i know how to do if the Level-2 Model are:
B0 = G00 + U0
B1 = G10 + U1
B2 = G20 + U2
B3 = G30 + U3
2005-06-10
------
Deparment of Sociology
Fudan University
Blog:www.sociology.yculblog.com
2005 May 06
2
bivariate normal cdf
...f routine in R. I have some fortran routines for this, which appear to be based on 15-point quadrature. Any guidance/suggestions on making these in loadable R-functions would be appreciated.
Thanks,
Dan
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Daniel A. Powers, Ph.D.
Department of Sociology
University of Texas at Austin
1 University Station A1700
Austin, TX 78712-0118
phone: 512-232-6335
fax: 512-471-1748
dpowers at mail.la.utexas.edu
2005 Jul 03
2
demo(scoping)
...$withdraw(500))
Error in ross$withdraw(500) : You don't have that much money!
> version
_
platform i486-pc-linux-gnu
arch i486
os linux-gnu
system i486, linux-gnu
status beta
major 2
minor 1.1
year 2005
month 06
day 13
language R
--
Department of Sociology
Fudan University,Shanghai
Blog:http://sociology.yculblog.com
2005 Oct 23
1
question about technieque do with large computation
...9;t get the point totally.Can anyone give me an example to make me understand this rules totally?
ps:
Is it mean that f1 is better than f2? Thank you!
f1<-function(x){
n<-length(x)
s<-sum(x)
m<-s/n}
f2<-
function(x){
m<-sum(x)/length(x)}
2005-10-23
------
Deparment of Sociology
Fudan University
My new mail addres is ronggui.huang at gmail.com
Blog:http://sociology.yculblog.com
2005 Jun 19
2
what does this syntax mean?
...= mean)
{
n <- length(list(...))
if (n) {
g <- interaction(...)
split(x, g) <- lapply(split(x, g), FUN)
}
else x[] <- FUN(x)
x
}
my question is : what does "split(x, g) <- lapply(split(x, g), FUN)" mean?
thank you!
--
Department of Sociology
Fudan University,Shanghai
Blog:http://sociology.yculblog.com
2006 Feb 22
2
does multinomial logistic model from multinom (nnet) has logLik?
...y
quetion is : is logLik meaningful to multinomial logistic model from
multinom?If it does, how can I get it?
Thank you!
ps: I konw VGAM has function to get the multinomial logistic model
with logLik, but I prefer use the function from "official" R
packages .
--
ronggui
Deparment of Sociology
Fudan University
2017 Dec 04
3
Dynamic reference, right-hand side of function
...anks!
Love
for (year in 2000:2007){
varname <- paste0("aa_",year)
assign(paste0(varname), as.vector(eval(as.name(varname))))
}
-----Ursprungligt meddelande-----
Fr?n: peter dalgaard [mailto:pdalgd at gmail.com]
Skickat: den 4 december 2017 16:39
Till: Love Bohman <love.bohman at sociology.su.se>
Kopia: r-help at r-project.org
?mne: Re: [R] Dynamic reference, right-hand side of function
The generic rule is that R is not a macro language, so looping of names of things gets awkward. It is usually easier to use compound objects like lists and iterate over them. E.g.
datanames <-...
2017 Dec 04
0
Dynamic reference, right-hand side of function
Um, if you insist on doing it that way, at least use
assign(varname, as.vector(get(varname)))
-pd
> On 4 Dec 2017, at 22:46 , Love Bohman <love.bohman at sociology.su.se> wrote:
>
> Hi!
> Thanks for the replies!
> I understand people more accustomed to R doesn't like looping much, and that thinking about loops is something I do since I worked with Stata a lot. The syntax from Peter Dalgaard was really clever, and I learned a lot from it, e...
2004 Aug 18
3
downloading the R program
I am trying to download the R program, but am having trouble. I have
read through the instructions, but do not seem to be able to do it
properly. Can you tell me the step-by-step instructions?
Joanne L. Butler, Post-doctoral Fellow
Equity and Technology Research Project
c/o Department of Sociology
Acadia University
Wolfville, N.S. B4P 2R6
phone (902) 585-1535
fax (902) 585-1769
[[alternative HTML version deleted]]
2008 May 14
2
basename/dirname produce incorrect results
...t is expected.
> g<-"d:\\$BG!2L4^M-CfJ8(B\\$BG!2L4^M-CfJ8(B.txt"
> dirname(g)
[1] "d:/$BG!2L4^(B"
> basename(g)
[1] "$BG!2L4^M-(B"
--
HUANG Ronggui, Wincent http://ronggui.huang.googlepages.com/
Bachelor of Social Work, Fudan University, China
Master of sociology, Fudan University, China
Ph.D. Candidate, CityU of HK.
[[alternative HTML version deleted]]
2009 Apr 29
3
how to word-wrap text in labels in plots?
c <- structure(c(2L, 2L, 1L, 3L, 4L, 2L, 3L, 2L, 3L, 2L, 5L), .Label = c("foo",
+ "bar", "a really really long variable label mostly here to show the need of word-wrapping text in labels",
+ "a not so important value", "baz"), class = "factor")
plot(c)
Is there a way to get the long variable labels to automatically wrap so that all
2017 Dec 04
2
Dynamic reference, right-hand side of function
...y appreciate the corrections. I hope I someday will be able to handle lists in R as easy as I handle loops in Stata...
Thanks again!
Love
-----Ursprungligt meddelande-----
Fr?n: peter dalgaard [mailto:pdalgd at gmail.com]
Skickat: den 4 december 2017 23:09
Till: Love Bohman <love.bohman at sociology.su.se>
Kopia: r-help at r-project.org
?mne: Re: [R] Dynamic reference, right-hand side of function
Um, if you insist on doing it that way, at least use
assign(varname, as.vector(get(varname)))
-pd
> On 4 Dec 2017, at 22:46 , Love Bohman <love.bohman at sociology.su.se> wrote:
>...
2008 Jan 21
3
Need suggestions about GUI
...box, insert text into that box.
2, select chunk of of the text by mouse, and link it to a lable. so I would
like a way to get that chunk of text.
Can I do such job with tcltk? Any relavant tutorial materials?
Thanks
--
HUANG Ronggui
Bachelor of Social Work, Fudan University, China
Master of sociology, Fudan University, China
Ph.D. Student , CityU of HK,
http://www.cityu.edu.hk/sa/psa_web2006/students/rdegree/huangronggui.html
[[alternative HTML version deleted]]
2002 Apr 23
3
stacking vectors of unequal length
...would like to make a single vector out of something like the following:
y0 <- rep(0,100)
y1 <- rep(1,20)
and stack them one on top of the other to a vector y with length 120.
Thanks,
Dan
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Dan Powers
Associate Professor, Sociology
University of Texas at Austin
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subjec...