Re: [R] Getting p-value from summary output

2011-02-11 Thread Alice Lin
Awesome! Thanks so much!

On Thu, Feb 10, 2011 at 6:13 PM, Dennis Murphy  wrote:

> Hi:
>
> Try
> summary(myprobit)$coefficients[, 4]
>
> HTH,
> Dennis
>
> On Thu, Feb 10, 2011 at 3:46 PM, Allie818  wrote:
>
>>
>> I can get this summary of a model that I am running:
>>
>> summary(myprobit)
>>
>> Call:
>> glm(formula = Response_Slot ~ trial_no, family = binomial(link =
>> "probit"),
>>data = neg_data, na.action = na.pass)
>>
>> Deviance Residuals:
>>Min   1Q   Median   3Q  Max
>> -0.9528  -0.8934  -0.8418   1.4420   1.6026
>>
>> Coefficients:
>> Estimate Std. Error z value Pr(>|z|)
>> (Intercept) -0.340528   0.371201  -0.9170.359
>> trial_no-0.005032   0.012809  -0.3930.694
>>
>> (Dispersion parameter for binomial family taken to be 1)
>>
>>Null deviance: 62.687  on 49  degrees of freedom
>> Residual deviance: 62.530  on 48  degrees of freedom
>> AIC: 66.53
>>
>> Number of Fisher Scoring iterations: 4
>>
>> But I would like to get the p-value [column heading Pr(>|z|)] for the
>> esimate.
>> I can get the coefficient estimates with myprobit$coefficients. Is there
>> something similar to get the p-value?
>>
>> Thank you in advance.
>> --
>> View this message in context:
>> http://r.789695.n4.nabble.com/Getting-p-value-from-summary-output-tp3300503p3300503.html
>> Sent from the R help mailing list archive at Nabble.com.
>>
>> __
>> 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.
>>
>
>

[[alternative HTML version deleted]]

__
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] Weighting data with normal distribution

2009-03-27 Thread Alice Lin

I have a vector of binary data – a string of 0’s and 1’s. 
I want to weight these inputs with a normal kernel centered around entry x
so it is transformed into a new vector of data that takes into account the
values of the entries around it (weighting them more heavily if they are
near).

Example:
  -
   - -
-  -
0 1 0 0 1 0 0 1 1 1 1 
If x = 3, it’s current value is 0 but it’s new value with the Gaussian
weighting around would be something like .1*0+.5*1+1*0+0.5*0+.1*1= 0.6

I want to be able to play with adjusting the variance to different values as
well.
I’ve found wkde in the mixtools library and think it may be useful but I
have not figured out how to use it yet.

Any tips would be appreciated.

Thanks!

-- 
View this message in context: 
http://www.nabble.com/Weighting-data-with-normal-distribution-tp22728289p22728289.html
Sent from the R help mailing list archive at Nabble.com.

__
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] Text data

2009-01-28 Thread Alice Lin

i have a data column of text entries:
26M_AN_C.bmp
22M_AN_C.bmp
20M_HA_O.bmp
20M_AN_C.bmp
26M_HA_O.bmp
22M_HA_O.bmp
31M_AN_C.bmp
38M_HA_O.bmp
.
.
.
.


And I would like to sort by the middle tag: AN, HA, etc.
Is there a way to parse text data in R? 

In excel, I would have used the "left" and "right" function to cut out just
the middle two letters out and put into another column to sort by. 

Thanks!

-- 
View this message in context: 
http://www.nabble.com/Text-data-tp21714334p21714334.html
Sent from the R help mailing list archive at Nabble.com.

__
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.