[R] rjags error. Error parsing model file:,syntax error on line 5 near ""

2012-08-13 Thread David Kaplan
adata, n.chains=nChains, n.adapt=adaptSteps) # Burn-in: cat("Burning in the MCMC chain ...\n") update(cfaModel, n.iter=burnInSteps) cat("Sampling from the final MCMC chain ... \n") codaSamples = coda.samples(cfaModel, variable.names=parameters,

[R] Question about error message

2011-06-28 Thread David Kaplan
missing data by design. Thanks in advance, David -- ======= David Kaplan, Ph.D. Professor Department of Educational Psychology University of Wisconsin - Madison Educational Sciences, Room, 1082B 1025 W. Johnson Street Madison, WI 53706 email: dkap...@education.wisc.edu homepage: http://www.education.wisc

Re: [R] Simple ordering or sorting question

2011-05-18 Thread David Kaplan
That did it. Thanks!! David === David Kaplan, Ph.D. Professor Department of Educational Psychology University of Wisconsin - Madison Educational Sciences, Room, 1082B 1025 W. Johnson Street Madison, WI 53706 email: dkap

[R] Simple ordering or sorting question

2011-05-18 Thread David Kaplan
es(df)),] and and have substituted the order command with sort and sort.list to no avail. Any advice would be appreciated. Thanks in advance. David -- ======= David Kaplan, Ph.D. Professor Department of Educational Psychology

[R] Question about is.na for missing data

2009-10-29 Thread David Kaplan
Greetings, I am trying to a simple mean imputation using the following command (yes, I know it is not an ideal way to impute missing data) asd[is.na(asd)] <- mean(asd,na.rm=TRUE) This has worked quite well in the past. Now, however, I am getting the following error messsage. Error in `[<-

[R] Simple question, I think

2009-10-22 Thread David Kaplan
Greetings, I am recoding a dummy variable (coded 1,0) so that 0 = 2. I am using the line sciach$dummyba[sciach$ba==0] <- 2 I notice that it creates a new column dummyba, with 0 coded as 2 but with 1's now coded as NA. Is there a simple way around this in the line I am using, or do I need

[R] Multilevel models with sampling weights at both levels

2009-09-11 Thread David Kaplan
Greetings, Is there a package in R that will run multilevel models (e.g. students nested in schools) where sampling weights can be employed at both levels? Thanks in advance. David -- === David Kaplan, Ph.D. Professor Department of

Re: [R] Filling in a uniform dist plot

2009-08-15 Thread David Kaplan
Yep. That's it. Thanks. David Peter Dalgaard wrote: David Kaplan wrote: Hi all, Apologies in advance if this is really too simple, but I have given a good shot at this. I'm generating a standard uniform distibution y <- dunif(x) plot(x,y,type="l") This

[R] Filling in a uniform dist plot

2009-08-15 Thread David Kaplan
Hi all, Apologies in advance if this is really too simple, but I have given a good shot at this. I'm generating a standard uniform distibution y <- dunif(x) plot(x,y,type="l") This will draw a horizontal line at y = 1. I want to fill the area from x=(0,1) with a color. I've tried the poly

[R] plotting question

2009-03-14 Thread David Kaplan
David -- === David Kaplan, Ph.D. Professor Department of Educational Psychology University of Wisconsin - Madison Educational Sciences, Room, 1061 1025 W. Johnson Street Madison, WI 53706 email: dkap...@education.wisc.edu homepage:

[R] overlay plot question

2009-02-04 Thread David Kaplan
emove(.y) I would like to overlay these on one plot. Notice here the y-axis is different. But I would like to axis to be 0 to 1 as in the first plot. Any suggestions would be greatly appreciated. Thanks in advance, David -- ==

[R] help with predict in stats4

2008-12-11 Thread David Kaplan
why this seems to now be appearing. Thanks in advance. -- ======= David Kaplan, Ph.D. Professor Department of Educational Psychology University of Wisconsin - Madison Educational Sciences, Room, 1061 1025 W. Johnson Street Madison,

Re: [R] Identify command in R]

2008-11-20 Thread David Kaplan
, -- === David Kaplan, Ph.D. Professor Department of Educational Psychology University of Wisconsin - Madison Educational Sciences, Room, 1061 1025 W. Johnson Street Madison, WI 53706 email: [EMAIL PROTECTED] homepage: http://www.education.wisc.edu/edpsych/default.aspx?content

[R] Identify command in R

2008-11-20 Thread David Kaplan
r which doesn't allow me to see the observation number when I scroll over with the mouse. What exactly is this problem and is there a way to override it? Thanks in advance. -- ======= David Kaplan, Ph.D. Professor De

[R] classification accuracy in logistic regression

2008-11-20 Thread David Kaplan
vance. David -- === David Kaplan, Ph.D. Professor Department of Educational Psychology University of Wisconsin - Madison Educational Sciences, Room, 1061 1025 W. Johnson Street Madison, WI 53706 email: [EMAIL PROTECTED] homepage:

Re: [R] Merging nested files

2008-11-02 Thread David Kaplan
I think this will work. Thanks. But, is there a command to merge on a string variable. All I have is the country 3 letter designation. Thanks again, David === David Kaplan, Ph.D. Professor Department of Educational

[R] Merging nested files

2008-11-02 Thread David Kaplan
, David -- === David Kaplan, Ph.D. Professor Department of Educational Psychology University of Wisconsin - Madison Educational Sciences, Room, 1061 1025 W. Johnson Street Madison, WI 53706 email: [EMAIL PROTECTED] homepage: http

Re: [R] Handling complex sampling designs in R

2008-10-19 Thread David Kaplan
This looks fantastic. Thanks! David === David Kaplan, Ph.D. Professor Department of Educational Psychology University of Wisconsin - Madison Educational Sciences, Room, 1061 1025 W. Johnson Street Madison, WI 53706 email

[R] derivatives and integrals in R

2008-10-19 Thread David Kaplan
David -- === David Kaplan, Ph.D. Professor Department of Educational Psychology University of Wisconsin - Madison Educational Sciences, Room, 1061 1025 W. Johnson Street Madison, WI 53706 email: [EMAIL PROTECTED] homepage: http://www.education.wisc.edu/edpsych/default.aspx?content=kaplan.html Phone: 60

[R] Handling complex sampling designs in R

2008-10-19 Thread David Kaplan
sampling weights? Thanks in advance, David -- === David Kaplan, Ph.D. Professor Department of Educational Psychology University of Wisconsin - Madison Educational Sciences, Room, 1061 1025 W. Johnson Street Madison, WI 53706

[R] derivatives and integrals in R

2008-10-18 Thread David Kaplan
__ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

[R] Handling complex sampling designs in R

2008-10-14 Thread David Kaplan
__ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

[R] Error in Scan question

2008-05-15 Thread David Kaplan
__ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

[R] Getting variable names from as.matrix

2008-04-30 Thread David Kaplan
DS map using country names. It also places horizontal and vertical lines for reference. plot(country.mds$points,type="n") text(country.mds$points, labels = as.character(country.demog$country)) abline(h=0) abline(v=0) Thanks for any advice, David -- =======

Re: [R] Error message "got a real'

2008-04-06 Thread David Kaplan
rson of R, I wasn't sure which list was appropriate. There was no intention to be inconsiderate. David ======= David Kaplan, Ph.D. Professor Department of Educational Psychology University of Wisconsin - Madison Educational Scienc

[R] Error message "got a real'

2008-04-06 Thread David Kaplan
0652 is the sample size coming from a .csv file where I have header = TRUE. Any thoughts would be appreciated. David -- ======= David Kaplan, Ph.D. Professor Department of Educational Psychology University of Wisconsin - Madison Educati

[R] Markov and Hidden Markov models

2008-02-12 Thread David Kaplan
Hi, Is there a package that will estimate simple Markov models and hidden Markov models for discrete time processes in R? Thanks in advance, David -- === David Kaplan, Ph.D. Professor Department of Educational Psychology University

[R] Moving to a Mac environment - quick question

2007-11-14 Thread David Kaplan
vance, David -- === David Kaplan, Ph.D. Professor Department of Educational Psychology University of Wisconsin - Madison Educational Sciences, Room, 1061 1025 W. Johnson Street Madison, WI 53706 email: [EMAIL PROTECTED] homepage: [2

[R] graphical parameters and acf

2007-11-11 Thread David Kaplan
neral figure title on the bottom of the page. I've looked at the Murrell book as well as the acf documentation and can't seem to figure that out. Any suggestions? Thanks in advance, David -- ======= David Kaplan,

[R] White's test again

2007-11-09 Thread David Kaplan
s or standard errors correcting for heteroskedasticity. Is there a way to get that information? Thanks in advance, David -- ======= David Kaplan, Ph.D. Professor Department of Educational Psychology University of Wisconsin -

[R] Markov models

2007-10-27 Thread David Kaplan
Hi all, I'm looking for a package that will estimate Markov models and provide transition probabilities. I'm not speaking of MCMM estimation packages. Thanks in advance, David -- ======= David Kaplan, Ph.D.

[R] Fatal error message in Windows version of 2.6

2007-10-22 Thread David Kaplan
ts? David -- ======= David Kaplan, Ph.D. Professor Department of Educational Psychology University of Wisconsin - Madison Educational Sciences, Room 1061 1025 W. Johnson Street Madison, WI 53706 email: [EMAIL PROTECTED] Web: http://www.education.wisc.edu/edpsych/facstaff/kaplan/kaplan.htm Phon

[R] A very simple question

2007-10-22 Thread David Kaplan
-- === David Kaplan, Ph.D. Professor Department of Educational Psychology University of Wisconsin - Madison Educational Sciences, Room 1061 1025 W. Johnson Street Madison, WI 53706 email: [EMAIL PROTECTED] Web: http://www.education.wisc.edu/edpsych/facstaff/kaplan/kaplan.htm Phone: 608-262-0836 Fax: 608

Re: [R] Question re matplot

2007-10-13 Thread David Kaplan
2)RBIs, (3)DOUBLES,(4)BB,(5)Runs,(6) BB", pty="m",sub = "Figure 2. Plot of Selected Offensive Baseball Statistics: 1901 - 2005") David === David Kaplan, Ph.D. Professor Department of Educational P

[R] Question re matplot

2007-10-13 Thread David Kaplan
bles giving me only (4)BB,(5)Runs,(6) BB. How can I get it to print the entire label? Thanks in advance. David -- === David Kaplan, Ph.D. Professor Department of Educational Psychology University of Wisconsin - Madison Educational Sciences, Room 1061 1025 W. Joh

Re: [R] Missing data

2007-09-11 Thread David Kaplan
Excellent. Thanks! === David Kaplan, Ph.D. Professor Department of Educational Psychology University of Wisconsin - Madison Educational Sciences, Room 1061 1025 W. Johnson Street Madison, WI 53706 email: [EMAIL PROTECTED] Web

Re: [R] Missing data

2007-09-11 Thread David Kaplan
I did. If you don't want to answer, then your unhelpful suggestions to yourself. === David Kaplan, Ph.D. Professor Department of Educational Psychology University of Wisconsin - Madison Educational Sciences, Room 1061 1

[R] Missing data

2007-09-11 Thread David Kaplan
David -- === David Kaplan, Ph.D. Professor Department of Educational Psychology University of Wisconsin - Madison Educational Sciences, Room, 1061 1025 W. Johnson Street Madison, WI 53706 email: [EMAIL PROTECTED] homepage: