Quantcast
Channel: Statalist
Browsing all 72758 articles
Browse latest View live
↧

Outreg2

Hallo I have Problems with the outreg2 option when I like to display addidional informations as R_squared. I alwasy get the invalid syntax failure r(198) . Code: outreg2 using text.doc, replace addstat...

View Article


sepscatter: too many variables specified

I am trying to create graphs with the sepscatter package from SSC and encountered the error "too many variables specified". The command below, adapted from the help file, draws a graph. The variable...

View Article


Compound boolean condition

I want to define a variable that is 1 if a certain condition is met, and 0 otherwise. I have written the condition in two different ways, and I'm not getting the same result. Can anyone tell me why...

View Article

Logistic Regession

Hello - Searching for advice or readings. I have a data set were the probability of an event occurring (passing an exam) is approx 95% for one group and 90% for the other. I wanted to run a logistic...

View Article

Calculating Auditor Tenure

Dear all, I have the following data in excel transported from AuditAnalytics (WRDS): - Last reported auditor fkey - Last reported auditor name - Last reported auditor since event date - Last reported...

View Article


iv in logit regression

Hi, I am working on a xtlogit model. I have to correct for potential endogeneity bias using an instrument variable. How do I do the same in a xtlogit model like we can for xtreg using xtivreg? Best,...

View Article

Panel data: time between incident

I have a group/panel data in which ear row is an incident in which students behave badly. Students of course can be involved in many incidents and a single incident may involve many students. I sort my...

View Article

Output

This is my first time running a regression so I am not really sure what I can see from this output. I would say: R2 ist different und changes much when including ROAh Variable. Sings remain the same,...

View Article


Rank-ordered logit and incomplete/tied rankings

Dear StataList users, I am dealing with a survey data, where individual respondents ranked 20 alternatives by assigning scores 1, 2, 3, 4, or 5, with 1 being the most preferable and 5 being the least...

View Article


Interpretation

How can I start my analysis on base of this regression Output. 1-9 refers to different industries. I would start with describing this output regarding signficance and regarding the change of the...

View Article

Multilevel data analysis with complex sampling

I am trying to conduct a multi-level model of students (level 1) nested within states (level 2). I am using Youth Risk Behavior Survey (YRBS) data, which has a complex sampling structure (for more...

View Article

Create groups for observations in a string (create region variables for...

Hi, My data is attached below. I have US states listed below, and am trying to group them into four regions (East, West, South and North). Is there any way, apart from making dummy variables, to group...

View Article

Storing API Keys in Stata

I'm interested writing a program that requires the use of an API key. I'd prefer for the users to not have to pass their key to the program every time they use it. Rather, I'd like to give users the...

View Article


Check whether some Mata function exists?

I've unsuccessfully searched for a nice way to check whether a Mata function exists in the user's Stata/Mata, and conditionally execute Mata code depending on that check. Although I can imagine various...

View Article

Excluding observations based on cross sectional data.

This is my first time using STATA and I'm having trouble figuring out, what I would assume, a basic function. My data describes a study done one school children to see if class size affects a student's...

View Article


nnmatch question

Hi everyone, I am trying to run a matching estimators analysis - say teffects nnmatch (dep_variable x_covariate) (treatment) but filtering the data for different U.S. states - so I would have teffects...

View Article

truncreg model results shows ' initial values not feasible'

Hi everyone, I got an error for running truncated regression for cross-sectional data with dumy (1,0: experience conflict or otherwise) for both dependent and independent variables, censored from belwo...

View Article


Combining multiple variables into one for a Guttman scale

Hi all, I'm trying to combine the responses of several variables into one like a Guttman scale of sorts. I've been trying to search the internet, but I can't find anything that is working the way I...

View Article

confidence intervals for a proportion

Hello... I have a very simple question... how can I get confidence intervals for a proportion obtained by a 'tab' command: eg. " tab x y, col " Wish it was as simple as "tab x y, col ci " but to no...

View Article

How to multiply values by mean of variable

Dear Statalist I would high appreciate if someone could help me in this small issue: How I can multiply values by mean of variable? For example I used this code Code: gen w=P1*r(mean) more detail: P1...

View Article
Browsing all 72758 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>