search for: unixunix99

Displaying 8 results from an estimated 8 matches for "unixunix99".

2008 Jul 22
5
How to filter a data frame?
I have a question about how to filter the data frame: Suppose my data frame has variables like gender, age,... How to get a subset of the data frame, with only female (or male) and/or age > 50...? What is the typical syntax? I tried several condition expressions, but none of them worked... Thanks a lot! -- View this message in context:
2008 Jun 05
2
how to get the distribution curve from a data set?
I have a question. I have a data set (about 100,000 observations). How would I get the distribution curve graph? This is like, if I use hist(x, freq="TRUE", breaks=1000) to get the histogram, now the question is, I don't need the histogram itself, I just need the curve that connects the top of each histogram bin. Thank you very much! -- View this message in context:
2008 Dec 30
1
A mistake in garchFit()? {fGarch}
Hello, I was using garchFit {fGarch} to fit some GARCH processes. I noticed that the result contains "Log Likelihood" value (right above "Description"), but when I use .. at fit$llh to retrieve Log Likelihood value, the sign switched. I am confused about which value I should choose to report... Any help here? Thanks a lot! Ted -- View this message in context:
2008 Jul 07
3
A quick question about lm()
I have a simple regression using lm(). If I just want to check the coefficient, I can use summary(lm())$coef; if I need the standard error, I can use summary(lm())$s, if I need the residuals, I can use summary(lm())$res. OK. How can I get the R-squares and Adjusted R-squares using $...? Is there a function, like objects(), that can show all the references for values? Thanks a lot! -- View this
2008 Sep 15
1
How to plot contours for joint density of 2 independently distributed r.v.?
X and Y are independently distributed random variables. I would like to study the contours of the joint density of these two variables. Any function to call? Thank you very much! -- View this message in context: http://www.nabble.com/How-to-plot-contours-for-joint-density-of-2-independently-distributed-r.v.--tp19493126p19493126.html Sent from the R help mailing list archive at Nabble.com.
2008 Nov 19
1
How to get robust M-estimator of multivariate scatter using Huber's psi?
How to get robust M-estimators of multivariate scatter using Huber's psi? Which package/function should I look into? Ideally, I hope I can self-define thresholds of Huber's psi function. Thanks a lot!!! -- View this message in context: http://www.nabble.com/How-to-get-robust-M-estimator-of-multivariate-scatter-using-Huber%27s-psi--tp20585755p20585755.html Sent from the R help mailing
2009 Feb 14
0
How to fit GARCH(1,1) with targeted unconditional variance?
Hello, I have a univariate data set, and the unconditional variance is 1. I would like to fit a GARCH(1,1) model to the data set with a constraint: \omega (the constant parameter in GARCH(1,1)) is equal to 1-\alpha-\beta. So the unconditional variance can be controled to be \omega /(1-\alpha-\beta) = 1. I was using garchFit (fGARCH package) but did not find the way to control. Any help?
2008 Oct 20
3
A question about positive definite matrix
I know, this is a forum about R. But I am so desperate of this problem (BTW, anyone knows any good Statistics/Math forum to post question like this?): A and B are both n x n positive definite matrix. Denote A > B, if A - B is positive definite. I know this is true: if A > B, then A^{-1} < B^{-1}. But how to prove this? I tried to diagonalize A and B, but since they can have different